Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363697 - openrc should force use bash on Gentoo/FBSD
Summary: openrc should force use bash on Gentoo/FBSD
Status: RESOLVED INVALID
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal major (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-15 12:15 UTC by Yuta SATOH
Modified: 2011-04-15 12:23 UTC (History)
0 users

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


Attachments
patch for openrc-0.8.1.ebuild (openrc-0.8.1.ebuild.patch,381 bytes, patch)
2011-04-15 12:21 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2011-04-15 12:15:04 UTC
Some init scripts are written on the assumption that the shell is bash.
However, /bin/sh is not a symbolic link of bash but Bourne Shell on Gentoo/FBSD.

As a result, the init script doesn't operate normally. 

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/mysql start
2.
3.
Actual Results:  
/etc/init.d/mysql: 9: Syntax error: "(" unexpected
 * ERROR: mysql failed to start
Comment 1 Yuta SATOH 2011-04-15 12:21:36 UTC
Created attachment 270055 [details, diff]
patch for openrc-0.8.1.ebuild

This patch is not good.
However, this problem is compulsorily evaded.
Comment 2 Patrick Lauer gentoo-dev 2011-04-15 12:22:40 UTC
No, these init scripts should be fixed. OpenRC assumes Posix SH only.

As far as I know only mysql has bashism left, and those are very hard / impossible to fix without breaking some configurations. So it has been broken for quite a while and no one knows how to fix it.