fakeroot: fix build w/glibc-2.33

This commit is contained in:
Maximilian Bosch 2021-05-28 13:13:35 +02:00 committed by Vladimír Čunát
parent 3f5336e15b
commit 6e50ffe704
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -9,7 +9,23 @@ stdenv.mkDerivation rec {
sha256 = "1xpl0s2yjyjwlf832b6kbkaa5921liybaar13k7n45ckd9lxd700";
};
patches = lib.optional stdenv.isLinux ./einval.patch
patches = lib.optionals stdenv.isLinux [
./einval.patch
# glibc 2.33 patches from ArchLinux
(fetchpatch {
url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/fakeroot/trunk/fakeroot-1.25.3-glibc-2.33-fix-1.patch";
sha256 = "sha256-F6BcxYInSLu7Fxg6OmMZDhTWoLqsc//yYPlTZqQQl68=";
})
(fetchpatch {
url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/fakeroot/trunk/fakeroot-1.25.3-glibc-2.33-fix-2.patch";
sha256 = "sha256-ifpJxhk6MyQpFolC1hIAAUjcHmOHVU1D25tRwpu2S/k=";
})
(fetchpatch {
url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/fakeroot/trunk/fakeroot-1.25.3-glibc-2.33-fix-3.patch";
sha256 = "sha256-o2Xm4C64Ny9TL8fjsZltjO1CdJ4VGwqZ+LnufVL5Sq8=";
})
]
# patchset from brew
++ lib.optionals stdenv.isDarwin [
(fetchpatch {