[jdk17u-dev] RFR: 8295111: dpkg appears to have problems resolving symbolically linked native libraries
Vladimir Petko
vpetko at openjdk.org
Tue May 28 20:38:25 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.
The backport had a conflict in the copyright header that was resolved manually.
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 (Ubuntu 24.04):
==============================
Test summary
==============================
TEST TOTAL PASS FAIL ERROR
jtreg:test/jdk/tools/jpackage 55 55 0 0
==============================
TEST SUCCESS
Thanks!
-------------
Commit messages:
- Backport 32946e1882e9b22c983cbba3c6bda3cc7295946a
Changes: https://git.openjdk.org/jdk17u-dev/pull/2501/files
Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=2501&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8295111
Stats: 43 lines in 1 file changed: 19 ins; 3 del; 21 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/2501.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/2501/head:pull/2501
PR: https://git.openjdk.org/jdk17u-dev/pull/2501
More information about the jdk-updates-dev
mailing list