summaryrefslogtreecommitdiff
path: root/net-misc/socat/socat-1.7.4.3.ebuild
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-03-20 00:40:44 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-03-20 00:40:44 +0000
commit4cbcc855382a06088e2f016f62cafdbcb7e40665 (patch)
tree356496503d52354aa6d9f2d36126302fed5f3a73 /net-misc/socat/socat-1.7.4.3.ebuild
parentfcc5224904648a8e6eb528d7603154160a20022f (diff)
gentoo resync : 20.03.2022
Diffstat (limited to 'net-misc/socat/socat-1.7.4.3.ebuild')
-rw-r--r--net-misc/socat/socat-1.7.4.3.ebuild8
1 files changed, 7 insertions, 1 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..79675ef1a190 100644
--- a/net-misc/socat/socat-1.7.4.3.ebuild
+++ b/net-misc/socat/socat-1.7.4.3.ebuild
@@ -13,7 +13,7 @@ S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
IUSE="bindist ipv6 readline ssl tcpd"
DEPEND="ssl? ( dev-libs/openssl:0= )
@@ -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) \