FS#55764 - [libreoffice-fresh][libreoffice-still][java9] package can't be built with jdk9-openjdk

Attached to Project: Arch Linux
Opened by Erich Eckner (deepthought) - Wednesday, 27 September 2017, 07:49 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 14 November 2017, 20:10 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Guillaume ALAUX (galaux)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

If jdk9-openjdk is installed to satisfy the dependency 'java-environment', the package can't be built:

[build PKG] canvas_opengl_shader
/usr/bin/ld: cannot find -ljawt
collect2: error: ld returned 1 exit status
make[1]: *** [/build/libreoffice-fresh/src/libreoffice-5.4.1.2/bean/Library_officebean.mk:12: /build/libreoffice-fresh/src/libreoffice-5.4.1.2/instdir/program/libofficebean.so] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:269: build] Error 2
==> ERROR: A failure occurred in build().

Additional info:
* package version(s)
libreoffice-fresh 5.4.1-2 (git revision 8658606ba01c687377e3f988382bef01c4ca9fde)
* config and/or log files etc.
full log is attached

Steps to reproduce:
> git clone 'git://git.archlinux.org/svntogit/packages.git'
> cd packages
> git checkout 8658606ba01c687377e3f988382bef01c4ca9fde
> cd libreoffice-fresh/repos/extra-x86_64
> sed -i "s|'java-environment'|'java-environment=9'|" PKGBUILD
> staging-x86_64-build
   log (329.1 KiB)
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Tuesday, 14 November 2017, 20:10 GMT
Reason for closing:  Upstream
Additional comments about closing:  There's no need to change our packaging as long as it builds well in a clean chroot.
Comment by Erich Eckner (deepthought) - Wednesday, 27 September 2017, 08:00 GMT
I just noticed, that [libreoffice-still] has the identical issue:
I used above commands in packages/libreoffice-still/repos/extra-x86_64 and got the attached log.
   log (376 KiB)
Comment by Guillaume ALAUX (galaux) - Thursday, 28 September 2017, 16:36 GMT
Chances are LibreOffice is just not yet compatible with Java 9. I would recommend using a dependency on `java-runtime=8`.
Comment by Andreas Radke (AndyRTR) - Tuesday, 14 November 2017, 20:08 GMT
Right, it's not yet supported to build LibO using java v9. I've seen Debian adding patches to their experimental branch.

I see no reason not to build with one of the supported java 7/8 branches. Going to close this one.

Loading...