Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21600 - app-i18n/canna init script fails to detect error
Summary: app-i18n/canna init script fails to detect error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Masatomo Nakano (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-24 06:07 UTC by Vadim Berezniker
Modified: 2003-06-06 10:37 UTC (History)
1 user (show)

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


Attachments
canna-3.6_p3-r2.ebuild (canna-3.6_p3-r2.ebuild,1.79 KB, text/plain)
2003-06-02 11:18 UTC, Mamoru KOMACHI (RETIRED)
Details
canna-3.6_p3-r2-gentoo.diff (canna-3.6_p3-r2-gentoo.diff,9.33 KB, text/plain)
2003-06-02 11:19 UTC, Mamoru KOMACHI (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vadim Berezniker 2003-05-24 06:07:10 UTC
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 ... ]
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-06-02 11:18:33 UTC
Created attachment 12690 [details]
canna-3.6_p3-r2.ebuild
Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-06-02 11:19:26 UTC
Created attachment 12691 [details]
canna-3.6_p3-r2-gentoo.diff
Comment 3 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-06-02 11:30:27 UTC
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.
Comment 4 Masatomo Nakano (RETIRED) gentoo-dev 2003-06-06 10:37:52 UTC
I added new ebuild as canna-3.6_p3-r2.ebuild.
Thanks!