Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 97967 Details for
Bug 148870
some emerge dependency calculations include unnecessary build time dependencies
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add a --without-bdeps option (for demonstration only)
without-bdeps.patch (text/plain), 1.51 KB, created by
Zac Medico
on 2006-09-24 11:39:24 UTC
(
hide
)
Description:
add a --without-bdeps option (for demonstration only)
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2006-09-24 11:39:24 UTC
Size:
1.51 KB
patch
obsolete
>diff --git a/bin/emerge b/bin/emerge >index 87a4c9e..5cffdc7 100755 >--- a/bin/emerge >+++ b/bin/emerge >@@ -201,7 +201,8 @@ options=[ > "--tree", > "--update", > "--usepkg", "--usepkgonly", >-"--verbose", "--version" >+"--verbose", "--version", >+"--without-bdeps" > ] > > shortmapping={ >@@ -842,12 +843,13 @@ class depgraph: > for i in xrange(len(depkeys)): > edepend[depkeys[i]] = depvalues[i] > >- if mytype == "binary": >- edepend["DEPEND"] = "" >- elif mytype == "ebuild": >+ if mytype == "ebuild": > if "--buildpkgonly" in self.myopts: > edepend["RDEPEND"] = "" > edepend["PDEPEND"] = "" >+ if "--without-bdeps" in self.myopts and \ >+ (mytype == "binary" or mybigkey[3] == "nomerge"): >+ edepend["DEPEND"] = "" > > """ We have retrieve the dependency information, now we need to recursively > process them. DEPEND gets processed for root = "/", {R,P}DEPEND in myroot. """ >@@ -3399,8 +3401,12 @@ def action_depclean(settings, trees, ldp > spinner.update() > fakedb.cpv_inject(pkg) > mydb = portdb.xmatch("match-visible", "="+pkg) and portdb or vardb >- depstr = " ".join(mydb.aux_get(pkg, >- ["DEPEND", "RDEPEND", "PDEPEND"])) >+ if "--without-bdeps" in myopts: >+ depstr = " ".join(mydb.aux_get(pkg, >+ ["RDEPEND", "PDEPEND"])) >+ else: >+ depstr = " ".join(mydb.aux_get(pkg, >+ ["DEPEND", "RDEPEND", "PDEPEND"])) > usedef = vardb.aux_get(pkg, ["USE"])[0].split() > success, atoms = portage.dep_check(depstr, emptydb, settings, > myuse=usedef, trees=trees, myroot=settings["ROOT"])
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 148870
: 97967