public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] [PATCH] generic_stage_target: default {PORT,PKG,DIST}DIR
@ 2013-07-31  4:46 Zac Medico
  0 siblings, 0 replies; only message in thread
From: Zac Medico @ 2013-07-31  4:46 UTC (permalink / raw
  To: gentoo-catalyst

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
---
 modules/generic_stage_target.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py
index 8f3c05a..848aca2 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')
-- 
1.8.2.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-31  4:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-31  4:46 [gentoo-catalyst] [PATCH] generic_stage_target: default {PORT,PKG,DIST}DIR Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox