[packages/glibc] - added patch to force all nss required include dirs (both nss and nspr) instead of relying on nss

atler atler at pld-linux.org
Sat Sep 27 13:16:27 CEST 2014


commit 6eae7d1752db2ed8f5b467da8b8d1587f0b618fa
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Sep 27 13:14:21 2014 +0200

    - added patch to force all nss required include dirs (both nss and nspr)
      instead of relying on nss-config (not sure though why pkg-config is
      not used in glibc)

 glibc-nss_include_dirs.patch | 29 +++++++++++++++++++++++++++++
 glibc.spec                   |  3 ++-
 2 files changed, 31 insertions(+), 1 deletion(-)
---
diff --git a/glibc.spec b/glibc.spec
index 4cde171..5cdeb42 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -61,7 +61,7 @@ Patch5:		%{name}-sparc-softfp-gcc.patch
 Patch6:		%{name}-paths.patch
 Patch7:		1070_all_glibc-fadvise64_64.patch
 Patch8:		%{name}-missing-nls.patch
-
+Patch9:		%{name}-nss_include_dirs.patch
 Patch10:	%{name}-info.patch
 Patch11:	%{name}-autoconf.patch
 Patch12:	%{name}-format.patch
@@ -949,6 +949,7 @@ exit 1
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p0
 
 %patch10 -p1
 %patch11 -p1
diff --git a/glibc-nss_include_dirs.patch b/glibc-nss_include_dirs.patch
new file mode 100644
index 0000000..5e602f1
--- /dev/null
+++ b/glibc-nss_include_dirs.patch
@@ -0,0 +1,29 @@
+--- configure.ac.orig	2014-09-27 12:55:02.445395745 +0200
++++ configure.ac	2014-09-27 12:55:39.848729357 +0200
+@@ -277,10 +277,7 @@
+ 	      [nss_crypt=$enableval],
+ 	      [nss_crypt=no])
+ if test x$nss_crypt = xyes; then
+-  nss_includes=-I$(nss-config --includedir 2>/dev/null)
+-  if test $? -ne 0; then
+-    AC_MSG_ERROR([cannot find include directory with nss-config])
+-  fi
++  nss_includes='-I/usr/include/nss -I/usr/include/nspr'
+   old_CFLAGS="$CFLAGS"
+   CFLAGS="$CFLAGS $nss_includes"
+   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([typedef int PRBool;
+--- crypt/Makefile.orig	2014-09-27 13:04:28.422466311 +0200
++++ crypt/Makefile	2014-09-27 13:05:00.672466567 +0200
+@@ -37,9 +37,9 @@
+ endif
+ 
+ ifeq ($(nss-crypt),yes)
+-CPPFLAGS-sha256-crypt.c = -DUSE_NSS -I$(shell nss-config --includedir)
+-CPPFLAGS-sha512-crypt.c = -DUSE_NSS -I$(shell nss-config --includedir)
+-CPPFLAGS-md5-crypt.c = -DUSE_NSS -I$(shell nss-config --includedir)
++CPPFLAGS-sha256-crypt.c = -DUSE_NSS -I/usr/include/nss -I/usr/include/nspr
++CPPFLAGS-sha512-crypt.c = -DUSE_NSS -I/usr/include/nss -I/usr/include/nspr
++CPPFLAGS-md5-crypt.c = -DUSE_NSS -I/usr/include/nss -I/usr/include/nspr
+ LDLIBS-crypt.so = -lfreebl3
+ else
+ libcrypt-routines += md5 sha256 sha512
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/glibc.git/commitdiff/6eae7d1752db2ed8f5b467da8b8d1587f0b618fa



More information about the pld-cvs-commit mailing list