Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685932 - dev-java/icedtea-3.12.0 fails to build with mksh as the default shell - ./configure[8395]: syntax error: unexpected operator/operand '=~'
Summary: dev-java/icedtea-3.12.0 fails to build with mksh as the default shell - ./con...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrew John Hughes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: nonbash
  Show dependency tree
 
Reported: 2019-05-14 08:04 UTC by William
Modified: 2020-03-02 00:52 UTC (History)
4 users (show)

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


Attachments
build.log with mksh (file_685932.txt,11.49 KB, text/plain)
2019-05-14 08:04 UTC, William
Details
icedtea-3.12.0-dont-use-regex-binary-op-in-acinclude.patch (icedtea-3.12.0-dont-use-regex-binary-op-in-acinclude.patch,2.27 KB, patch)
2019-05-15 00:10 UTC, kfm
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description William 2019-05-14 08:04:00 UTC
Created attachment 576602 [details]
build.log with mksh

After setting eselect sh set bash it builds.
Comment 1 kfm 2019-05-15 00:10:03 UTC
I made a patch that replaces the offending tests in acinclude.m4 with alternatives that are strictly POSIX-conformant. I tested it by adjusting the ebuild so that it:

  * applies the patch in question
  * inherits the autotools eclass
  * contains a src_prepare function that calls default, followed by autoreconf

After doing this, I was able to successfully build icedtea-3.12.0 with mksh as the effective /bin/sh.
Comment 2 kfm 2019-05-15 00:10:57 UTC
Created attachment 576708 [details, diff]
icedtea-3.12.0-dont-use-regex-binary-op-in-acinclude.patch
Comment 3 kfm 2019-08-05 10:28:38 UTC
icedtea-3.13.0 is now in portage and remains broken. Same issue, same solution.
Comment 4 Andrew John Hughes 2019-08-05 20:54:10 UTC
The tests were taken from OpenJDK itself, but it looks like they force configure to be run with bash.

I've filed an upstream bug for this now:

https://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3748

and I'll try and get the patch in for 3.14.0.

In future, if response on here is slow, feel free to use the IcedTea bug database directly. I don't tend to always see Gentoo bugs.
Comment 5 kfm 2019-08-18 07:00:13 UTC
(In reply to Andrew John Hughes from comment #4)

> In future, if response on here is slow, feel free to use the IcedTea bug
> database directly. I don't tend to always see Gentoo bugs.

Noted with thanks. Hopefully they will see that it's an unnecessary bashism.
Comment 6 kfm 2020-02-08 03:47:44 UTC
This can be closed now. Thanks, Andrew.
Comment 7 kfm 2020-03-02 00:52:03 UTC
Closing. This issue was fixed by 3.14.0 and Gentoo no longer carries any older versions.