]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
openldap: Copy patch files into repository.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 7 Feb 2010 14:54:37 +0000 (15:54 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 7 Feb 2010 14:54:37 +0000 (15:54 +0100)
pkgs/core/openldap/openldap.nm
pkgs/core/openldap/patches/openldap-2.4.17-disable_sys_err.patch [new file with mode: 0644]

index f7e6ad35472b4b55b256367a3e6c232dc0bb9ad8..67e7e3576fac8569ca96ab254198fa05e9f78e6e 100644 (file)
@@ -48,8 +48,6 @@ endef
 
 PKG_TARBALL    = $(THISAPP).tgz
 
-PKG_PATCHES   += $(THISAPP)-disable_sys_err.patch
-
 ###############################################################################
 # Installation Details
 ###############################################################################
diff --git a/pkgs/core/openldap/patches/openldap-2.4.17-disable_sys_err.patch b/pkgs/core/openldap/patches/openldap-2.4.17-disable_sys_err.patch
new file mode 100644 (file)
index 0000000..c1ab72d
--- /dev/null
@@ -0,0 +1,17 @@
+diff -Naur openldap-2.4.16.org/include/ac/errno.h openldap-2.4.16/include/ac/errno.h
+--- openldap-2.4.16.org/include/ac/errno.h     2009-01-22 01:00:52.000000000 +0100
++++ openldap-2.4.16/include/ac/errno.h 2009-04-28 13:48:01.000000000 +0200
+@@ -36,12 +36,7 @@
+ #undef _AC_ERRNO_UNKNOWN
+ #define _AC_ERRNO_UNKNOWN "unknown error"
+-#ifdef HAVE_SYS_ERRLIST
+-      /* this is thread safe */
+-#     define  STRERROR(e) ( (e) > -1 && (e) < sys_nerr \
+-                      ? sys_errlist[(e)] : _AC_ERRNO_UNKNOWN )
+-
+-#elif defined( HAVE_STRERROR )
++#if defined( HAVE_STRERROR )
+       /* this may not be thread safe */
+       /* and, yes, some implementations of strerror may return NULL */
+ #     define  STRERROR(e) ( strerror(e) \