diff options
author | Bas van Dijk <v.dijk.bas@gmail.com> | 2021-02-08 14:08:17 +0100 |
---|---|---|
committer | Bas van Dijk <v.dijk.bas@gmail.com> | 2021-02-08 14:25:44 +0100 |
commit | 6005700c53708545467bbe12d30399b1e10655d6 (patch) | |
tree | 851663b9d39f8def8f2098da6834a97edb457fc9 /pkgs/os-specific/linux/libsemanage | |
parent | 3ed5570514429b1d32c59dc4a82e74a249d8818a (diff) | |
download | nixpkgs-6005700c53708545467bbe12d30399b1e10655d6.tar nixpkgs-6005700c53708545467bbe12d30399b1e10655d6.tar.gz nixpkgs-6005700c53708545467bbe12d30399b1e10655d6.tar.bz2 nixpkgs-6005700c53708545467bbe12d30399b1e10655d6.tar.lz nixpkgs-6005700c53708545467bbe12d30399b1e10655d6.tar.xz nixpkgs-6005700c53708545467bbe12d30399b1e10655d6.tar.zst nixpkgs-6005700c53708545467bbe12d30399b1e10655d6.zip |
libsemanage: fix build by disabling clobbered warning
This turns the GCC clobbered error into a warning which should fix: ``` emanage_store.c: In function 'semanage_exec_prog': semanage_store.c:1278:6: error: variable 'i' might be clobbered by 'longjmp' or 'vfork' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wclobbered-Werror=clobbered8;;] 1278 | int i; | ^ cc1: all warnings being treated as errors ```
Diffstat (limited to 'pkgs/os-specific/linux/libsemanage')
-rw-r--r-- | pkgs/os-specific/linux/libsemanage/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/libsemanage/default.nix b/pkgs/os-specific/linux/libsemanage/default.nix index d7255ac4587..11a6f2755d4 100644 --- a/pkgs/os-specific/linux/libsemanage/default.nix +++ b/pkgs/os-specific/linux/libsemanage/default.nix @@ -30,6 +30,16 @@ stdenv.mkDerivation rec { "DEFAULT_SEMANAGE_CONF_LOCATION=$(out)/etc/selinux/semanage.conf" ]; + # The following turns the 'clobbered' error into a warning + # which should fix the following error: + # + # semanage_store.c: In function 'semanage_exec_prog': + # semanage_store.c:1278:6: error: variable 'i' might be clobbered by 'longjmp' or 'vfork' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wclobbered-Werror=clobbered8;;] + # 1278 | int i; + # | ^ + # cc1: all warnings being treated as errors + NIX_CFLAGS_COMPILE = [ "-Wno-error=clobbered" ]; + installTargets = [ "install" ] ++ optionals enablePython [ "install-pywrap" ]; meta = removeAttrs libsepol.meta ["outputsToInstall"] // { |