Summary: | dev-java/icedtea-7.2.4.8 fails to build with dash as the default shell | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Octave Berry <bugs+gentoo> |
Component: | Current packages | Assignee: | Andrew John Hughes <gnu_andrew> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | alexander, java, jcallen, kfm, polynomial-c, sam, uzytkownik2 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 526268 |
Description
Octave Berry
2014-10-21 09:34:45 UTC
The following command not only incoporates &> as a bashism, but also depends upon GNU grep. if echo $(ICEDTEA_BOOTSTRAP_CLASSES) | grep '\S' &> /dev/null ; then \ It could be written instead as: if echo $(ICEDTEA_BOOTSTRAP_CLASSES) | grep -q '[^[:space:]]' 2>/dev/null ; then \ The icedtea7 series has been dropped from portage, so this is no longer a bug from gentoo's perspective. That said, it looks as though it is still being maintained upstream. I might take a closer look at its Makefile.am, with regard to posix conformance. In the event that I do, I shall submit a patch upstream. It's still an issue with dev-java/icedtea-3.16.0: checking if there is a ccache gcc wrapper on the PATH... ./configure: 12319: ./configure: Syntax error: redirection unexpected Here string in configure: $ sudo sed -n '12319p' /var/tmp/portage/dev-java/icedtea-3.16.0/work/icedtea-3.16.0/configure NO_CCACHE_PATH=$(sed "s#[^:]*$(dirname ${ABS_CC}):##g" <<< "${PATH}") *** Bug 722292 has been marked as a duplicate of this bug. *** This bug should not have been retconned. It is a disservice to the original reporter. *** Bug 722536 has been marked as a duplicate of this bug. *** (In reply to Alexander Tsoy from comment #2) > It's still an issue with dev-java/icedtea-3.16.0: > > checking if there is a ccache gcc wrapper on the PATH... ./configure: 12319: > ./configure: Syntax error: redirection unexpected > > Here string in configure: > > $ sudo sed -n '12319p' > /var/tmp/portage/dev-java/icedtea-3.16.0/work/icedtea-3.16.0/configure > NO_CCACHE_PATH=$(sed "s#[^:]*$(dirname ${ABS_CC}):##g" <<< "${PATH}") I can also confirm that this happens if /bin/sh is a link to dash. Resetting it to bash fixes it. Un-hijacking. The bug, as originally reported by Octave Berry was for version 7.2.4.8 (OpenJDK 7), not 3.16.0 (OpenJDK 8). The former has been dropped by Gentoo and would have required a different patch anyway. Please direct commentary about 3.16.0 to bug 722292. Thank you. Resolving as OBSOLETE. All things concerning Java 7 were dropped by Gentoo around the end of 2017 so it cannot be resolved downstream at this point (potentially upstream, though). |