commit:     626c3e09fd3337c2e560bed8dc3723a3de0918d3
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun May 23 09:42:44 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun May 23 09:45:05 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=626c3e09

app-shells/tcsh-6.22.04: disable non-functional utmp on musl

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 app-shells/tcsh/tcsh-6.22.04.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/app-shells/tcsh/tcsh-6.22.04.ebuild 
b/app-shells/tcsh/tcsh-6.22.04.ebuild
index 3ce4f1d44b2..41835e196fe 100644
--- a/app-shells/tcsh/tcsh-6.22.04.ebuild
+++ b/app-shells/tcsh/tcsh-6.22.04.ebuild
@@ -77,6 +77,12 @@ src_configure() {
        append-cppflags -D_PATH_USRBIN="'"'"${EPREFIX}/usr/bin"'"'"
        append-cppflags -D_PATH_BIN="'"'"${EPREFIX}/bin"'"'"
 
+       # musl's utmp is non-functional
+       if use elibc_musl ; then
+               export ac_cv_header_utmp_h=no
+               export ac_cv_header_utmpx_h=no
+       fi
+
        econf \
                --prefix="${EPREFIX:-}" \
                --datarootdir='${prefix}/usr/share' \

Reply via email to