summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-12-23 08:07:58 +0000
committerSam James <sam@gentoo.org>2021-12-23 08:13:45 +0000
commitcfad54a2df42ae0950abdc46285926ec405bf54c (patch)
tree567b775719867bbe6475968d450bf59939c973e5
parentnet-misc/miniupnpd: fix build on musl (diff)
downloadgentoo-cfad54a2df42ae0950abdc46285926ec405bf54c.tar.gz
gentoo-cfad54a2df42ae0950abdc46285926ec405bf54c.tar.bz2
gentoo-cfad54a2df42ae0950abdc46285926ec405bf54c.zip
sys-fabric/libcxgb4: fix build on musl
Closes: https://bugs.gentoo.org/713776 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--sys-fabric/libcxgb4/files/libcxgb4-1.3.2-use-system-queue.patch12
-rw-r--r--sys-fabric/libcxgb4/libcxgb4-1.3.2.ebuild13
2 files changed, 22 insertions, 3 deletions
diff --git a/sys-fabric/libcxgb4/files/libcxgb4-1.3.2-use-system-queue.patch b/sys-fabric/libcxgb4/files/libcxgb4-1.3.2-use-system-queue.patch
new file mode 100644
index 000000000000..3fa51a780d5d
--- /dev/null
+++ b/sys-fabric/libcxgb4/files/libcxgb4-1.3.2-use-system-queue.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/713776
+--- a/src/libcxgb4.h
++++ b/src/libcxgb4.h
+@@ -41,7 +41,7 @@
+ #include <sys/time.h>
+ #include <infiniband/driver.h>
+ #include <infiniband/arch.h>
+-#include "queue.h"
++#include <sys/queue.h>
+ #include "t4.h"
+
+ extern unsigned long c4iw_page_size;
diff --git a/sys-fabric/libcxgb4/libcxgb4-1.3.2.ebuild b/sys-fabric/libcxgb4/libcxgb4-1.3.2.ebuild
index b4a7f4de7ad5..d0061e91f3d6 100644
--- a/sys-fabric/libcxgb4/libcxgb4-1.3.2.ebuild
+++ b/sys-fabric/libcxgb4/libcxgb4-1.3.2.ebuild
@@ -8,16 +8,23 @@ OFED_RC="1"
OFED_RC_VER="1"
OFED_SUFFIX="1"
-inherit openib
+inherit epatch openib
DESCRIPTION="OpenIB - driver for Chelsio T4-based iWARP (RDMA over IP/ethernet)"
KEYWORDS="amd64 x86 ~amd64-linux"
IUSE=""
-DEPEND="sys-fabric/libibverbs:${SLOT}"
-RDEPEND="${DEPEND}"
+RDEPEND="sys-fabric/libibverbs:${SLOT}"
+DEPEND="${DEPEND}
+ elibc_musl? ( sys-libs/queue-standalone )"
block_other_ofed_versions
+src_prepare() {
+ # bug #713776
+ epatch "${FILESDIR}"/${PN}-1.3.2-use-system-queue.patch
+ rm src/queue.h || die
+}
+
src_configure() {
econf --disable-static
}