Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22829 - Invalid return codes in php.eclass
Summary: Invalid return codes in php.eclass
Status: RESOLVED DUPLICATE of bug 22886
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-14 12:34 UTC by Malcolm Scott
Modified: 2011-10-30 22:18 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 Malcolm Scott 2003-06-14 12:34:23 UTC
php.eclass contains the following code:

function runningunstable() {
local data="`echo "${ACCEPT_KEYWORDS}" |grep '~'`"
local retval=false
[ -n "${data}" ] && retval=true
return ${retval}
}

However, in bash, "false" and "true" aren't valid return codes. These should
probably be replaced by "1" and "0" respectively.

Reproducible: Always
Steps to Reproduce:
Comment 1 Lisa Seelye (RETIRED) gentoo-dev 2003-06-14 21:34:29 UTC
This is also cropping up:

 * Copying php5 from /mnt/nfs/usr/portage/distfiles/cvs-src...
>>> Source unpacked.
/usr/sbin/ebuild.sh: line 27: return: true: numeric argument required
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
buildconf: automake version 1.4-p5 (ok)
buildconf: libtool version 1.4.3 (ok)
rebuilding configure
rebuilding acconfig.h
rebuilding main/php_config.h.in
berkdb
 * BerkDB is disabled due to DB4 issues and changes in PHP 4.3.2 presently.
 * If you need BerkDB support, please do NOT upgrade at this time
crypt
gdbm
informix
jpeg
jpeg
oci8
odbc
pdflib
png
postgres
snmp
/usr/sbin/ebuild.sh: line 27: return: true: numeric argument required
mysql
creating cache ./config.cache
...

Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-18 19:46:13 UTC

*** This bug has been marked as a duplicate of 22886 ***