Bug#766156: libspring-java: Hard coded JAVA_HOME that cause ftbfs
Niels Thykier
niels at thykier.net
Tue Oct 21 15:53:19 UTC 2014
On 2014-10-21 10:34, Andrew Lee (李健秋) wrote:
> Package: libspring-java
> Version: 3.0.6.RELEASE-15
> Severity: important
>
> Dear Maintainer,
>
> I got such ftbfs on i386:
> [...]
>
> Found this in debian/rules:
> JAVA_HOME := /usr/lib/jvm/java-7-openjdk-amd64
>
> A quickly fix:
> + DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
> - JAVA_HOME := /usr/lib/jvm/java-7-openjdk-amd64
> + JAVA_HOME := /usr/lib/jvm/java-7-openjdk-$(DEB_HOST_ARCH)
>
> Best regards,
>
> -Andrew
>
> [...]
Hi,
For pedantic correctness, you should be using "DEB_BUILD_ARCH" instead
of DEB_HOST_ARCH[1]. For an arch:all package it makes little
difference, but for arch:any it is relevant when cross building.
~Niels
[1] DEB_BUILD_ARCH is the architecture on which the build is happening,
DEB_HOST_ARCH is the architecture that will run the compiled binary.
More information about the pkg-java-maintainers
mailing list