libselinux: remove use of LFS64 function

This function has been removed in musl 1.2.4.
This commit is contained in:
Alyssa Ross 2024-02-09 12:27:56 +01:00
parent cf07cc7f7f
commit 782e2d252d
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -39,6 +39,11 @@ stdenv.mkDerivation rec {
-i 'a/libselinux/*' --strip 1 <$TMPDIR/patch >"$out"
'';
})
(fetchurl {
url = "https://git.yoctoproject.org/meta-selinux/plain/recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch?id=62b9c816a5000dc01b28e78213bde26b58cbca9d";
sha256 = "sha256-RiEUibLVzfiRU6N/J187Cs1iPAih87gCZrlyRVI2abU=";
})
];
nativeBuildInputs = [ pkg-config python3 ] ++ optionals enablePython [
@ -53,7 +58,7 @@ stdenv.mkDerivation rec {
# command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
hardeningDisable = [ "fortify" ];
env.NIX_CFLAGS_COMPILE = "-Wno-error";
env.NIX_CFLAGS_COMPILE = "-Wno-error -D_FILE_OFFSET_BITS=64";
makeFlags = [
"PREFIX=$(out)"