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

policycoreutils: build with gcc6 #37148

Closed
wants to merge 1 commit into from

Conversation

xeji
Copy link
Contributor

@xeji xeji commented Mar 15, 2018

Motivation for this change

Current version 2.4 doesn't build w/gcc7.
This fix is 18.03-only. On master, an update of all SELinux tools to v2.7 is being prepared (#36978)
/cc ZHF #36453

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

this version (2.4) doesn't build w/gcc7
@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: policycoreutils

Partial log (click to expand)

/nix/store/s86xgwqvpb9a1qn51hzadw4g18qhci2w-policycoreutils-2.4/bin/sepolgen-ifgen: interpreter directive changed from " /usr/bin/python -Es" to "/nix/store/7b2z0vfbs9539ga4pxx5gmli47rz5y3n-python-2.7.14/bin/python -Es"
/nix/store/s86xgwqvpb9a1qn51hzadw4g18qhci2w-policycoreutils-2.4/bin/audit2allow: interpreter directive changed from " /usr/bin/python -Es" to "/nix/store/7b2z0vfbs9539ga4pxx5gmli47rz5y3n-python-2.7.14/bin/python -Es"
/nix/store/s86xgwqvpb9a1qn51hzadw4g18qhci2w-policycoreutils-2.4/bin/chcat: interpreter directive changed from " /usr/bin/python -Es" to "/nix/store/7b2z0vfbs9539ga4pxx5gmli47rz5y3n-python-2.7.14/bin/python -Es"
/nix/store/s86xgwqvpb9a1qn51hzadw4g18qhci2w-policycoreutils-2.4/bin/sandbox: interpreter directive changed from " /usr/bin/python -Es" to "/nix/store/7b2z0vfbs9539ga4pxx5gmli47rz5y3n-python-2.7.14/bin/python -Es"
/nix/store/s86xgwqvpb9a1qn51hzadw4g18qhci2w-policycoreutils-2.4/bin/sepolicy: interpreter directive changed from " /usr/bin/python -Es" to "/nix/store/7b2z0vfbs9539ga4pxx5gmli47rz5y3n-python-2.7.14/bin/python -Es"
/nix/store/s86xgwqvpb9a1qn51hzadw4g18qhci2w-policycoreutils-2.4/lib/python2.7/site-packages/seobject.py: interpreter directive changed from " /usr/bin/python -Es" to "/nix/store/7b2z0vfbs9539ga4pxx5gmli47rz5y3n-python-2.7.14/bin/python -Es"
/nix/store/s86xgwqvpb9a1qn51hzadw4g18qhci2w-policycoreutils-2.4/sbin/semanage: interpreter directive changed from " /usr/bin/python -Es" to "/nix/store/7b2z0vfbs9539ga4pxx5gmli47rz5y3n-python-2.7.14/bin/python -Es"
/nix/store/s86xgwqvpb9a1qn51hzadw4g18qhci2w-policycoreutils-2.4/sbin/fixfiles: interpreter directive changed from "/bin/bash" to "/nix/store/zqh3l3lyw32q1ayb15bnvg9f24j5v2p0-bash-4.4-p12/bin/bash"
checking for references to /tmp/nix-build-policycoreutils-2.4.drv-0 in /nix/store/s86xgwqvpb9a1qn51hzadw4g18qhci2w-policycoreutils-2.4...
moving /nix/store/s86xgwqvpb9a1qn51hzadw4g18qhci2w-policycoreutils-2.4/sbin/* to /nix/store/s86xgwqvpb9a1qn51hzadw4g18qhci2w-policycoreutils-2.4/bin

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: policycoreutils

Partial log (click to expand)

/nix/store/jyhrsg3ldbqzcy0jmhqg0vsw4584zv73-policycoreutils-2.4/bin/system-config-selinux: interpreter directive changed from "/bin/sh" to "/nix/store/lnws52qanbi5vz8qg24v4ym57nznfndg-bash-4.4-p12/bin/sh"
/nix/store/jyhrsg3ldbqzcy0jmhqg0vsw4584zv73-policycoreutils-2.4/lib/python2.7/site-packages/seobject.py: interpreter directive changed from " /usr/bin/python -Es" to "/nix/store/5crgsfgy8n7v50hrihx4mhxdqa01nrmw-python-2.7.14/bin/python -Es"
/nix/store/jyhrsg3ldbqzcy0jmhqg0vsw4584zv73-policycoreutils-2.4/share/sandbox/start: interpreter directive changed from " /usr/bin/python -Es" to "/nix/store/5crgsfgy8n7v50hrihx4mhxdqa01nrmw-python-2.7.14/bin/python -Es"
/nix/store/jyhrsg3ldbqzcy0jmhqg0vsw4584zv73-policycoreutils-2.4/share/sandbox/sandboxX.sh: interpreter directive changed from "/bin/bash" to "/nix/store/lnws52qanbi5vz8qg24v4ym57nznfndg-bash-4.4-p12/bin/bash"
/nix/store/jyhrsg3ldbqzcy0jmhqg0vsw4584zv73-policycoreutils-2.4/share/system-config-selinux/polgengui.py: interpreter directive changed from "/usr/bin/python -Es" to "/nix/store/5crgsfgy8n7v50hrihx4mhxdqa01nrmw-python-2.7.14/bin/python -Es"
/nix/store/jyhrsg3ldbqzcy0jmhqg0vsw4584zv73-policycoreutils-2.4/share/system-config-selinux/system-config-selinux.py: interpreter directive changed from "/usr/bin/python -Es" to "/nix/store/5crgsfgy8n7v50hrihx4mhxdqa01nrmw-python-2.7.14/bin/python -Es"
/nix/store/jyhrsg3ldbqzcy0jmhqg0vsw4584zv73-policycoreutils-2.4/share/system-config-selinux/selinux_server.py: interpreter directive changed from "/usr/bin/python" to "/nix/store/5crgsfgy8n7v50hrihx4mhxdqa01nrmw-python-2.7.14/bin/python"
checking for references to /build in /nix/store/jyhrsg3ldbqzcy0jmhqg0vsw4584zv73-policycoreutils-2.4...
moving /nix/store/jyhrsg3ldbqzcy0jmhqg0vsw4584zv73-policycoreutils-2.4/sbin/* to /nix/store/jyhrsg3ldbqzcy0jmhqg0vsw4584zv73-policycoreutils-2.4/bin
/nix/store/jyhrsg3ldbqzcy0jmhqg0vsw4584zv73-policycoreutils-2.4

vcunat added a commit that referenced this pull request Mar 17, 2018
Close #37148.  It's safer do disable warnings than to switch the compiler.
@vcunat
Copy link
Member

vcunat commented Mar 17, 2018

See 0c52ab9.

@vcunat vcunat closed this Mar 17, 2018
@xeji xeji deleted the p/policycoreutils-18.03 branch March 17, 2018 12:31
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.

3 participants