summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-12-29 12:21:14 -0500
committerAnthony G. Basile <blueness@gentoo.org>2018-12-29 12:21:14 -0500
commitcd17366a8641123c44de0e9b86038da943afd41a (patch)
tree79966b5f5dc57bbc9d551d02442e34477024fbe1 /app-misc
parentapp-text/pdfgrep: add missing test dependency (diff)
downloadgentoo-cd17366a8641123c44de0e9b86038da943afd41a.tar.gz
gentoo-cd17366a8641123c44de0e9b86038da943afd41a.tar.bz2
gentoo-cd17366a8641123c44de0e9b86038da943afd41a.zip
app-misc/screen: add support for musl
Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/screen/screen-4.6.1.ebuild7
-rw-r--r--app-misc/screen/screen-4.6.2-r1.ebuild5
-rw-r--r--app-misc/screen/screen-4.6.2.ebuild7
3 files changed, 14 insertions, 5 deletions
diff --git a/app-misc/screen/screen-4.6.1.ebuild b/app-misc/screen/screen-4.6.1.ebuild
index 47cbadae8946..ee99e929f824 100644
--- a/app-misc/screen/screen-4.6.1.ebuild
+++ b/app-misc/screen/screen-4.6.1.ebuild
@@ -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
}
diff --git a/app-misc/screen/screen-4.6.2-r1.ebuild b/app-misc/screen/screen-4.6.2-r1.ebuild
index 3d5650e31470..5c29400df81f 100644
--- a/app-misc/screen/screen-4.6.2-r1.ebuild
+++ b/app-misc/screen/screen-4.6.2-r1.ebuild
@@ -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
}
diff --git a/app-misc/screen/screen-4.6.2.ebuild b/app-misc/screen/screen-4.6.2.ebuild
index 5de7a9460c3f..74566a73346f 100644
--- a/app-misc/screen/screen-4.6.2.ebuild
+++ b/app-misc/screen/screen-4.6.2.ebuild
@@ -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
}