app-misc/screen: add support for musl
authorAnthony G. Basile <blueness@gentoo.org>
Sat, 29 Dec 2018 17:21:14 +0000 (12:21 -0500)
committerAnthony G. Basile <blueness@gentoo.org>
Sat, 29 Dec 2018 17:21:14 +0000 (12:21 -0500)
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

app-misc/screen/screen-4.6.1.ebuild
app-misc/screen/screen-4.6.2-r1.ebuild
app-misc/screen/screen-4.6.2.ebuild

index 47cbadae89466349de979c801c4f6f14d9eefd7f..ee99e929f824edd6a0dae5950acc540760d8489d 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -59,10 +59,13 @@ src_prepare() {
                doc/screen.1 \
                || die
 
-       if [[ ${CHOST} == *-darwin* ]] ; then
+       if [[ ${CHOST} == *-darwin* ]] || use elibc_musl ; then
                sed -i -e '/^#define UTMPOK/s/define/undef/' acconfig.h || die
        fi
 
+       # disable musl dummy headers for utmp[x]
+       use elibc_musl && append-cppflags "-D_UTMP_H -D_UTMPX_H"
+
        # reconfigure
        eautoreconf
 }
index 3d5650e314708cdde039edf513d55f52bcbf1523..5c29400df81f82f6e84570614434031715dac6ac 100644 (file)
@@ -58,10 +58,13 @@ src_prepare() {
                doc/screen.1 \
                || die
 
-       if [[ ${CHOST} == *-darwin* ]] ; then
+       if [[ ${CHOST} == *-darwin* ]] || use elibc_musl ; then
                sed -i -e '/^#define UTMPOK/s/define/undef/' acconfig.h || die
        fi
 
+       # disable musl dummy headers for utmp[x]
+       use elibc_musl && append-cppflags "-D_UTMP_H -D_UTMPX_H"
+
        # reconfigure
        eautoreconf
 }
index 5de7a9460c3f90f6330caf10ede66ef83455916b..74566a73346f83060466e755c7078083654a61dc 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -60,10 +60,13 @@ src_prepare() {
                doc/screen.1 \
                || die
 
-       if [[ ${CHOST} == *-darwin* ]] ; then
+       if [[ ${CHOST} == *-darwin* ]] || use elibc_musl ; then
                sed -i -e '/^#define UTMPOK/s/define/undef/' acconfig.h || die
        fi
 
+       # disable musl dummy headers for utmp[x]
+       use elibc_musl && append-cppflags "-D_UTMP_H -D_UTMPX_H"
+
        # reconfigure
        eautoreconf
 }