Change JDK-8044480 breaks OpenJDK builds which bundle other libraries
volker.simonis at gmail.com
Mon Oct 27 16:08:32 UTC 2014
your change for "JDK-8044480: JDK image target overwrites
lib/server/libjsig.dylib symlink with a copy of lib/libjsig.dylib"
breaks our OpenJDK builds on Solaris. The problem is that because on
Solaris "freetype" isn't installed by default on every machine we have
manually build a version of freetype for Solaris into a shared
directory and use that one for our builds.
The lib-directory of a vanilly freetype build looks as follows (which
is not unusual):
$ ls -la freetype/lib/
drwxr-xr-x 2 d046063 cproj 4096 Apr 26 2013 .
drwxr-xr-x 4 d046063 cproj 4096 Apr 26 2013 ..
lrwxrwxrwx 1 d046063 cproj 20 Apr 26 2013 libfreetype.so
lrwxrwxrwx 1 d046063 cproj 20 Apr 26 2013 libfreetype.so.6
-rwxr-xr-x 1 d046063 cproj 773448 Apr 26 2013 libfreetype.so.6.8.0
When using "--with-freetype" this will automatically enable
"freetype-bundling" and this in turn will require to copy the freetype
libraries into the image during the build. Unfortunately, after change
JDK-8044480, this will now only copy the corresponding symlink which
meaningless in the jdk-directory and leads to a subsequent build error
gmake: *** No rule to make target
needed by `/net/usr.work/openjdk/nb/sun_64/nightly/output-jdk9/images/j2re-image/lib/sparcv9/libfreetype.so.6'.
The same problem may also apply to other bundled libraries like zlib,
png, jpeg, etc..
Do you have any idea how we could solve this problem? Or the other way
round - do you see a possibility how to fix "JDK-8044480: JDK image
target overwrites lib/server/libjsig.dylib symlink with a copy of
lib/libjsig.dylib" without affecting the bundling of third part
Thank you and best regards,
More information about the build-dev