From 157adedc341b379c1aaf3b53473bcc6736b8b128 Mon Sep 17 00:00:00 2001 From: Ismael Luceno Date: Fri, 16 Jul 2021 21:51:48 +0200 Subject: xinetd: Fix build against musl Requires libtirpc. --- net/xinetd/BUILD | 9 ++++++++- net/xinetd/DEPENDS | 6 ++++++ net/xinetd/HISTORY | 3 +++ net/xinetd/PRE_BUILD | 2 +- 4 files changed, 18 insertions(+), 2 deletions(-) (limited to 'net') diff --git a/net/xinetd/BUILD b/net/xinetd/BUILD index 87f2e17022..c58882bb99 100755 --- a/net/xinetd/BUILD +++ b/net/xinetd/BUILD @@ -1,4 +1,11 @@ -export LIBS=$LDFLAGS && # Makes stripping work +case "$HOST" in + (*-musl) + CFLAGS+=" $(pkg-config libtirpc --cflags)" && + LIBS+=" $(pkg-config libtirpc --libs)" && + OPTS+=' xinetd_cv_type_rlim_t=yes' +esac && +LIBS+=" $LDFLAGS" && # Makes stripping work +export LIBS && OPTS="$XINETD_IPV6 \ $XINETD_LOADAVG \ diff --git a/net/xinetd/DEPENDS b/net/xinetd/DEPENDS index 6bc3731889..b14a51ba60 100755 --- a/net/xinetd/DEPENDS +++ b/net/xinetd/DEPENDS @@ -1,3 +1,9 @@ +case "$HOST" in + (*-musl) + depends pkgconfig && + depends libtirpc + ;; +esac && depends SYSTEM-LOGGER && optional_depends tcp_wrappers \ diff --git a/net/xinetd/HISTORY b/net/xinetd/HISTORY index e36025edaf..79ed9b9737 100644 --- a/net/xinetd/HISTORY +++ b/net/xinetd/HISTORY @@ -1,3 +1,6 @@ +2021-07-16 Ismael Luceno + * BUILD, DEPENDS, PRE_BUILD: Fixed build against musl + 2016-05-05 Vlad Glagolev * DETAILS: updated mirror to ftp.sourcemage.us diff --git a/net/xinetd/PRE_BUILD b/net/xinetd/PRE_BUILD index b462536da1..e26a0a42ca 100755 --- a/net/xinetd/PRE_BUILD +++ b/net/xinetd/PRE_BUILD @@ -1,4 +1,4 @@ default_pre_build && cd "$SOURCE_DIRECTORY" && - +sedit 's!maybe_os in$!& linux-musl*|\\!' config.sub && patch -p1 < "$SPELL_DIRECTORY/tcpmux.patch" -- cgit v1.2.3