libselinux: fix cross compilation (#51201)
libselinux needs native python to compute the installation prefix. Swig generates the c code for the extension and needs python.h at compile, so we put python into buildInputs
This commit is contained in:
parent
ee77dd61e3
commit
e7d55483d1
@ -19,9 +19,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0mwcq78v6ngbq06xmb9dvilpg0jnl2vs9fgrpakhmmiskdvc1znh";
|
sha256 = "0mwcq78v6ngbq06xmb9dvilpg0jnl2vs9fgrpakhmmiskdvc1znh";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ] ++ optionals enablePython [ swig python ];
|
||||||
buildInputs = [ libsepol pcre fts ]
|
buildInputs = [ libsepol pcre fts ] ++ optionals enablePython [ python ];
|
||||||
++ optionals enablePython [ swig python ];
|
|
||||||
|
|
||||||
# drop fortify here since package uses it by default, leading to compile error:
|
# drop fortify here since package uses it by default, leading to compile error:
|
||||||
# command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
|
# command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
|
||||||
|
Loading…
Reference in New Issue
Block a user