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

linux: flag to indicate 32bit emulation support #53511

Merged
merged 2 commits into from Jan 25, 2019

Conversation

joachifm
Copy link
Contributor

@joachifm joachifm commented Jan 6, 2019

Primarily to avoid problems exemplified by #51097

@vcunat
Copy link
Member

vcunat commented Jan 6, 2019

Naming nitpick: it could be confused with something else – a kinda hybrid between 32-bit and 64-bit x86. That one seems to be slowly dying, but still...

Motivated by the need to warn users trying to build configurations that depend
on being able to run 32bit apps on 64bit kernels.
@joachifm joachifm force-pushed the kernel-32bit-emu-feature-flag branch from 8366e2e to ab070d1 Compare January 6, 2019 18:52
@joachifm joachifm changed the title linux: flag to indicate x32 abi support linux: flag to indicate 32bit emulation support Jan 6, 2019
@joachifm
Copy link
Contributor Author

joachifm commented Jan 6, 2019

Good point. I've changed the name to make it clearer.

@@ -14825,6 +14825,7 @@ in

# Hardened linux
hardenedLinuxPackagesFor = kernel: linuxPackagesFor (kernel.override {
features.ia32Emulation = false;
Copy link
Member

Choose a reason for hiding this comment

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

I think we should keep the original naming of IA32_EMULATION to reduce need for additional documentation. Ideally we could just look directly. This is partially done in #42838.

@joachifm
Copy link
Contributor Author

I also tried requiredKernelConfig but that is not enforced if the kernel exposes a features attr. Making the check unconditional results in what appears to be spurious assert failures, so I'm a little unsure whether the required kernel config feature actually works ...

@joachifm joachifm merged commit f641442 into NixOS:master Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants