On Thu, 18 Apr 2024 19:56:43 GMT, Alexey Semenyuk <asemen...@openjdk.org> wrote:

> Pass a path with resolved symlinks to `dpkg -S` command. If it fails, try the 
> original path if they differ.
> 
> Testing on Ubuntu 24.04 passed. Successfully created a .deb package from 
> SwingSet2.jar with the not-empty list of dependencies. Before the fix the 
> list of required packages was empty. In jpackage log:
> 
> 
> [19:30:48.784] Running dpkg
> [19:30:49.118] Command [PID: 244104]:
>     dpkg -S /usr/lib/x86_64-linux-gnu/libm.so.6
> [19:30:49.118] Output:
>     libc6:amd64: /usr/lib/x86_64-linux-gnu/libm.so.6
> [19:30:49.118] Returned: 0
> 
> [19:30:49.118] /lib/x86_64-linux-gnu/libm.so.6 is provided by [libc6]
> 
> 
> It was looking for a package providing "/lib/x86_64-linux-gnu/libm.so.6" 
> library, but the actual argument to "dpgk -S" command was 
> "/usr/lib/x86_64-linux-gnu/libm.so.6".

@sashamatveev please review

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18844#issuecomment-2065166526

Reply via email to