[jdk21u-dev] RFR: 8295111: dpkg appears to have problems resolving symbolically linked native libraries
Vladimir Petko
vpetko at openjdk.org
Sun May 26 22:10:20 UTC 2024
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 !!!
-------------
Commit messages:
- Backport 32946e1882e9b22c983cbba3c6bda3cc7295946a
Changes: https://git.openjdk.org/jdk21u-dev/pull/601/files
Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=601&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8295111
Stats: 44 lines in 1 file changed: 19 ins; 3 del; 22 mod
Patch: https://git.openjdk.org/jdk21u-dev/pull/601.diff
Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/601/head:pull/601
PR: https://git.openjdk.org/jdk21u-dev/pull/601
More information about the jdk-updates-dev
mailing list