sys-apps/gawk: fix Solaris standards conflict resolution
authorFabian Groffen <grobian@gentoo.org>
Tue, 24 Oct 2017 12:21:48 +0000 (14:21 +0200)
committerFabian Groffen <grobian@gentoo.org>
Tue, 24 Oct 2017 12:42:57 +0000 (14:42 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

sys-apps/gawk/gawk-4.2.0.ebuild

index da57da47573136954dc9130bf777c2aef8841585..231bcb851dcf000681ed252153445a6f5888841d 100644 (file)
@@ -38,7 +38,8 @@ src_prepare() {
        # fix standards conflict on Solaris
        if [[ ${CHOST} == *-solaris* ]] ; then
                sed -i \
-                       -e '/\<_XOPEN_SOURCE\>/s/$/600/' \
+                       -e '/\<_XOPEN_SOURCE\>/s/1$/600/' \
+                       -e '/\<_XOPEN_SOURCE_EXTENDED\>/s/1//' \
                        extension/inplace.c || die
        fi
 }