Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/socat/
Date: Thu, 10 Feb 2022 07:50:27
Message-Id: 1644479409.a32c13886353c0a861cb0c140385d1bd8879fc79.sam@gentoo
1 commit: a32c13886353c0a861cb0c140385d1bd8879fc79
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 10 06:59:31 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 10 07:50:09 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a32c1388
7
8 net-misc/socat: fix build on musl
9
10 Closes: https://bugs.gentoo.org/831016
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 net-misc/socat/socat-1.7.4.3.ebuild | 6 ++++++
14 1 file changed, 6 insertions(+)
15
16 diff --git a/net-misc/socat/socat-1.7.4.3.ebuild b/net-misc/socat/socat-1.7.4.3.ebuild
17 index 17478f6a210d..ca8f23d51acb 100644
18 --- a/net-misc/socat/socat-1.7.4.3.ebuild
19 +++ b/net-misc/socat/socat-1.7.4.3.ebuild
20 @@ -43,6 +43,12 @@ src_configure() {
21
22 tc-export AR
23
24 + # getprotobynumber_r doesn't exist on musl, so avoid probing for it
25 + # and possibly getting it wrong. TODO: fix configure?
26 + # (Grabbed from Alpine Linux: https://git.alpinelinux.org/aports/commit/main/socat/APKBUILD?id=5edc9195355ced3db991c1a7cda5648d52019b11)
27 + # bug #831016
28 + use elibc_musl && export sc_cv_getprotobynumber_r=2
29 +
30 econf \
31 $(use_enable ssl openssl) \
32 $(use_enable readline) \