-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
libsemanage: fix build w/gcc7 #36936
Conversation
Success on aarch64-linux (full log) Attempted: libsemanage Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: libsemanage Partial log (click to expand)
|
Thanks! 👍 Have you considered updating our selinux libraries instead? The upstream repository seems to be very active (https://github.com/SELinuxProject/selinux). Our libs/tools from them are still at version 2.4 the current upstream release seems to be 2.7. Upgrading those might also fix the GCC issues (amongst other bugs, new features, …). Two commits I was able to find just now: |
@andir: Thank you - I agree we should update to 2.7 and will look into it. But that will be a little more work since it involves multiple packages. |
@@ -13,7 +13,13 @@ stdenv.mkDerivation rec { | |||
nativeBuildInputs = [ bison flex ]; | |||
buildInputs = [ libsepol libselinux ustr bzip2 libaudit ]; | |||
|
|||
NIX_CFLAGS_COMPILE = "-fstack-protector-all -std=gnu89"; | |||
NIX_CFLAGS_COMPILE = [ | |||
"-fstack-protector-all" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can’t we remove this? IIRC the stackprotector is now enabled by default since #12895 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do this now, also for 18.03, and you can update etc. later.
(cherry picked from commit 527ff9c)
@vcunat ack, will submit a PR tonight:) |
Thanks. Already working on the update: #36978
…On March 14, 2018 3:58:40 PM GMT+01:00, Maximilian Bosch ***@***.***> wrote:
@vcunat ack, will submit a PR tonight:)
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#36936 (comment)
|
ahh great! |
Motivation for this change
didn't build with gcc7.
/cc ZHF #36453
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)