summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-16 22:10:47 +0000
committerSam James <sam@gentoo.org>2021-03-16 22:10:47 +0000
commit214d2c05f94fbcc57070805e3bd83c64cdefe564 (patch)
tree606079260436bd8bfcfe45a112d5fe511693ba53 /sys-cluster/libqb
parentdev-libs/liblinear: add 243 (diff)
downloadgentoo-214d2c05f94fbcc57070805e3bd83c64cdefe564.tar.gz
gentoo-214d2c05f94fbcc57070805e3bd83c64cdefe564.tar.bz2
gentoo-214d2c05f94fbcc57070805e3bd83c64cdefe564.zip
sys-cluster/libqb: fix build with slibtool
Thanks-to: orbea <orbea@riseup.net> Closes: https://bugs.gentoo.org/775605 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-cluster/libqb')
-rw-r--r--sys-cluster/libqb/files/libqb-2.0.1-slibtool.patch19
-rw-r--r--sys-cluster/libqb/libqb-2.0.1-r1.ebuild4
2 files changed, 23 insertions, 0 deletions
diff --git a/sys-cluster/libqb/files/libqb-2.0.1-slibtool.patch b/sys-cluster/libqb/files/libqb-2.0.1-slibtool.patch
new file mode 100644
index 000000000000..f96652c30660
--- /dev/null
+++ b/sys-cluster/libqb/files/libqb-2.0.1-slibtool.patch
@@ -0,0 +1,19 @@
+https://github.com/ClusterLabs/libqb/pull/440
+https://bugs.gentoo.org/775605
+
+From 84c09815fee4d1c2571ed1ef772812cac470a8f3 Mon Sep 17 00:00:00 2001
+From: orbea <orbea@riseup.net>
+Date: Tue, 16 Mar 2021 11:13:45 -0700
+Subject: [PATCH] build: Fix undefined pthread reference.
+--- a/tests/Makefile.am
++++ b/tests/Makefile.am
+@@ -38,7 +38,8 @@ bmc_SOURCES = bmc.c
+ bmc_LDADD = $(top_builddir)/lib/libqb.la
+
+ bmcpt_SOURCES = bmcpt.c
+-bmcpt_LDADD = $(top_builddir)/lib/libqb.la
++bmcpt_CFLAGS = $(PTHREAD_CFLAGS)
++bmcpt_LDADD = $(PTHREAD_LIBS) $(top_builddir)/lib/libqb.la
+
+ bms_SOURCES = bms.c
+ bms_CFLAGS = $(GLIB_CFLAGS)
diff --git a/sys-cluster/libqb/libqb-2.0.1-r1.ebuild b/sys-cluster/libqb/libqb-2.0.1-r1.ebuild
index 0d08cf0e61ad..acda01cfb901 100644
--- a/sys-cluster/libqb/libqb-2.0.1-r1.ebuild
+++ b/sys-cluster/libqb/libqb-2.0.1-r1.ebuild
@@ -26,6 +26,10 @@ BDEPEND="app-arch/xz-utils
DOCS=( ChangeLog README.markdown )
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.1-slibtool.patch
+)
+
src_prepare() {
default