e2fsprogs: patch out glibc instead of local fix so headers are usable
This commit is contained in:
parent
c3b2c31b2f
commit
df1dcbf07f
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildPackages, fetchurl, pkgconfig, libuuid, gettext, texinfo, perl }:
|
{ stdenv, buildPackages, fetchurl, fetchpatch, pkgconfig, libuuid, gettext, texinfo, perl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "e2fsprogs-1.44.4";
|
name = "e2fsprogs-1.44.4";
|
||||||
@ -15,8 +15,14 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ libuuid gettext ];
|
buildInputs = [ libuuid gettext ];
|
||||||
|
|
||||||
# Only use glibc's __GNUC_PREREQ(X,Y) (checks if compiler is gcc version >= X.Y) when using glibc
|
# Only use glibc's __GNUC_PREREQ(X,Y) (checks if compiler is gcc version >= X.Y) when using glibc
|
||||||
NIX_CFLAGS_COMPILE = stdenv.lib.optional (stdenv.hostPlatform.libc != "glibc")
|
patches = if stdenv.hostPlatform.libc == "glibc" then null
|
||||||
"-D__GNUC_PREREQ(maj,min)=0";
|
else [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://raw.githubusercontent.com/void-linux/void-packages/1f3b51493031cc0309009804475e3db572fc89ad/srcpkgs/e2fsprogs/patches/fix-glibcism.patch";
|
||||||
|
sha256 = "1q7y8nhsfwl9r1q7nhrlikazxxj97p93kgz5wh7723cshlji2vaa";
|
||||||
|
extraPrefix = "";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
if stdenv.isLinux then [
|
if stdenv.isLinux then [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user