Skip to content

Use environment variable $ARCH when available#13

Open
knarfS wants to merge 1 commit intoTheAssassin:masterfrom
knarfS:arch
Open

Use environment variable $ARCH when available#13
knarfS wants to merge 1 commit intoTheAssassin:masterfrom
knarfS:arch

Conversation

@knarfS
Copy link
Copy Markdown

@knarfS knarfS commented Jun 11, 2021

When the environment variable $ARCH is already set, it is applied and the build script doesn't need to figure out the architecture by itself. This is needed for 32bit containers in an 64bit environment and is now also in line with the linuxdeploy behaviour.

@tdewey-rpi tdewey-rpi mentioned this pull request Sep 9, 2024
Copy link
Copy Markdown
Owner

@TheAssassin TheAssassin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is a good idea, but there should at least be a warning.

Please also resolve the conflicts.


arch = self._config.get("arch", platform.machine())
if "ARCH" in os.environ:
arch = os.environ["ARCH"]
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should provide a warning that signalizes to the user that data from the environment was taken into account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants