The following jpackage tests fail in Ubuntu 24.04 noble due to usrmerge[1]
FAILED: tools/jpackage/linux/LinuxResourceTest.java
FAILED: tools/jpackage/share/LicenseTest.java#id1
FAILED: tools/jpackage/share/AppImagePackageTest.java
FAILED: tools/jpackage/linux/AppCategoryTest.java
FAILED: tools/jpackage/share/SimplePackageTest.java
FAILED: tools/jpackage/linux/ReleaseTest.java#id0
FAILED: tools/jpackage/linux/AppAboutUrlTest.java#id0
FAILED: tools/jpackage/share/InstallDirTest.java#id0
FAILED: tools/jpackage/share/AddLShortcutTest.java
FAILED: tools/jpackage/linux/MaintainerTest.java
FAILED: tools/jpackage/share/MultiLauncherTwoPhaseTest.java
FAILED: tools/jpackage/linux/LinuxBundleNameTest.java
FAILED: tools/jpackage/share/jdk/jpackage/tests/VendorTest.java#id1
FAILED: tools/jpackage/linux/PackageDepsTest.java
FAILED: tools/jpackage/share/PerUserCfgTest.java
FAILED: tools/jpackage/share/LicenseTest.java#id0
FAILED: tools/jpackage/share/EmptyFolderPackageTest.java
FAILED: tools/jpackage/linux/ShortcutHintTest.java#id0
FAILED: tools/jpackage/share/IconTest.java
FAILED: tools/jpackage/share/AppContentTest.java
FAILED: tools/jpackage/share/FileAssociationsTest.java#id0
FAILED: tools/jpackage/share/ServiceTest.java
FAILED: tools/jpackage/share/AddLauncherTest.java#id1
FAILED: tools/jpackage/linux/jdk/jpackage/tests/UsrTreeTest.java
FAILED: tools/jpackage/share/RuntimePackageTest.java#id0
FAILED: tools/jpackage/share/jdk/jpackage/tests/BasicTest.java
FAILED: tools/jpackage/share/MultiNameTwoPhaseTest.java
The exception causing the failure (openjdk-21):
[14:30:03.512] java.io.IOException: Command [dpkg, -S, /lib/x86_64-linux-gnu/lib
m.so.6] exited with 1 code
at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Exec
utor.java:90)
at jdk.jpackage/jdk.jpackage.internal.LinuxDebBundler.lambda$initLibProv
idersLookup$14(LinuxDebBundler.java:251)
at jdk.jpackage/jdk.jpackage.internal.LibProvidersLookup.lambda$execute$
1(LibProvidersLookup.java:73)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipe
line.java:197)
at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.j
ava:1715)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline
.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractP
ipeline.java:499)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline
.java:575)
at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(Abstr
actPipeline.java:260)
at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipelin
e.java:616)
at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipelin
e.java:622)
at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline
.java:627)
at jdk.jpackage/jdk.jpackage.internal.LibProvidersLookup.execute(LibProv
idersLookup.java:84)
at jdk.jpackage/jdk.jpackage.internal.LinuxPackageBundler.getListOfNeede
dPackages(LinuxPackageBundler.java:195)
at jdk.jpackage/jdk.jpackage.internal.LinuxPackageBundler.createDefaultR
eplacementData(LinuxPackageBundler.java:222)
at jdk.jpackage/jdk.jpackage.internal.LinuxPackageBundler.execute(LinuxP
ackageBundler.java:155)
at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments
.java:690)
at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Argumen
ts.java:555)
at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:92)
at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:53)
jpackage should be checking /usr/lib in order to resolve the package source.
[1] https://wiki.debian.org/UsrMerge
FAILED: tools/jpackage/linux/LinuxResourceTest.java
FAILED: tools/jpackage/share/LicenseTest.java#id1
FAILED: tools/jpackage/share/AppImagePackageTest.java
FAILED: tools/jpackage/linux/AppCategoryTest.java
FAILED: tools/jpackage/share/SimplePackageTest.java
FAILED: tools/jpackage/linux/ReleaseTest.java#id0
FAILED: tools/jpackage/linux/AppAboutUrlTest.java#id0
FAILED: tools/jpackage/share/InstallDirTest.java#id0
FAILED: tools/jpackage/share/AddLShortcutTest.java
FAILED: tools/jpackage/linux/MaintainerTest.java
FAILED: tools/jpackage/share/MultiLauncherTwoPhaseTest.java
FAILED: tools/jpackage/linux/LinuxBundleNameTest.java
FAILED: tools/jpackage/share/jdk/jpackage/tests/VendorTest.java#id1
FAILED: tools/jpackage/linux/PackageDepsTest.java
FAILED: tools/jpackage/share/PerUserCfgTest.java
FAILED: tools/jpackage/share/LicenseTest.java#id0
FAILED: tools/jpackage/share/EmptyFolderPackageTest.java
FAILED: tools/jpackage/linux/ShortcutHintTest.java#id0
FAILED: tools/jpackage/share/IconTest.java
FAILED: tools/jpackage/share/AppContentTest.java
FAILED: tools/jpackage/share/FileAssociationsTest.java#id0
FAILED: tools/jpackage/share/ServiceTest.java
FAILED: tools/jpackage/share/AddLauncherTest.java#id1
FAILED: tools/jpackage/linux/jdk/jpackage/tests/UsrTreeTest.java
FAILED: tools/jpackage/share/RuntimePackageTest.java#id0
FAILED: tools/jpackage/share/jdk/jpackage/tests/BasicTest.java
FAILED: tools/jpackage/share/MultiNameTwoPhaseTest.java
The exception causing the failure (openjdk-21):
[14:30:03.512] java.io.IOException: Command [dpkg, -S, /lib/x86_64-linux-gnu/lib
m.so.6] exited with 1 code
at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Exec
utor.java:90)
at jdk.jpackage/jdk.jpackage.internal.LinuxDebBundler.lambda$initLibProv
idersLookup$14(LinuxDebBundler.java:251)
at jdk.jpackage/jdk.jpackage.internal.LibProvidersLookup.lambda$execute$
1(LibProvidersLookup.java:73)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipe
line.java:197)
at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.j
ava:1715)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline
.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractP
ipeline.java:499)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline
.java:575)
at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(Abstr
actPipeline.java:260)
at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipelin
e.java:616)
at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipelin
e.java:622)
at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline
.java:627)
at jdk.jpackage/jdk.jpackage.internal.LibProvidersLookup.execute(LibProv
idersLookup.java:84)
at jdk.jpackage/jdk.jpackage.internal.LinuxPackageBundler.getListOfNeede
dPackages(LinuxPackageBundler.java:195)
at jdk.jpackage/jdk.jpackage.internal.LinuxPackageBundler.createDefaultR
eplacementData(LinuxPackageBundler.java:222)
at jdk.jpackage/jdk.jpackage.internal.LinuxPackageBundler.execute(LinuxP
ackageBundler.java:155)
at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments
.java:690)
at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Argumen
ts.java:555)
at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:92)
at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:53)
jpackage should be checking /usr/lib in order to resolve the package source.
[1] https://wiki.debian.org/UsrMerge
- duplicates
-
JDK-8295111 dpkg appears to have problems resolving symbolically linked native libraries
- Closed