diff options
author | Mike Gilbert <floppym@gentoo.org> | 2021-08-14 12:51:09 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2021-08-14 12:51:21 -0400 |
commit | 13c65659bbc9bc59314e972b69578014711663c3 (patch) | |
tree | 4d9b0f41af4682fe38c7d2c285ee7539822d6490 /net-ftp | |
parent | net-ftp/vsftpd: drop vsftpd-3.0.5-fix-link-command.patch (diff) | |
download | gentoo-13c65659bbc9bc59314e972b69578014711663c3.tar.gz gentoo-13c65659bbc9bc59314e972b69578014711663c3.tar.bz2 gentoo-13c65659bbc9bc59314e972b69578014711663c3.zip |
net-ftp/vsftpd: fix build on musl
Closes: https://bugs.gentoo.org/713952
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-ftp')
-rw-r--r-- | net-ftp/vsftpd/vsftpd-3.0.5.ebuild | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/net-ftp/vsftpd/vsftpd-3.0.5.ebuild b/net-ftp/vsftpd/vsftpd-3.0.5.ebuild index b452dee49a00..b63d380bf321 100644 --- a/net-ftp/vsftpd/vsftpd-3.0.5.ebuild +++ b/net-ftp/vsftpd/vsftpd-3.0.5.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://security.appspot.com/downloads/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" -IUSE="pam ssl tcpd" +IUSE="elibc_musl pam ssl tcpd" DEPEND=" >=sys-libs/libcap-2 @@ -36,11 +36,11 @@ src_prepare() { } define() { - sed -i -e "/#undef $1/c#define $1" "${S}"/builddefs.h || die + sed -i -e "/#undef $2/c#define $2${3:+ }$3" "$1" || die } undef() { - sed -i -e "/#define $1/c#undef $1" "${S}"/builddefs.h || die + sed -i -e "/#define $2/c#undef $2" "$1" || die } src_configure() { @@ -49,19 +49,25 @@ src_configure() { if use pam; then libs+=( -lpam ) else - undef VSF_BUILD_PAM + undef builddefs.h VSF_BUILD_PAM libs+=( -lcrypt ) fi if use ssl; then - define VSF_BUILD_SSL + define builddefs.h VSF_BUILD_SSL libs+=( -lcrypto -lssl ) fi if use tcpd; then - define VSF_BUILD_TCPWRAPPERS + define builddefs.h VSF_BUILD_TCPWRAPPERS libs+=( -lwrap ) fi + + if use elibc_musl; then + # musl does not support utmp/wtmp + # https://bugs.gentoo.org/713952 + undef sysdeputil.c VSF_SYSDEP_HAVE_UTMPX + fi } src_compile() { |