mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
python2Packages.nixpart0/pyblock: patch for glibc >= 2.28
This commit is contained in:
parent
64f4073f8d
commit
912e1e87c0
12
pkgs/tools/filesystems/nixpart/0.4/pyblock-sysmacros.h.patch
Normal file
12
pkgs/tools/filesystems/nixpart/0.4/pyblock-sysmacros.h.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff --git a/dm.c b/dm.c
|
||||
index 5daa0e5..d5b84c8 100644
|
||||
--- a/dm.c
|
||||
+++ b/dm.c
|
||||
@@ -19,6 +19,7 @@
|
||||
#define _GNU_SOURCE
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdarg.h>
|
|
@ -11,6 +11,12 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "f6cef88969300a6564498557eeea1d8da58acceae238077852ff261a2cb1d815";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix build with glibc >= 2.28
|
||||
# https://github.com/NixOS/nixpkgs/issues/86403
|
||||
./pyblock-sysmacros.h.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e 's|/usr/include/python|${python}/include/python|' \
|
||||
-e 's/-Werror *//' -e 's|/usr/|'"$out"'/|' Makefile
|
||||
|
|
Loading…
Reference in a new issue