Skip to content

Commit adbde4f

Browse files
committedMar 21, 2025
libselinux: fix build on 32-bit LFS platforms
see the linked pull request for more details, basically upstream tried to improve compatibility for platforms where ino_t defaults to 32-bit, and in the process broke 32-bit platforms where ino_t defaults to 64-bit. patch is in upstream review.
1 parent 6bf652d commit adbde4f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎pkgs/by-name/li/libselinux/package.nix

+11
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ stdenv.mkDerivation (
5757
url = "https://git.yoctoproject.org/meta-selinux/plain/recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch?id=62b9c816a5000dc01b28e78213bde26b58cbca9d";
5858
hash = "sha256-RiEUibLVzfiRU6N/J187Cs1iPAih87gCZrlyRVI2abU=";
5959
})
60+
61+
# compilation is currently broken on 32-bit LFS platforms
62+
(fetchurl {
63+
url = "https://github.com/SELinuxProject/selinux/commit/86211534862622124d26e8570034efc1f5d78823.patch";
64+
hash = "sha256-ndPOZWPyO/o8R2ay9H1q7OIOh4diAoZK45PF+mFdvbY=";
65+
postFetch = ''
66+
mv "$out" $TMPDIR/patch
67+
${buildPackages.patchutils_0_3_3}/bin/filterdiff \
68+
-i 'a/libselinux/*' --strip 1 <$TMPDIR/patch >"$out"
69+
'';
70+
})
6071
];
6172

6273
nativeBuildInputs =

0 commit comments

Comments
 (0)
Failed to load comments.