3
0
Fork 0
forked from mirrors/nixpkgs

checkpolicy: fixup includes with glibc-2.26

This commit is contained in:
Vladimír Čunát 2017-11-07 15:27:53 +01:00
parent 54c14e2fa3
commit d51f9b364e
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -10,16 +10,17 @@ stdenv.mkDerivation rec {
sha256 = "1m5wjm43lzp6bld8higsvdm2dkddydihhwv9qw2w9r4dm0largcv";
};
# Don't build tests
postPatch = ''
sed '/-C test/d' -i Makefile
sed '1i#include <ctype.h>' -i checkpolicy.c
'';
nativeBuildInputs = [ bison flex ];
buildInputs = [ libsepol ];
NIX_CFLAGS_COMPILE = "-fstack-protector-all";
# Don't build tests
postPatch = ''
sed -i '/-C test/d' Makefile
'';
preBuild = ''
makeFlagsArray+=("LEX=flex")
makeFlagsArray+=("LIBDIR=${libsepol}/lib")