netatalk: prevent use of LD_LIBRARY_PATH
authorNicolas Thill <redacted>
Fri, 5 Sep 2014 13:49:09 +0000 (15:49 +0200)
committerNicolas Thill <redacted>
Fri, 5 Sep 2014 13:49:09 +0000 (15:49 +0200)
Add a patch to prevent use of LD_LIBRARY_PATH when checking for BDB libs
This caused build failure when host = target

Signed-off-by: Nicolas Thill <redacted>
net/netatalk/patches/002-ld_library_path.patch [new file with mode: 0644]

diff --git a/net/netatalk/patches/002-ld_library_path.patch b/net/netatalk/patches/002-ld_library_path.patch
new file mode 100644 (file)
index 0000000..381a85b
--- /dev/null
@@ -0,0 +1,26 @@
+--- a/macros/db3-check.m4
++++ b/macros/db3-check.m4
+@@ -148,9 +148,9 @@ AC_DEFUN([AC_PATH_BDB],[
+                         dnl -- LD_LIBRARY_PATH on many platforms. This will be fairly
+                         dnl -- portable hopefully. Reference:
+                         dnl -- http://lists.gnu.org/archive/html/autoconf/2009-03/msg00040.html
+-                        eval export $shlibpath_var=$bdblibdir
++#                        eval export $shlibpath_var=$bdblibdir
+                         NETATALK_BDB_TRY_LINK
+-                        eval export $shlibpath_var=$saved_shlibpath_var
++#                        eval export $shlibpath_var=$saved_shlibpath_var
+                         if test x"${atalk_cv_bdb_version}" = x"yes"; then
+                             BDB_CFLAGS="-I${bdbdir}/include${subdir}"
+@@ -171,9 +171,9 @@ AC_DEFUN([AC_PATH_BDB],[
+                            CPPFLAGS="-I${bdbdir}/include${subdir} $CPPFLAGS"
+                            LDFLAGS="-L$bdblibdir $LDFLAGS"
+-                           eval export $shlibpath_var=$bdblibdir
++#                           eval export $shlibpath_var=$bdblibdir
+                            NETATALK_BDB_TRY_LINK
+-                           eval export $shlibpath_var=$saved_shlibpath_var
++#                           eval export $shlibpath_var=$saved_shlibpath_var
+                            if test x"${atalk_cv_bdb_version}" = x"yes"; then
+                               BDB_CFLAGS="-I${bdbdir}/include${subdir}"
git clone https://git.99rst.org/PROJECT