public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r13245 - in main/trunk: man pym/_emerge
@ 2009-03-29 19:15 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-03-29 19:15 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-03-29 19:15:01 +0000 (Sun, 29 Mar 2009)
New Revision: 13245

Modified:
   main/trunk/man/emerge.1
   main/trunk/pym/_emerge/__init__.py
   main/trunk/pym/_emerge/help.py
Log:
Add support for --rdeps-only and --root-deps options which are useful in
combination with $ROOT. Thanks to Ned Ludd <solar@g.o> for the initial
patch.


Modified: main/trunk/man/emerge.1
===================================================================
--- main/trunk/man/emerge.1	2009-03-29 11:24:46 UTC (rev 13244)
+++ main/trunk/man/emerge.1	2009-03-29 19:15:01 UTC (rev 13245)
@@ -414,12 +414,26 @@
 Results may vary, but the general outcome is a reduced or condensed
 output from portage's displays.
 .TP
+.BR "\-\-rdeps\-only"
+Discard all build\-time dependencies. This option is commonly used together
+with \fBROOT\fR and it should not be enabled under normal circumstances. For
+currently supported \fBEAPI\fR values, the dependencies specified in the
+\fBDEPEND\fR variable are discarded. However, behavior may change for new
+\fBEAPI\fRs when related extensions are added in the future.
+.TP
 .BR "\-\-reinstall changed\-use"
 Tells emerge to include installed packages where USE flags have
 changed since installation.  Unlike \fB\-\-newuse\fR, this option does
 not trigger reinstallation when flags that the user has not
 enabled are added or removed.
 .TP
+.BR "\-\-root\-deps"
+Install build\-time dependencies to \fBROOT\fR instead of /. This option
+should not be enabled under normal circumstances. For currently supported
+\fBEAPI\fR values, the dependencies specified in the \fBDEPEND\fR variable
+are used. However, behavior may change for new
+\fBEAPI\fRs when related extensions are added in the future.
+.TP
 .BR "\-\-skipfirst"
 This option is only valid when used with \fB\-\-resume\fR.  It removes the 
 first package in the resume list. Dependencies are recalculated for

Modified: main/trunk/pym/_emerge/__init__.py
===================================================================
--- main/trunk/pym/_emerge/__init__.py	2009-03-29 11:24:46 UTC (rev 13244)
+++ main/trunk/pym/_emerge/__init__.py	2009-03-29 19:15:01 UTC (rev 13245)
@@ -207,6 +207,7 @@
 "--nospinner",    "--oneshot",
 "--onlydeps",     "--pretend",
 "--quiet",        "--resume",
+"--rdeps-only",   "--root-deps",
 "--searchdesc",   "--selective",
 "--skipfirst",
 "--tree",
@@ -5275,8 +5276,16 @@
 		if removal_action and self.myopts.get("--with-bdeps", "y") == "n":
 			edepend["DEPEND"] = ""
 
+		bdeps_root = "/"
+		if self.target_root != "/":
+			if "--root-deps" in self.myopts:
+					bdeps_root = myroot
+			if "--rdeps-only" in self.myopts:
+					bdeps_root = "/"
+					edepend["DEPEND"] = ""
+
 		deps = (
-			("/", edepend["DEPEND"],
+			(bdeps_root, edepend["DEPEND"],
 				self._priority(buildtime=(not bdeps_optional),
 				optional=bdeps_optional)),
 			(myroot, edepend["RDEPEND"], self._priority(runtime=True)),

Modified: main/trunk/pym/_emerge/help.py
===================================================================
--- main/trunk/pym/_emerge/help.py	2009-03-29 11:24:46 UTC (rev 13244)
+++ main/trunk/pym/_emerge/help.py	2009-03-29 19:15:01 UTC (rev 13245)
@@ -404,12 +404,30 @@
 		print "              Effects vary, but the general outcome is a reduced or condensed"
 		print "              output from portage's displays."
 		print
+		print "       "+green("--rdeps-only")
+		desc = "Discard all build-time dependencies. This option is commonly used together " + \
+			"with ROOT and it should not be enabled under normal circumstances. For " + \
+			"currently supported EAPI values, the dependencies specified in the " + \
+			"DEPEND variable are discarded. However, behavior may change for new " + \
+			"EAPIs when related extensions are added in the future."
+		for line in wrap(desc, desc_width):
+			print desc_indent + line
+		print
 		print "       "+green("--reinstall ") + turquoise("changed-use")
 		print "              Tells emerge to include installed packages where USE flags have"
 		print "              changed since installation.  Unlike --newuse, this option does"
 		print "              not trigger reinstallation when flags that the user has not"
 		print "              enabled are added or removed."
 		print
+		print "       "+green("--root-deps")
+		desc = "Install build-time dependencies to ROOT instead of /. This option " + \
+			"should not be enabled under normal circumstances. For currently supported " + \
+			"EAPI values, the dependencies specified in the DEPEND variable " + \
+			"are used. However, behavior may change for new " + \
+			"EAPIs when related extensions are added in the future."
+		for line in wrap(desc, desc_width):
+			print desc_indent + line
+		print
 		print "       "+green("--skipfirst")
 		desc = "This option is only valid when " + \
 			"used with --resume.  It removes the " + \




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

only message in thread, other threads:[~2009-03-29 19:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-29 19:15 [gentoo-commits] portage r13245 - in main/trunk: man pym/_emerge Zac Medico (zmedico)

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