Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8295111

dpkg appears to have problems resolving symbolically linked native libraries

XMLWordPrintable

    • b20
    • x86_64
    • linux_ubuntu
    • Verified

        ADDITIONAL SYSTEM INFORMATION :
        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


          There are no Sub-Tasks for this issue.

              asemenyuk Alexey Semenyuk
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              16 Start watching this issue

                Created:
                Updated:
                Resolved: