Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 28760 Details for
Bug 46897
Two init scripts with same 'provide' for a virtual dependency conflict
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to /lib/rcscripts/awk/gendepends.awk
gendepends.awk.patch (text/plain), 1.96 KB, created by
Kevin Spicer
on 2004-04-05 14:47:50 UTC
(
hide
)
Description:
patch to /lib/rcscripts/awk/gendepends.awk
Filename:
MIME Type:
Creator:
Kevin Spicer
Created:
2004-04-05 14:47:50 UTC
Size:
1.96 KB
patch
obsolete
>--- gendepends.awk.orig 2004-04-05 22:19:02.000000000 +0100 >+++ gendepends.awk 2004-04-05 22:18:46.000000000 +0100 >@@ -82,17 +82,27 @@ > > if (check_provide(provide)) { > # We cannot have more than one service Providing a virtual ... >- ewarn(" Service '" get_provide(provide) "' already provide '" provide "'!;") >- ewarn(" Not adding service '" service "'...") >- # Do not fail here as we do have a service that resolves the virtual >- } else { >- # Sanity check >- if (check_service(service)) { >- PROVIDE_LIST[provide] = service >- } else { >- eerror(" Cannot add provide '" provide "', as service '" service "' do not exist!") >- return 0 >+ # However we can let the user choose by setting RC_VIRTUAL_PREFERENCE >+ if ( VIRTPREFAR[provide] == "" ) { >+ ewarn(" Service '" get_provide(provide) "' already provide '" provide "'!;") >+ ewarn(" Not adding service '" service "'...") >+ ewarn(" To set which service you would prefer to provide '" provide "' please set") >+ ewarn(" RC_VIRTUAL_PREFERENCE in /etc/conf.d/rc") >+ # Do not fail here as we do have a service that resolves the virtual >+ return 1 >+ } else if ( VIRTPREFAR[provide] != service ) { >+ # return without changing provide >+ return 1 > } >+ # Looks like this is the users preference so fall through and change >+ # the provide >+ } >+ # Sanity check >+ if (check_service(service)) { >+ PROVIDE_LIST[provide] = service >+ } else { >+ eerror(" Cannot add provide '" provide "', as service '" service "' do not exist!") >+ return 0 > } > > return 1 >@@ -334,6 +344,18 @@ > DEPTYPES = ENVIRON["DEPTYPES"] > ORDTYPES = ENVIRON["ORDTYPES"] > >+ # Preferences for conflicting virtual provides >+ VIRTPREF = ENVIRON["VIRTPREF"] >+ if (VIRTPREF != "") { >+ split(VIRTPREF, vpsplit) >+ for (vp in vpsplit) { >+ split(vpsplit[vp], vps, ":") >+ if (vps[1] != "" && vps[2] != ""){ >+ VIRTPREFAR[vps[1]]=vps[2] >+ } >+ } >+ } >+ > CACHEDTREE = SVCDIR "/deptree" > > assert(dosystem("rm -f " CACHEDTREE ), "system(rm -f " CACHEDTREE ")")
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 46897
:
28758
|
28759
| 28760