Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260162 - www-servers/lighttpd spawn-fcgi.initd has bashism
Summary: www-servers/lighttpd spawn-fcgi.initd has bashism
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Christian Hoffmann (RETIRED)
URL:
Whiteboard:
Keywords: QAcanfix
Depends on:
Blocks: 264840
  Show dependency tree
 
Reported: 2009-02-24 18:08 UTC by Timothy Redaelli (RETIRED)
Modified: 2009-04-11 06:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
spawn-fcgi.patch (spawn-fcgi.patch,626 bytes, patch)
2009-02-24 18:08 UTC, Timothy Redaelli (RETIRED)
Details | Diff
spawn-fcgi.initd patch (spawn-fcgi.initd.patch,2.90 KB, patch)
2009-04-04 10:11 UTC, Timothy Redaelli (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.