Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 260162

Summary: www-servers/lighttpd spawn-fcgi.initd has bashism
Product: Gentoo Linux Reporter: Timothy Redaelli (RETIRED) <drizzt>
Component: New packagesAssignee: Christian Hoffmann (RETIRED) <hoffie>
Status: RESOLVED NEEDINFO    
Severity: minor CC: www-servers+disabled
Priority: High Keywords: QAcanfix
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 264840    
Attachments: spawn-fcgi.patch
spawn-fcgi.initd patch

Description Timothy Redaelli (RETIRED) gentoo-dev 2009-02-24 18:08:12 UTC
${!i} is a bashism for $(echo eval \$"$i").
Please use the sh variant
I attach a patch to fix it
Comment 1 Timothy Redaelli (RETIRED) gentoo-dev 2009-02-24 18:08:37 UTC
Created attachment 183042 [details, diff]
spawn-fcgi.patch
Comment 2 Christian Hoffmann (RETIRED) gentoo-dev 2009-03-01 21:29:55 UTC
Will do with 1.4.22 where we can use an independent spawn-fcgi package.
Comment 3 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-04-04 07:19:24 UTC
the independant www-servers/spawn-fcgi has been added to the tree.

drizzt: could you have a look at its init script and check for bashisms?
Comment 4 Timothy Redaelli (RETIRED) gentoo-dev 2009-04-04 10:11:05 UTC
Created attachment 187278 [details, diff]
spawn-fcgi.initd patch
Comment 5 Timothy Redaelli (RETIRED) gentoo-dev 2009-04-04 10:11:55 UTC
Please apply that patch
Comment 6 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-04-04 10:41:21 UTC
cool, thanks - applied.
closing as lighttpd will not be fixed.
Comment 7 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-04-10 09:50:23 UTC
drizzt: can i ask you to take another look at www-servers/spawn-fcgi/files/spawn-fcgi.initd?

in the last few days a number of changes have been made, which may have introduced more bashism.
BTW: how does one check, if a script is posix compatible?

thanks
Comment 8 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-04-11 06:22:46 UTC
please reopen if you find anything. thanks.