tools/jpackage/linux - tests (from 8212780: Packaging Tool Implementation)

Baesken, Matthias matthias.baesken at
Fri Feb 7 08:17:16 UTC 2020

Hello, I started to look a bit  into the   tools/jpackage/linux  - tests  (from 8212780).
So far I noticed the following issues , maybe someone could comment on them  ?

rpm/rpmbuild version requirements

We still have some older Suse Linux 11 systems , but those systems  have  rather old rpm/rpmbuild versions.  On those systems the  tools/jpackage/linux - tests  do not work (probably because of old rpm(build)) .
For example  we have issues with this version:
rpmbuild --version
RPM version

On  newer systems with RPM version 4.11.2  the tests do not show the issues.
Is there some   requirement for a  minimum rpm version (like 4.10 or  4.11)  to run the tools/jpackage/linux - tests  ?

getting packages does not work everywhere/ on all distros ?

On our Ubuntu 18  linux ppc64le  test machine  ,  the  test    tools/jpackage/linux/    (and maybe other tests)  tries to find out   rpm packages of various files .
However calling  rpm  whatprovides   fails  (maybe because it is Ubuntu ?) .

Example :

Running [rpm, -q, --queryformat, %{name}\\n, -q, --whatprovides, /lib/powerpc64le-linux-gnu/]
file /lib/powerpc64le-linux-gnu/ is not owned by any package Command [rpm, -q, --queryformat, %{name}\\n, -q, --whatprovides, /lib/powerpc64le-linux-gnu/] exited with 1 code
                at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Executor.executeExpectSuccess(
                at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.LinuxRpmBundler.lambda$initLibProvidersLookup$7(
                at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.LibProvidersLookup.lambda$execute$1(
                at java.base/$3$1.accept(
                at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(
                at java.base/
                at java.base/
                at java.base/$ReduceOp.evaluateSequential(
                at java.base/
                at java.base/
                at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.LibProvidersLookup.execute(
                at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.LinuxPackageBundler.getListOfNeededPackages(
                at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.LinuxPackageBundler.createDefaultReplacementData(
                at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.LinuxPackageBundler.execute(
                at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.generateBundle(
                at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.processArguments(
                at jdk.incubator.jpackage/jdk.incubator.jpackage.main.Main.execute(
                at jdk.incubator.jpackage/jdk.incubator.jpackage.main.Main.main(

Do you expect  those  tests to work on Ubuntu ?

Thanks and best regards, Matthias

More information about the core-libs-dev mailing list