summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-02-10 06:59:31 +0000
committerSam James <sam@gentoo.org>2022-02-10 07:50:09 +0000
commita32c13886353c0a861cb0c140385d1bd8879fc79 (patch)
treea68035d6e4075159255ce392626fd31030f5c061 /net-misc/socat
parentwww-apps/drupal: 7.87 bump (diff)
downloadgentoo-a32c13886353c0a861cb0c140385d1bd8879fc79.tar.gz
gentoo-a32c13886353c0a861cb0c140385d1bd8879fc79.tar.bz2
gentoo-a32c13886353c0a861cb0c140385d1bd8879fc79.zip
net-misc/socat: fix build on musl
Closes: https://bugs.gentoo.org/831016 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/socat')
-rw-r--r--net-misc/socat/socat-1.7.4.3.ebuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/net-misc/socat/socat-1.7.4.3.ebuild b/net-misc/socat/socat-1.7.4.3.ebuild
index 17478f6a210d..ca8f23d51acb 100644
--- a/net-misc/socat/socat-1.7.4.3.ebuild
+++ b/net-misc/socat/socat-1.7.4.3.ebuild
@@ -43,6 +43,12 @@ src_configure() {
tc-export AR
+ # getprotobynumber_r doesn't exist on musl, so avoid probing for it
+ # and possibly getting it wrong. TODO: fix configure?
+ # (Grabbed from Alpine Linux: https://git.alpinelinux.org/aports/commit/main/socat/APKBUILD?id=5edc9195355ced3db991c1a7cda5648d52019b11)
+ # bug #831016
+ use elibc_musl && export sc_cv_getprotobynumber_r=2
+
econf \
$(use_enable ssl openssl) \
$(use_enable readline) \