diff options
author | Zac Medico <zmedico@gentoo.org> | 2013-07-30 21:46:48 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2013-08-07 19:31:00 -0700 |
commit | c52962b6bd2e12dec9fdaea6592d39bedce0a752 (patch) | |
tree | 6a2950aea9477610c5535eaf6d6f68648b9793ed | |
parent | stop tarballing firmware (diff) | |
download | catalyst-c52962b6bd2e12dec9fdaea6592d39bedce0a752.tar.gz catalyst-c52962b6bd2e12dec9fdaea6592d39bedce0a752.tar.bz2 catalyst-c52962b6bd2e12dec9fdaea6592d39bedce0a752.zip |
generic_stage_target: default {PORT,PKG,DIST}DIR
This provides forward compatiblity so that stage builds do not break
in the future when portage changes the default PORTDIR, PKGDIR, and
DISTDIR locations (bug #378603).
Also, it provides backward compatibility for various tools that require
PORTDIR to be defined in make.conf, such as the following:
gentoo-bashcomp - bug #478444
euse - bug #474574
euses and ufed - bug #478318
X-Gentoo-Bug: 479062
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=479062
Reviewed-by: Matt Turner <mattst88@gmail.com>
-rw-r--r-- | modules/generic_stage_target.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py index 8f3c05a3..848aca2f 100644 --- a/modules/generic_stage_target.py +++ b/modules/generic_stage_target.py @@ -1064,6 +1064,10 @@ class generic_stage_target(generic_target): "/use will cause portage to ignore" print "\tpackage.use in the profile and portage_confdir. You've been warned!" + myf.write('PORTDIR="/usr/portage"\n') + myf.write('DISTDIR="${PORTDIR}/distfiles"\n') + myf.write('PKGDIR="${PORTDIR}/packages"\n') + """ Setup the portage overlay """ if "portage_overlay" in self.settings: myf.write('PORTDIR_OVERLAY="/usr/local/portage"\n') |