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

Re: Packaging Java Pathfinder



On 11/15/2015 12:15 AM, Emmanuel Bourg wrote:
> Le 15/11/2015 07:38, Marko Dimjašević a écrit :
> 
>> Can someone point me to a package that depends on Java 8? JPF needs
>> Java 8 to build and I can't figure out how to specify that given that
>> 'default-java' points to Java 8. So I'd like to learn from an example.
> 
> You can get a look at the openjfx package. JAVA_HOME is set this way in
> debian/rules:
> 
>   DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
>   JAVA_HOME     := /usr/lib/jvm/java-8-openjdk-$(DEB_HOST_ARCH)

When using this recipe, you should also declare a build-dependency on
either "openjdk-8-jdk" or "default-jdk (>= 2:1.8)".  The first is (just
a tad) more explicit and aligns with the setting of JAVA_HOME.

Cheers,
tony

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: