Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155595 - java-utils-2.eclass: Operator =~ in ebuild requires recent bash
Summary: java-utils-2.eclass: Operator =~ in ebuild requires recent bash
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-18 09:09 UTC by Martin von Gagern
Modified: 2006-11-18 11:33 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 Martin von Gagern 2006-11-18 09:09:45 UTC
When I try to emerge subversion on an otherwise not too up-to-date system, I get this error message:

>>> emerge (1 of 1) dev-util/subversion-1.3.2-r3 to /
/usr/lib/portage/bin/ebuild.sh: /usr/portage/eclass/java-utils-2.eclass: line 1942: conditional binary operator expected
/usr/lib/portage/bin/ebuild.sh: /usr/portage/eclass/java-utils-2.eclass: line 1942: syntax error near `=~'
/usr/lib/portage/bin/ebuild.sh: /usr/portage/eclass/java-utils-2.eclass: line 1942: `   if [[ ${jar} =~ ${PV} ]]; then'

!!! ERROR: dev-util/subversion-1.3.2-r3 failed.
!!! Function inherit, Line 1563, Exitcode 1
!!! died sourcing /usr/portage/eclass/java-utils-2.eclass in inherit()
!!! If you need support, post the topmost build error, NOT this status message.

!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""

Installed on this system is a bash-2.05b-r9 and I guess this might be a bash 3 feature. In case you really want to use it, add bash-3.* as a DEPEND. However, I guess in this case the check could be transformed into [[ ${jar} == *${PV}* ]] which is almost the same (except for special treatment of the dots in the version number) and should do the job in a compatible way.
Comment 1 michael@smith-li.com 2006-11-18 10:38:44 UTC
java-vm-2.eclass also has this bash-3 syntax in it.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-11-18 11:33:45 UTC
Any baselayout ebuild in portage requires bash-3.0 at minimum, which is required to boot, so... upgrade your system.