-
Bug
-
Resolution: Fixed
-
P2
-
17, 21, 22
-
b20
-
x86_64
-
linux_ubuntu
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8330870 | 22.0.2 | Alexey Semenyuk | P2 | Closed | Fixed | b05 |
JDK-8333011 | 21.0.4 | Vladimir Petko | P2 | Resolved | Fixed | b05 |
JDK-8333243 | 17.0.13 | Vladimir Petko | P2 | Resolved | Fixed | b01 |
Raspberry Pi 4
Debian GNU/Linux 11 (bullseye)
java version "19" 2022-09-20
Java(TM) SE Runtime Environment (build 19+36-2238)
A DESCRIPTION OF THE PROBLEM :
Verbose invocations of jpackage show a number of errors along the lines of...
[01:50:56.499] Running dpkg
[01:50:56.679] Command [PID: 9246]:
dpkg -S /lib/aarch64-linux-gnu/libmd.so.0
[01:50:56.679] Output:
dpkg-query: no path found matching pattern /lib/aarch64-linux-gnu/libmd.so.0
[01:50:56.679] Returned: 1
[01:50:56.680] java.io.IOException: Command [dpkg, -S, /lib/aarch64-linux-gnu/libmd.so.0] exited with 1 code
at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Executor.java:90)
at jdk.jpackage/jdk.jpackage.internal.LinuxDebBundler.lambda$initLibProvidersLookup$14(LinuxDebBundler.java:250)
at jdk.jpackage/jdk.jpackage.internal.LibProvidersLookup.lambda$execute$1(LibProvidersLookup.java:73)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1715)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
at jdk.jpackage/jdk.jpackage.internal.LibProvidersLookup.execute(LibProvidersLookup.java:84)
at jdk.jpackage/jdk.jpackage.internal.LinuxPackageBundler.getListOfNeededPackages(LinuxPackageBundler.java:195)
at jdk.jpackage/jdk.jpackage.internal.LinuxPackageBundler.createDefaultReplacementData(LinuxPackageBundler.java:222)
at jdk.jpackage/jdk.jpackage.internal.LinuxPackageBundler.execute(LinuxPackageBundler.java:155)
at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:700)
at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:565)
at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:91)
There appears to be a symbolic link...
~/First $ ls -l /lib/aarch64-linux-gnu/libmd.so.0
lrwxrwxrwx 1 root root 14 Feb 8 2021 /lib/aarch64-linux-gnu/libmd.so.0 -> libmd.so.0.0.4
if the dpkg query command is issued against the linked file it appears to work...
~/First $ dpkg -S libmd.so.0.0.4
libmd0:arm64: /usr/lib/aarch64-linux-gnu/libmd.so.0.0.4
although that is also pointing to a different file?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
The original invocation was
~/First $ jpackage --input . --linux-shortcut --name First --main-class Main --module-path ../javafx-sdk-19/lib --add-modules javafx.base,javafx.graphics,javafx.controls --verbose --main-jar first.jar
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
a successful run
ACTUAL -
errors as shown
---------- BEGIN SOURCE ----------
It was a simple javafx example class. The source doesn't seem to be the problem.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
None at this time.
FREQUENCY : always
- backported by
-
JDK-8333011 dpkg appears to have problems resolving symbolically linked native libraries
- Resolved
-
JDK-8333243 dpkg appears to have problems resolving symbolically linked native libraries
- Resolved
-
JDK-8330870 dpkg appears to have problems resolving symbolically linked native libraries
- Closed
- duplicates
-
JDK-8330306 broken "dpkg" command on Ubuntu 24.04
- Closed
-
JDK-8331019 jpackage fails on ubuntu noble due to usrmerge
- Closed
- links to
-
Commit openjdk/jdk17u-dev/dcb2c351
-
Commit openjdk/jdk21u-dev/58c19a60
-
Commit openjdk/jdk22u/a93848c1
-
Commit openjdk/jdk/32946e18
-
Review openjdk/jdk17u-dev/2501
-
Review openjdk/jdk21u-dev/601
-
Review openjdk/jdk22u/156
-
Review openjdk/jdk/18844