[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: build package with source and target = java15



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


Reply to: