Merge link patch from Ubuntu
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 17 Aug 2017 08:59:49 +0000 (10:59 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 17 Aug 2017 08:59:49 +0000 (10:59 +0200)
debian/changelog
debian/patches/link-pthread.diff [new file with mode: 0644]
debian/patches/series

index 24e31f0..a9116b6 100644 (file)
@@ -1,3 +1,10 @@
+protobuf (2.5.0-9.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Merge link patch from Debian/Ubuntu
+
+ -- František Dvořák <valtri@cuv.zcu.cz>  Thu, 17 Aug 2017 10:57:50 +0200
+
 protobuf (2.5.0-9) unstable; urgency=medium
 
   * Upload to unstable.
diff --git a/debian/patches/link-pthread.diff b/debian/patches/link-pthread.diff
new file mode 100644 (file)
index 0000000..aae10d4
--- /dev/null
@@ -0,0 +1,32 @@
+Fixing as-needed issue
+
+http://bugs.gentoo.org/show_bug.cgi?id=271509
+
+Index: debian/m4/acx_pthread.m4
+===================================================================
+--- debian.orig/m4/acx_pthread.m4
++++ debian/m4/acx_pthread.m4
+@@ -278,7 +278,8 @@
+          fi
+       fi
+       
+-      if test x"$done" = xno; then
++      if test x"$done" = xyes; then
++         done="no"
+          AC_MSG_CHECKING([whether -pthread is sufficient with -shared])
+          AC_TRY_LINK([#include <pthread.h>],
+             [pthread_t th; pthread_join(th, 0);
+Index: debian/gtest/m4/acx_pthread.m4
+===================================================================
+--- debian.orig/gtest/m4/acx_pthread.m4
++++ debian/gtest/m4/acx_pthread.m4
+@@ -278,7 +278,8 @@
+          fi
+       fi
+       
+-      if test x"$done" = xno; then
++      if test x"$done" = xyes; then
++         done="no"
+          AC_MSG_CHECKING([whether -pthread is sufficient with -shared])
+          AC_TRY_LINK([#include <pthread.h>],
+             [pthread_t th; pthread_join(th, 0);
index f0d4f77..3acda5d 100644 (file)
@@ -1,5 +1,6 @@
 # comment to keep empty file in the diff.gz
 disable-setuptools-download.diff
 arm_optimization.diff
+link-pthread.diff
 revert_upstream_issue_388_about_rpath.diff
 fix-ftbfs-upstream-issue-488.patch