policycoreutils: fix i686-linux compilation error, closes #9544

This adds a patch to quiet a compiler warning which would be harmless
except that it breaks the build due to use of -Werror.
See http://hydra.nixos.org/build/25151888/nixlog/1
This commit is contained in:
Daniel Fox Franke
2015-08-29 20:47:21 -04:00
committed by Rok Garbas
parent 38e2c1586b
commit ca673d66de
2 changed files with 14 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
sha256 = "0y9l9k60iy21hj0lcvfdfxs1fxydg6d3pxp9rhy7hwr4y5vgh6dq";
};
patches = [ ./fix-printf-type.patch ];
postPatch = ''
# Fix references to libsepol.a
find . -name Makefile -exec sed -i 's,[^ ]*/libsepol.a,${libsepol}/lib/libsepol.a,g' {} \;