commit:     facca24efb1aeab457357adf25a23b55fb5b350f
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 15 13:09:51 2021 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Mon Nov 15 13:11:04 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=facca24e

dev-libs/libunistring: fix tests

Thanks-to: Bernardine <bernardine <AT> you-spam.com>
Closes: https://bugs.gentoo.org/688464
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>

 dev-libs/libunistring/files/libunistring-test.patch | 15 +++++++++++++++
 dev-libs/libunistring/libunistring-0.9.10-r1.ebuild |  1 +
 2 files changed, 16 insertions(+)

diff --git a/dev-libs/libunistring/files/libunistring-test.patch 
b/dev-libs/libunistring/files/libunistring-test.patch
new file mode 100644
index 000000000000..c87befbd987f
--- /dev/null
+++ b/dev-libs/libunistring/files/libunistring-test.patch
@@ -0,0 +1,15 @@
+https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=cca32830b57e91f837c01d15b8732f23ff97fc36
+
+Author: Bruno Haible <br...@clisp.org>
+
+--- a/tests/glthread/thread.h
++++ b/tests/glthread/thread.h
+@@ -133,8 +133,6 @@ extern int glthread_in_use (void);
+    call to foo(...) in the same function.  To avoid this, we test the
+    address of a function in libpthread that we don't use.  */
+ 
+-#  pragma weak pthread_create
+-
+ #  ifndef pthread_sigmask /* Do not declare rpl_pthread_sigmask weak.  */
+ #   pragma weak pthread_sigmask
+ #  endif

diff --git a/dev-libs/libunistring/libunistring-0.9.10-r1.ebuild 
b/dev-libs/libunistring/libunistring-0.9.10-r1.ebuild
index 7c569f145a3c..d1ebd5807547 100644
--- a/dev-libs/libunistring/libunistring-0.9.10-r1.ebuild
+++ b/dev-libs/libunistring/libunistring-0.9.10-r1.ebuild
@@ -16,6 +16,7 @@ IUSE="doc static-libs"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-nodocs.patch
+       "${FILESDIR}"/${PN}-test.patch
 )
 
 src_prepare() {

Reply via email to