| Bug#: 21600 | Product: Gentoo Linux | Version: 1.4_rc4 | Platform: All |
| OS/Version: Linux | Status: RESOLVED | Severity: normal | Priority: P2 |
| Resolution: FIXED | Assigned To: nakano@gentoo.org | Reported By: kryptolus@gmail.com | |
| Component: Ebuilds | |||
| URL: | |||
| Summary: app-i18n/canna init script fails to detect error | |||
| Keywords: | |||
| Status Whiteboard: | |||
| Opened: 2003-05-24 06:07 0000 | |||
| Description: | Opened: 2003-05-24 06:07 0000 |
This is really an error with canna, but it affects the gentoo init script for
canna.
If cannaserver fails to start, it does not set a proper return code.
I workaround this by changing
/usr/sbin/cannaserver ${CANNASERVER_OPTS}
eend $? "Failed to start canna"
to
/usr/sbin/cannaserver ${CANNASERVER_OPTS} 2>&1 | grep ERROR > /dev/null
if [ $? -eq 0 ]
then
eend 1 "Failed to start canna"
fi
which detects the string ERROR in output of cannaserver (pretty bad hack)
The best thing would be for cannaserver to set error code on failure.
[However the canna site is entirely in Japanese, and my Japanese is not good
enough to do anything ... ]
Created an attachment (id=12690) [details]
canna-3.6_p3-r2.ebuild
Created an attachment (id=12691) [details]
canna-3.6_p3-r2-gentoo.diff
I asked one of the canna developer about the problem and then he fixed it immediately. So I made a patch for Gentoo canna-3.6_p3-r1 according to the fix in canna CVS repository.
I added new ebuild as canna-3.6_p3-r2.ebuild. Thanks!