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";
|
sha256 = "f6cef88969300a6564498557eeea1d8da58acceae238077852ff261a2cb1d815";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix build with glibc >= 2.28
|
||||||
|
# https://github.com/NixOS/nixpkgs/issues/86403
|
||||||
|
./pyblock-sysmacros.h.patch
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i -e 's|/usr/include/python|${python}/include/python|' \
|
sed -i -e 's|/usr/include/python|${python}/include/python|' \
|
||||||
-e 's/-Werror *//' -e 's|/usr/|'"$out"'/|' Makefile
|
-e 's/-Werror *//' -e 's|/usr/|'"$out"'/|' Makefile
|
||||||
|
|
Loading…
Reference in New Issue
Block a user