Community Packages

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!
Tasklist

FS#69803 - DBeaver JVM Search not valid on systems with java-8 installed

Attached to Project: Community Packages
Opened by Kevin Andrews (caffe1neadd1ct) - Friday, 26 February 2021, 21:23 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 27 February 2021, 12:04 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture x86_64
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Building dbeaver with java installed gives:

1 error: org/eclipse/tycho/core/p2/P2ArtifactRepositoryLayout has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

version 52.0 being java 8
version 55.0 being java 11

The PKGBUILD file uses the following to detect and select an installed JVM:

for _java_version in $(archlinux-java status | tail -n +2 | cut -d' ' -f 3 | grep -v 'java-15')
do
echo "/usr/lib/jvm/${_java_version}"
done

which for me (changing the export to an echo for debugging) gives:

/usr/lib/jvm/java-10-openjdk
/usr/lib/jvm/java-11-openjdk
/usr/lib/jvm/java-7-openjdk
/usr/lib/jvm/java-8-openjdk


java-15-openjdk has been correctly excluded (i have 15 installed), however java-8-openjdk was the last to be exported which doesn't meet the package requirements of java-11-openjdk.


Would this work better:

archlinux-java status | tail -n +2 | cut -d' ' -f 3 | sort -n -t '-' -k2 | egrep '^java-[11-14]{2}' | tail -n 1

- Returns list of java installs
- Removes beginning text lines
- Removes (default) wording
- Sorts the returned list by the second column using '-' as a delimiter
- Filters by 11 to 14 for now (could do with these running off the dependencies list?
- Limit to one result


Steps to reproduce:


This task depends upon

Closed by  Doug Newgard (Scimmia)
Saturday, 27 February 2021, 12:04 GMT
Reason for closing:  Not a bug
Additional comments about closing:  PKGBUILDs in the official repos are meant to be built in a clean chroot.

Loading...