Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 29389 Details for
Bug 47111
More severe depcache problems with hotplug
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for /lib/rcscripts/awk/cachedepends.awk
cachedepends.awk_patch (text/plain), 6.18 KB, created by
dswhite42
on 2004-04-15 19:11:22 UTC
(
hide
)
Description:
Patch for /lib/rcscripts/awk/cachedepends.awk
Filename:
MIME Type:
Creator:
dswhite42
Created:
2004-04-15 19:11:22 UTC
Size:
6.18 KB
patch
obsolete
>diff -U 3 /lib/rcscripts/awk/cachedepends.awk.orig /lib/rcscripts/awk/cachedepends.awk >--- /lib/rcscripts/awk/cachedepends.awk.orig 2004-04-15 16:12:15.000000000 -0400 >+++ /lib/rcscripts/awk/cachedepends.awk 2004-04-15 18:29:46.000000000 -0400 >@@ -4,73 +4,75 @@ > # $Header: /home/cvsroot/gentoo-src/rc-scripts/src/awk/cachedepends.awk,v 1.15 2004/02/26 17:29:43 azarah Exp $ > > function print_start() { >- print "source /sbin/functions.sh" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >- print "need() {" >> (SVCDIR "/depcache") >- print " echo \"NEED $*\"; return 0" >> (SVCDIR "/depcache") >- print "}" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >- print "use() {" >> (SVCDIR "/depcache") >- print " echo \"USE $*\"; return 0" >> (SVCDIR "/depcache") >- print "}" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >- print "before() {" >> (SVCDIR "/depcache") >- print " echo \"BEFORE $*\"; return 0" >> (SVCDIR "/depcache") >- print "}" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >- print "after() {" >> (SVCDIR "/depcache") >- print " echo \"AFTER $*\"; return 0" >> (SVCDIR "/depcache") >- print "}" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >- print "provide() {" >> (SVCDIR "/depcache") >- print " echo \"PROVIDE $*\"; return 0" >> (SVCDIR "/depcache") >- print "}" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >- print "parallel() {" >> (SVCDIR "/depcache") >- print " echo \"PARALLEL $*\"; return 0" >> (SVCDIR "/depcache") >- print "}" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >+ print "source /sbin/functions.sh" >> tempfile >+ print "" >> tempfile >+ print "need() {" >> tempfile >+ print " echo \"NEED $*\"; return 0" >> tempfile >+ print "}" >> tempfile >+ print "" >> tempfile >+ print "use() {" >> tempfile >+ print " echo \"USE $*\"; return 0" >> tempfile >+ print "}" >> tempfile >+ print "" >> tempfile >+ print "before() {" >> tempfile >+ print " echo \"BEFORE $*\"; return 0" >> tempfile >+ print "}" >> tempfile >+ print "" >> tempfile >+ print "after() {" >> tempfile >+ print " echo \"AFTER $*\"; return 0" >> tempfile >+ print "}" >> tempfile >+ print "" >> tempfile >+ print "provide() {" >> tempfile >+ print " echo \"PROVIDE $*\"; return 0" >> tempfile >+ print "}" >> tempfile >+ print "" >> tempfile >+ print "parallel() {" >> tempfile >+ print " echo \"PARALLEL $*\"; return 0" >> tempfile >+ print "}" >> tempfile >+ print "" >> tempfile > } > > function print_header1(mtime) { >- print "#*** " MYFILENAME " ***" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >- print "myservice=\"" MYFILENAME "\"" >> (SVCDIR "/depcache") >- print "myservice=\"${myservice##*/}\"" >> (SVCDIR "/depcache") >- print "echo \"RCSCRIPT ${myservice}\"" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >- print "echo \"MTIME " mtime "\"" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >+ print "#*** " MYFILENAME " ***" >> tempfile >+ print "" >> tempfile >+ print "myservice=\"" MYFILENAME "\"" >> tempfile >+ print "myservice=\"${myservice##*/}\"" >> tempfile >+ print "echo \"RCSCRIPT ${myservice}\"" >> tempfile >+ print "" >> tempfile >+ print "echo \"MTIME " mtime "\"" >> tempfile >+ print "" >> tempfile > } > > function print_header2(mtime) { >- print "(" >> (SVCDIR "/depcache") >- print " # Get settings for rc-script ..." >> (SVCDIR "/depcache") >- print " [ -e /etc/conf.d/basic ] && source /etc/conf.d/basic" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >- print " [ -e \"/etc/conf.d/${myservice}\" ] && source \"/etc/conf.d/${myservice}\"" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >- print " [ -e /etc/conf.d/net ] && \\" >> (SVCDIR "/depcache") >- print " [ \"${myservice%%.*}\" = \"net\" ] && \\" >> (SVCDIR "/depcache") >- print " [ \"${myservice##*.}\" != \"${myservice}\" ] && source /etc/conf.d/net" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >- print " [ -e /etc/rc.conf ] && source /etc/rc.conf" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >- print " depend() {" >> (SVCDIR "/depcache") >- print " return 0" >> (SVCDIR "/depcache") >- print " }" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >+ print "(" >> tempfile >+ print " # Get settings for rc-script ..." >> tempfile >+ print " [ -e /etc/conf.d/basic ] && source /etc/conf.d/basic" >> tempfile >+ print "" >> tempfile >+ print " [ -e \"/etc/conf.d/${myservice}\" ] && source \"/etc/conf.d/${myservice}\"" >> tempfile >+ print "" >> tempfile >+ print " [ -e /etc/conf.d/net ] && \\" >> tempfile >+ print " [ \"${myservice%%.*}\" = \"net\" ] && \\" >> tempfile >+ print " [ \"${myservice##*.}\" != \"${myservice}\" ] && source /etc/conf.d/net" >> tempfile >+ print "" >> tempfile >+ print " [ -e /etc/rc.conf ] && source /etc/rc.conf" >> tempfile >+ print "" >> tempfile >+ print " depend() {" >> tempfile >+ print " return 0" >> tempfile >+ print " }" >> tempfile >+ print "" >> tempfile > } > > function print_end() { >- print "" >> (SVCDIR "/depcache") >- print " depend" >> (SVCDIR "/depcache") >- print ")" >> (SVCDIR "/depcache") >- print "" >> (SVCDIR "/depcache") >+ print "" >> tempfile >+ print " depend" >> tempfile >+ print ")" >> tempfile >+ print "" >> tempfile > } > > BEGIN { > >+ tempfile = "/tmp/depcache_" tempnum ".tmp" >+ > extension("/lib/rcscripts/filefuncs.so", "dlload") > > # Get our environment variables >@@ -149,7 +151,7 @@ > GOTDEPEND = 1 > > print_header2() >- print " # Actual depend() function ..." >> (SVCDIR "/depcache") >+ print " # Actual depend() function ..." >> tempfile > } > > # We have the depend function... >@@ -167,10 +169,10 @@ > # Make sure depend() contain something, else bash > # errors out (empty function). > if ((SBCOUNT > 0) && (COUNT == 0)) >- print " \treturn 0" >> (SVCDIR "/depcache") >+ print " \treturn 0" >> tempfile > > # Print the depend() function >- print " " $0 >> (SVCDIR "/depcache") >+ print " " $0 >> tempfile > > # If COUNT=0, and SBCOUNT>0, it means we have read > # all matching '{' and '}' for depend(), so stop. >@@ -197,6 +199,7 @@ > NEXTFILE = 0 > > } >+ dosystem("mv -f " tempfile " " SVCDIR "/depcache") > } > >
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 47111
:
28843
|
28844
|
29259
|
29262
|
29268
|
29289
|
29388
| 29389