summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2011-12-15 20:50:52 +0000
committerFabian Groffen <grobian@gentoo.org>2011-12-15 20:50:52 +0000
commit24b7c3f61bf743606cbaba7874d79c2076b11c9d (patch)
tree821c5c692f2afea25f789c534161aa89816eee91 /profiles
parentsimplify gcc_version_patch slightly (diff)
downloadhistorical-24b7c3f61bf743606cbaba7874d79c2076b11c9d.tar.gz
historical-24b7c3f61bf743606cbaba7874d79c2076b11c9d.tar.bz2
historical-24b7c3f61bf743606cbaba7874d79c2076b11c9d.zip
Define AT_SYS_M4DIR for autotools.eclass to always have EPREFIX/usr/share/aclocal for cross-EPREFIX builds (migration from Prefix local eclass modification)
Diffstat (limited to 'profiles')
-rw-r--r--profiles/prefix/ChangeLog7
-rw-r--r--profiles/prefix/profile.bashrc11
2 files changed, 15 insertions, 3 deletions
diff --git a/profiles/prefix/ChangeLog b/profiles/prefix/ChangeLog
index 7db321225070..c95b97b3994e 100644
--- a/profiles/prefix/ChangeLog
+++ b/profiles/prefix/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for profiles/prefix
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/ChangeLog,v 1.308 2011/12/15 18:35:49 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/ChangeLog,v 1.309 2011/12/15 20:50:52 grobian Exp $
+
+ 15 Dec 2011; Fabian Groffen <grobian@gentoo.org> profile.bashrc:
+ Define AT_SYS_M4DIR for autotools.eclass to always have
+ EPREFIX/usr/share/aclocal for cross-EPREFIX builds (migration from Prefix
+ local eclass modification)
15 Dec 2011; Jeremy Olexa <darkside@gentoo.org> linux/profile.bashrc:
Fix bug 289757 (again). Use ldd, use EPATCH_EXCLUDE, match new patch name as
diff --git a/profiles/prefix/profile.bashrc b/profiles/prefix/profile.bashrc
index 0ee8262ec7bf..819330e84b0d 100644
--- a/profiles/prefix/profile.bashrc
+++ b/profiles/prefix/profile.bashrc
@@ -1,5 +1,5 @@
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Id: profile.bashrc,v 1.2 2009/07/22 16:29:50 haubi Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Id: profile.bashrc,v 1.3 2011/12/15 20:50:52 grobian Exp $
# Hack to avoid every package that uses libiconv/gettext
# install a charset.alias that will collide with libiconv's one
@@ -20,3 +20,10 @@ prefix-post_src_install() {
# until there is the registration mechanism.
profile-post_src_install() { prefix-post_src_install ; }
post_src_install() { prefix-post_src_install ; }
+
+# Always add ${EPREFIX}/usr/share/aclocal to accommodate situations where
+# aclocal comes from another EPREFIX (for example cross-EPREFIX builds).
+# Note: AT_SYS_M4DIR gets eval-ed
+[[ -d ${EPREFIX}/usr/share/aclocal ]] && \
+ AT_SYS_M4DIR+=' -I ${EPREFIX}/usr/share/aclocal'
+