profile/prefix/aix/bashrc: tar-1.29 needs _LINUX_SOURCE_COMPAT
authorMichael Haubenwallner <haubi@gentoo.org>
Mon, 13 Mar 2017 15:31:38 +0000 (16:31 +0100)
committerMichael Haubenwallner <haubi@gentoo.org>
Mon, 13 Mar 2017 15:32:05 +0000 (16:32 +0100)
profiles/prefix/aix/profile.bashrc

index b0f8b6bfeb0eb260005a6d01174662cb8b050975..b596fc8dda1dc1e030bf1aa5f7d08252bad9f227 100644 (file)
@@ -1,6 +1,14 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 # never use /bin/sh as CONFIG_SHELL on AIX: it is ways too slow,
 # as well as broken in some corner cases.
 export CONFIG_SHELL=${BASH}
+
+if [[ ${EBUILD_PHASE} == setup ]] ; then
+       if [[ ${CATEGORY}/${P} == app-arch/tar-1.29* ]] ; then
+               # for distinct EEXIST and ENOTEMPTY,
+               # https://savannah.gnu.org/patch/?9284
+               [[ " ${CPPFLAGS} "   == *" -D_LINUX_SOURCE_COMPAT "* ]] || CPPFLAGS="-D_LINUX_SOURCE_COMPAT ${CPPFLAGS}"
+       fi
+fi