libselinux: fix build with musl (#119472)
Co-authored-by: Kasper Gałkowski <kpg@posteo.net> Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
38c8ae9bbe
commit
fc141a889d
|
@ -44,6 +44,11 @@ stdenv.mkDerivation rec {
|
||||||
"PYTHONLIBDIR=$(py)/${python3.sitePackages}"
|
"PYTHONLIBDIR=$(py)/${python3.sitePackages}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
|
substituteInPlace src/procattr.c \
|
||||||
|
--replace "#include <unistd.h>" ""
|
||||||
|
'';
|
||||||
|
|
||||||
preInstall = optionalString enablePython ''
|
preInstall = optionalString enablePython ''
|
||||||
mkdir -p $py/${python3.sitePackages}/selinux
|
mkdir -p $py/${python3.sitePackages}/selinux
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue