summaryrefslogtreecommitdiff
path: root/recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch')
-rw-r--r--recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch b/recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch
new file mode 100644
index 0000000000..6d6d03e36b
--- /dev/null
+++ b/recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch
@@ -0,0 +1,35 @@
+Move back to AC_TRY_LINK...
+
+Index: netatalk-2.0.5/macros/db3-check.m4
+===================================================================
+--- netatalk-2.0.5.orig/macros/db3-check.m4 2010-03-05 17:57:14.000000000 +0100
++++ netatalk-2.0.5/macros/db3-check.m4 2010-03-05 18:33:08.000000000 +0100
+@@ -33,25 +33,13 @@
+ for lib in $atalk_cv_bdb_try_libs ; do
+ LIBS="$lib $savedlibs"
+ AC_MSG_CHECKING([Berkeley DB library ($lib)])
+- AC_TRY_RUN([
++ AC_TRY_LINK([
+ #include <stdio.h>
+ #include <db.h>
+- int main(void) {
+- int major, minor, patch;
++ ], [
++ int minor, major, patch;
+ char *version_str;
+ version_str = db_version(&major, &minor, &patch);
+- if (major < DB_MAJOR_REQ || minor < DB_MINOR_REQ || patch < DB_PATCH_REQ) {
+- printf("linking wrong library version (%d.%d.%d), ",major, minor, patch);
+- return (2);
+- }
+- if ( major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR || patch != DB_VERSION_PATCH) {
+- printf("header/library version mismatch (%d.%d.%d/%d.%d.%d), ",
+- DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH, major, minor, patch);
+- return (3);
+- }
+- printf("%d.%d.%d ... ",major, minor, patch);
+- return (0);
+- }
+ ],[
+
+ AC_MSG_RESULT(yes)