summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haubenwallner <haubi@gentoo.org>2017-03-13 16:31:38 +0100
committerMichael Haubenwallner <haubi@gentoo.org>2017-03-13 16:32:05 +0100
commit2275ba3327a0be3b92db45cf934222306bcb0aab (patch)
treec7e0ef63fcfa89873f8f9ffd1db54658165d3b43 /profiles/prefix/aix
parentdev-util/docker-ls: Initial version (diff)
downloadgentoo-2275ba3327a0be3b92db45cf934222306bcb0aab.tar.gz
gentoo-2275ba3327a0be3b92db45cf934222306bcb0aab.tar.bz2
gentoo-2275ba3327a0be3b92db45cf934222306bcb0aab.zip
profile/prefix/aix/bashrc: tar-1.29 needs _LINUX_SOURCE_COMPAT
Diffstat (limited to 'profiles/prefix/aix')
-rw-r--r--profiles/prefix/aix/profile.bashrc10
1 files changed, 9 insertions, 1 deletions
diff --git a/profiles/prefix/aix/profile.bashrc b/profiles/prefix/aix/profile.bashrc
index b0f8b6bfeb0e..b596fc8dda1d 100644
--- a/profiles/prefix/aix/profile.bashrc
+++ b/profiles/prefix/aix/profile.bashrc
@@ -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