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

semodule-utils: init at 2.7 #46028

Merged
merged 1 commit into from Sep 10, 2018

Conversation

outergod
Copy link
Contributor

@outergod outergod commented Sep 4, 2018

Motivation for this change

semodule-utils is distributed as part of SELinux upstream releases and its artifacts complement those of policycoreutils. The most important program provided is semodule_package, which is used to compile policy modules from intermediate files output by checkmodule from policycoreutils.

This package is required to fix NixOS/nix#2374.

I currently don't have a running installation of NixOS to run all the tests listed below.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@grahamc
Copy link
Member

grahamc commented Sep 7, 2018

@GrahamcOfBorg build semodule-utils

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: semodule-utils

Partial log (click to expand)

shrinking /nix/store/3frf23lyzkh3p0xcldf9wdgszd67rmf3-semodule-utils-2.7/bin/semodule_expand
shrinking /nix/store/3frf23lyzkh3p0xcldf9wdgszd67rmf3-semodule-utils-2.7/bin/semodule_link
shrinking /nix/store/3frf23lyzkh3p0xcldf9wdgszd67rmf3-semodule-utils-2.7/bin/semodule_unpackage
shrinking /nix/store/3frf23lyzkh3p0xcldf9wdgszd67rmf3-semodule-utils-2.7/bin/semodule_package
gzipping man pages under /nix/store/3frf23lyzkh3p0xcldf9wdgszd67rmf3-semodule-utils-2.7/share/man/
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/3frf23lyzkh3p0xcldf9wdgszd67rmf3-semodule-utils-2.7/bin
patching script interpreter paths in /nix/store/3frf23lyzkh3p0xcldf9wdgszd67rmf3-semodule-utils-2.7
checking for references to /build in /nix/store/3frf23lyzkh3p0xcldf9wdgszd67rmf3-semodule-utils-2.7...
/nix/store/3frf23lyzkh3p0xcldf9wdgszd67rmf3-semodule-utils-2.7

@grahamc
Copy link
Member

grahamc commented Sep 7, 2018

@GrahamcOfBorg eval

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: semodule-utils

Partial log (click to expand)

shrinking /nix/store/c3g0yfshr0a3nxfd5mcqaj5g6cmrqagn-semodule-utils-2.7/bin/semodule_package
shrinking /nix/store/c3g0yfshr0a3nxfd5mcqaj5g6cmrqagn-semodule-utils-2.7/bin/semodule_unpackage
shrinking /nix/store/c3g0yfshr0a3nxfd5mcqaj5g6cmrqagn-semodule-utils-2.7/bin/semodule_deps
shrinking /nix/store/c3g0yfshr0a3nxfd5mcqaj5g6cmrqagn-semodule-utils-2.7/bin/semodule_link
gzipping man pages under /nix/store/c3g0yfshr0a3nxfd5mcqaj5g6cmrqagn-semodule-utils-2.7/share/man/
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/c3g0yfshr0a3nxfd5mcqaj5g6cmrqagn-semodule-utils-2.7/bin
patching script interpreter paths in /nix/store/c3g0yfshr0a3nxfd5mcqaj5g6cmrqagn-semodule-utils-2.7
checking for references to /build in /nix/store/c3g0yfshr0a3nxfd5mcqaj5g6cmrqagn-semodule-utils-2.7...
/nix/store/c3g0yfshr0a3nxfd5mcqaj5g6cmrqagn-semodule-utils-2.7

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: semodule-utils

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@Ekleog
Copy link
Member

Ekleog commented Sep 9, 2018

(triage) this looks ready to merge? :)

@matthewbauer matthewbauer merged commit 5d40389 into NixOS:master Sep 10, 2018
@outergod outergod deleted the pkgs/semodule-utils-2.7 branch September 10, 2018 20:21
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.

Nix multi-user installer fails on Fedora Rawhide due to SELinux denial
5 participants