-
Bug
-
Resolution: Fixed
-
P4
-
17, 18
-
b26
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8289937 | 17.0.5-oracle | Alexey Semenyuk | P4 | Resolved | Fixed | b02 |
JDK-8290507 | 17.0.5 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
When building bundles, and in particular the static-libs bundle, on linux, make spits out the following:
StaticLibsImage.gmk:41: warning: overriding recipe for target 'build/linux-x64/images/static-libs/lib/libjpackageapplauncher.a'
StaticLibsImage.gmk:41: warning: ignoring old recipe for target 'build/linux-x64/images/static-libs/lib/libjpackageapplauncher.a'
The reason seems to boil down to the two different artifacts defined in make/modules/jdk.jpackage/Lib.gmk: BUILD_JPACKAGE_APPLAUNCHEREXE and the linux specific BUILD_JPACKAGE_LIBAPPLAUNCHER.
Both of them end up defining a static library with the same base name - libjpackageapplauncher.a. The static-libs bundling logic assumes that all static library names are unique and flattens the paths when preparing to bundle up the static libraries, meaning it ends up trying to define two different (CopyFiles) recipes for the same target path:
build/linux-x64-release/images/static-libs/lib/libjpackageapplauncher.a
StaticLibsImage.gmk:41: warning: overriding recipe for target 'build/linux-x64/images/static-libs/lib/libjpackageapplauncher.a'
StaticLibsImage.gmk:41: warning: ignoring old recipe for target 'build/linux-x64/images/static-libs/lib/libjpackageapplauncher.a'
The reason seems to boil down to the two different artifacts defined in make/modules/jdk.jpackage/Lib.gmk: BUILD_JPACKAGE_APPLAUNCHEREXE and the linux specific BUILD_JPACKAGE_LIBAPPLAUNCHER.
Both of them end up defining a static library with the same base name - libjpackageapplauncher.a. The static-libs bundling logic assumes that all static library names are unique and flattens the paths when preparing to bundle up the static libraries, meaning it ends up trying to define two different (CopyFiles) recipes for the same target path:
build/linux-x64-release/images/static-libs/lib/libjpackageapplauncher.a
- backported by
-
JDK-8289937 Conflicting jpackage static library name
- Resolved
-
JDK-8290507 Conflicting jpackage static library name
- Resolved
- relates to
-
JDK-8254702 jpackage app launcher crashes on CentOS
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/aafb8156
-
Commit openjdk/jdk/e3911a85
-
Review openjdk/jdk17u-dev/560
-
Review openjdk/jdk/6485
(2 links to)