Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 19435 Details for
Bug 31452
qpkg fix for use flags that are not explicitly disabled in /var/db/*/package/USE
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
disable flags that aren't explicitly set
qpkg-patch-0.1.32-implicituseflags (text/plain), 915 bytes, created by
Eldad Zack (RETIRED)
on 2003-10-18 15:36:51 UTC
(
hide
)
Description:
disable flags that aren't explicitly set
Filename:
MIME Type:
Creator:
Eldad Zack (RETIRED)
Created:
2003-10-18 15:36:51 UTC
Size:
915 bytes
patch
obsolete
>--- /usr/bin/qpkg 2003-10-17 05:39:15.000000000 +0200 >+++ qpkg 2003-10-19 00:25:22.000000000 +0200 >@@ -407,10 +407,24 @@ > do > rdepend=$(< ${deppkg}/RDEPEND) > >- for flag in $(< ${deppkg}/USE) >+ #leave only the flags >+ depflags=$(grep '?' ${deppkg}/RDEPEND | sed 's/\? ( [[:alnum:][:punct:]\* ]* )//') >+ >+ useflags=$(< ${deppkg}/USE) >+ >+ #add -flag explicitly if it isn't on the list, so we can remove the dependency later on >+ for flag in ${depflags} >+ do >+ if ! grep -qsw ${flag} ${deppkg}/USE; then >+ useflags="${useflags} -${flag}" >+ fi >+ done >+ >+ # replace "/" with escaped slash: "\/" >+ for flag in ${useflags//\//\\\/} > do > if [[ "${flag:0:1}" == "-" ]]; then >- rdepend=$(echo ${rdepend} | sed "s/${flag:1}? ( [[:alnum:][:punct:]]* )//") >+ rdepend=$(echo ${rdepend} | sed "s/${flag:1}? ( [[:alnum:][:punct:]\* ]* )//") > fi > done >
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 31452
: 19435