[jdk21u-dev] Integrated: 8295111: dpkg appears to have problems resolving symbolically linked native libraries

Vladimir Petko vpetko at openjdk.org
Mon May 27 22:18:02 UTC 2024


On Fri, 24 May 2024 03:41:09 GMT, Vladimir Petko <vpetko at openjdk.org> wrote:

> Hi all,
> 
> This pull request contains a backport of commit [32946e18](https://github.com/openjdk/jdk/commit/32946e1882e9b22c983cbba3c6bda3cc7295946a) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.
> 
> The commit being backported was authored by Alexey Semenyuk on 18 Apr 2024 and was reviewed by Alexander Matveev.
> 
> This change fixes an issue caused by usrmerge on Debian-based systems - dpkg -S does not return a package containing a symlinked shared library in /lib, e.g. 
> 
> dpkg -S /lib/x86_64-linux-gnu/libmd.so.0
> # dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libmd.so.0
> 
> 
> The fix calls toRealPath() to resolve an actual path to the file before dpkg call and falls back to the old behaviour if the dpkg call fails.
> 
> The change is tested by jpackage set of jtreg tests and should be low risk. 
> 
> 
> jpackage tests pass:
> 
> 
> ==============================
> Test summary
> ==============================
>    TEST                                              TOTAL  PASS  FAIL ERROR   
>    jtreg:test/jdk/tools/jpackage                        61    61     0     0   
> ==============================
> TEST SUCCESS
> 
> 
> 
> Thanks !!!

This pull request has now been integrated.

Changeset: 58c19a60
Author:    Vladimir Petko <vpetko at openjdk.org>
Committer: Christoph Langer <clanger at openjdk.org>
URL:       https://git.openjdk.org/jdk21u-dev/commit/58c19a60512086a23975a4d7e595905fdbde540a
Stats:     44 lines in 1 file changed: 19 ins; 3 del; 22 mod

8295111: dpkg appears to have problems resolving symbolically linked native libraries

Backport-of: 32946e1882e9b22c983cbba3c6bda3cc7295946a

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

PR: https://git.openjdk.org/jdk21u-dev/pull/601


More information about the jdk-updates-dev mailing list