tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gnumake: Fix build against glibc 2.27.
Shea Levy
8 years ago
a551e6de
765194d7
+29
-1
3 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
glibc
common-2.27.nix
tools
build-managers
gnumake
4.2
default.nix
glibc-2.27.patch
+2
pkgs/development/libraries/glibc/common-2.27.nix
···
192
192
maintainers = [ lib.maintainers.eelco ];
193
193
platforms = lib.platforms.linux;
194
194
} // meta;
195
195
+
196
196
+
passthru = { inherit version; };
195
197
}
196
198
197
199
// lib.optionalAttrs (cross != null) {
+3
-1
pkgs/development/tools/build-managers/gnumake/4.2/default.nix
···
4
4
5
5
let
6
6
version = "4.2.1";
7
7
+
8
8
+
needGlibcPatch = (stdenv.cc.libc.version or "") == "2.27";
7
9
in
8
10
stdenv.mkDerivation {
9
11
name = "gnumake-${version}";
···
20
22
# included Makefiles, don't look in /usr/include and friends.
21
23
./impure-dirs.patch
22
24
./pselect.patch
23
23
-
];
25
25
+
] ++ stdenv.lib.optional needGlibcPatch ./glibc-2.27.patch;
24
26
25
27
nativeBuildInputs = stdenv.lib.optionals guileSupport [ pkgconfig ];
26
28
buildInputs = stdenv.lib.optionals guileSupport [ guile ];
+24
pkgs/development/tools/build-managers/gnumake/4.2/glibc-2.27.patch
···
1
1
+
From 48c8a116a914a325a0497721f5d8b58d5bba34d4 Mon Sep 17 00:00:00 2001
2
2
+
From: Paul Smith <psmith@gnu.org>
3
3
+
Date: Sun, 19 Nov 2017 15:09:16 -0500
4
4
+
Subject: * configure.ac: Support GLIBC glob interface version 2
5
5
+
6
6
+
---
7
7
+
configure.ac | 3 +--
8
8
+
1 file changed, 1 insertion(+), 2 deletions(-)
9
9
+
10
10
+
diff -Naur a/configure b/configure
11
11
+
--- configure 2016-06-10 19:03:21.000000000 -0400
12
12
+
+++ configure 2018-02-18 04:40:32.971371555 -0500
13
13
+
@@ -11481,10 +11481,9 @@
14
14
+
#include <glob.h>
15
15
+
#include <fnmatch.h>
16
16
+
17
17
+
-#define GLOB_INTERFACE_VERSION 1
18
18
+
#if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
19
19
+
# include <gnu-versions.h>
20
20
+
-# if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
21
21
+
+# if _GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2
22
22
+
gnu glob
23
23
+
# endif
24
24
+
#endif