[pkg-db-devel] Bug#873976: Bug#873976: FTBFS with Java 9 due to -source/-target only

Tiago Daitx tiago.daitx at canonical.com
Wed Feb 28 15:31:18 UTC 2018


On Thu, 07 Sep 2017 15:30:53 +0200 =?utf-8?Q?Ond=C5=99ej=20Sur=C3=BD?=
<ondrej at sury.org> wrote:
> Hi Chris,
>
> I would be happy to accept the patch. The email is one big jumbo/mumbo
> to me as I have never used java (and I don't intend to).

Hi Ondřej,

I will try to clarify the issue here.

There has been an ongoing investigation about moving the default-jdk
from OpenJDK 8 to OpenJDK 9 (and forward). In order to find issues an
automated tool was used to detect build failures when using OpenJDK 9
as the default-jdk and then report those back to the package
maintainers (thanks to Chris).

db5.3 has a build dependency on default-jdk, thus a viable candidate
for the test. Unfortunately the package currently sets
"JAVACFLAGS=-source 1.5 -target 1.5". The source flag is used to tell
the compiler what version of the java grammar to accept. The target
flag will set the minimum java runtime required to run the generated
binaries.

The both options are deemed too old to be used with OpenJDK 9 as it
only supports 1.6 or newer. A test was made where the package had it's
source and target set to 1.7, resulting in a good build, and this is
what Markus' patch does.

Could you please consider applying Markus' patch to the package?
Please let me know if you need further clarification.

Regards.
Tiago

>
> Cheers,
> --
> Ondřej Surý <ondrej at sury.org>
> Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server
> Knot Resolver (https://www.knot-resolver.cz/) – secure, privacy-aware,
> fast DNS(SEC) resolver
> Vše pro chleba (https://vseprochleba.cz) – Mouky ze mlýna a potřeby pro
> pečení chleba všeho druhu
>
> On Fri, Sep 1, 2017, at 21:40, Chris West wrote:
> > Source: db5.3
> > Version: 5.3.28
> > Severity: normal
> > User: debian-java at lists.debian.org
> > Usertags: default-java9
> >
> > This package fails to build with default-jdk pointing to openjdk-9-jdk.
> > The wiki has some common problems and their solutions:
> > https://wiki.debian.org/Java/Java9Pitfalls
> >
> > An automated tool has decided that this package will build fine if the
> > -source and -target options are changed to 1.6; no additional changes
> > are required. This was done by building with a compiler that changed
> > the settings automatically, then the real compiler, and diffing the
> > results. This modified compiler will never be part of Debian.
> >
> > ant and Maven are supposed to do this for you, and I've tried to check
> > that this package is not using ant or Maven correctly, but I might have
> > messed up.
> >
> > Build log sample:
> >
> > configure:18523: checking for javac
> > configure:18539: found /usr/bin/javac
> > configure:18550: result: javac
> > configure:18608: checking if javac works
> > configure:18622: javac -source 1.5 -target 1.5 Test.java
> > warning: [options] bootstrap class path not set in conjunction with
> > -source 1.5
> > error: Source option 1.5 is no longer supported. Use 1.6 or later.
> > error: Target option 1.5 is no longer supported. Use 1.6 or later.
> > configure:18625: $? = 2
> > configure:18629: error: The Java compiler javac failed (see config.log,
> > check the CLASSPATH?)
> >
> >
> > Cheers,
> > Chris.
> >
> > _______________________________________________
> > pkg-db-devel mailing list
> > pkg-db-devel at lists.alioth.debian.org
> > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-db-devel
>
>



More information about the pkg-db-devel mailing list