Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179633 - www-servers/resin init script uses bashisms (FreeBSD+Baselayout2 incompatible)
Summary: www-servers/resin init script uses bashisms (FreeBSD+Baselayout2 incompatible)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All Linux
: High normal
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-24 12:45 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2007-05-24 14:19 UTC (History)
2 users (show)

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


Attachments
Init script patch (resin-init.patch,604 bytes, patch)
2007-05-24 12:45 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2007-05-24 12:45:17 UTC
The init script for resin uses a few bashisms that don't allow its use with FreeBSD's base shell, used by Baselayout 2.

The attached patch fixes the init script by replacing the [[ ]] tests with [ ] tests, and also removes the "function" keyword that is unneeded and not supported by FreeBSD's sh.

HTH,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-05-24 12:45:53 UTC
Created attachment 120186 [details, diff]
Init script patch
Comment 2 Krzysztof Pawlik (RETIRED) gentoo-dev 2007-05-24 14:19:02 UTC
Thanks for the patch, I've fixed init.d script for 3.0.x too.