Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#55763 - [logstash] package fails to build with jre9-openjdk
Attached to Project:
Community Packages
Opened by Erich Eckner (deepthought) - Wednesday, 27 September 2017, 07:32 GMT
Last edited by Levente Polyak (anthraxx) - Wednesday, 11 October 2017, 23:03 GMT
Opened by Erich Eckner (deepthought) - Wednesday, 27 September 2017, 07:32 GMT
Last edited by Levente Polyak (anthraxx) - Wednesday, 11 October 2017, 23:03 GMT
|
DetailsDescription:
With jre9-openjdk, the package fails to build: ==> Rake bootstrap... mkdir -p vendor mkdir vendor/_ mkdir -p build mkdir -p build/bootstrap WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by jnr.posix.JavaLibCHelper to method sun.nio.ch.SelChImpl.getFD() WARNING: Please consider reporting this to the maintainers of jnr.posix.JavaLibCHelper WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release io/console on JRuby shells out to stty for most operations rake aborted! load error: jopenssl/load -- java.lang.ExceptionInInitializerError: null org/jruby/RubyKernel.java:1040:in `require' org/jruby/RubyKernel.java:1040:in `require' org/jruby/RubyKernel.java:1040:in `require' org/jruby/RubyKernel.java:1040:in `require' org/jruby/RubyKernel.java:1040:in `require' org/jruby/RubyKernel.java:1040:in `require' org/jruby/RubyKernel.java:1059:in `load' /build/logstash/src/logstash-5.6.2/rakelib/gems.rake:1:in `(root)' /build/logstash/src/logstash-5.6.2/rakelib/gems.rake:2:in `(root)' org/jruby/RubyKernel.java:1059:in `load' (See full trace by running task with --trace) ==> ERROR: A failure occurred in build(). However, with jre8-openjdk, it works. Additional info: * package version(s) logstash 5.6.2-1 * config and/or log files etc. logs are attached Steps to reproduce: > git clone https://git.archlinux.org/svntogit/community.git/ > cd community > git checkout 114a904e3500d134c325dc99e982792d5626a793 > cd logstash/repos/community-x86_64 > sed -i 's|>=8|=9|' PKGBUILD # Note, that we replace makedepends _and_ depends on purpose: If jre8-openjdk is installed to satisfy depends, the build will still work, because java8 will/might be used. > staging-x86_64-build |
This task depends upon
Closed by Levente Polyak (anthraxx)
Wednesday, 11 October 2017, 23:03 GMT
Reason for closing: Fixed
Additional comments about closing: 5.6.3-1
Wednesday, 11 October 2017, 23:03 GMT
Reason for closing: Fixed
Additional comments about closing: 5.6.3-1
log.x86_64_8
the Makedepends can be pinned to 8, but that's about it.
"partial", because makepkg may/will install java9 as depends plus java8 as makedepends (later on) which will still break the package build, because the build() uses java9 then IIRC, but let me recheck.
I think, aditionally to pinning the makedepends version to 8, build() should:
a) set the default java version during the build to 8 or
b) ensure by some other means, that java8 is used for building.
This way, you can see what happens if pacman choses (for whatever reason) to install java9 to satisfy java>=8
This is currently the case for achlinux32, as jre9-openjdk is in testing whereas jre8-openjdk is in extra. Therefor pacman installs jre9-openjdk, which breaks the build.