Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #12198
| From | Matthias Klose <doko@debian.org> |
|---|---|
| Newsgroups | linux.debian.maint.java |
| Subject | Re: build package with source and target = java15 |
| Date | 2021-05-27 11:20 +0200 |
| Message-ID | <Cjklk-5Zi-7@gated-at.bofh.it> (permalink) |
| References | <CgqQh-6Kk-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 5/19/21 11:06 AM, Cyril Richard wrote: > Hello. > > I'm trying to update my java package with pbuilder before updating it on debian. This one now uses java15. > Then, the control files: > > Build-Depends: debhelper-compat (= 13), > default-jdk, > javahelper > > does not work anymore because default-jdk stands for java11 in the SID build environment. > > I tried to replace default-jdk by openjdk-11-jdk, but I have the following error: > > make[1]: Entering directory '/build/spview-2.0.0~rc1' > jh_build --javacopts="-source 15 -target 15" --no-javadoc spview.jar sources > jh_build: error: Cannot find any JAVA_HOME: aborting > make[1]: *** [debian/rules:8: override_jh_build] Error 25 > make[1]: Leaving directory '/build/spview-2.0.0~rc1' > make: *** [debian/rules:5: binary] Error 2 > dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 > I: copying local configuration > E: Failed autobuilding of package > > > Could someone help me to fix the issue? openjdk-15 has been removed from testing, and probably will be removed from unstable soonish. Maybe use openjdk-16, or even -17 which is likely to become the next OpenJDK LTS release. Also Emmanuel is already doing test rebuilds against 17. I don't see any setting (and exporting) of JAVA_HOME in your rules file. Matthias
Back to linux.debian.maint.java | Previous | Next — Previous in thread | Next in thread | Find similar
build package with source and target = java15 Cyril Richard <Cyril.Richard@u-bourgogne.fr> - 2021-05-19 11:40 +0200
Re: build package with source and target = java15 Matthias Klose <doko@debian.org> - 2021-05-27 11:20 +0200
Re: build package with source and target = java15 Cyril Richard <Cyril.Richard@u-bourgogne.fr> - 2021-05-27 13:50 +0200
csiph-web