Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285449 - >www-servers/apache-2.2.11-r2 configdump show "lynx not found!"
Summary: >www-servers/apache-2.2.11-r2 configdump show "lynx not found!"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-18 13:36 UTC by Marcin Mirosław
Modified: 2009-09-20 10:43 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2009-09-18 13:36:51 UTC
I've been testing it with apache 2.2.11-r2 and 2.2.13.
/etc/init.d/apache2 configdump
returns:
* lynx not found! you need to emerge www-client/lynx

The problem is in init script, in this line:
elif ! type -p ${LYNX} 2>&1 >/dev/null; then .......

$ type -p lynx ; echo $?
/usr/bin/lynx
0

Variable LYNX has value "lynx -dump" :
$ type -p lynx -dump ; echo $?
/usr/bin/lynx
1

Problem is related to bash. bash-3 returns zero in second example, but bash-4 returns error code 1.
Fullstatus doesn't work too.
I'm wondering, how many init scripts are using this bash function?

Reproducible: Always
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2009-09-20 08:38:31 UTC
fixed in 2.2.13-r1, thanks
Comment 2 Marcin Mirosław 2009-09-20 10:24:16 UTC
Thank you for fix.
May i please to backport this fix to the latest stable version?
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2009-09-20 10:43:30 UTC
i will request 2.2.13-r1 stabilization pretty soon, so please wait for that