Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use environment variable $ARCH when available #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

knarfS
Copy link

@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
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.

@@ -20,7 +21,10 @@ def __init__(self, ld_config: dict = None):
def build_file(self, path: str):
gen = BashScriptGenerator(path)

arch = self._config.get("arch", platform.machine())
if "ARCH" in os.environ:
arch = os.environ["ARCH"]
Copy link
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