RFR: 8193189: Allow --boot-jdk to accept a .tar.gz compressed JDK image
erik.joelsson at oracle.com
Thu Dec 7 18:05:21 UTC 2017
On macosx, the tar.gz distribution usually has the java home dir in
"jdk-9.jdk/Contents/Home". The -z and --strip-components flags for tar
probably works well with gnu tar, but we can only rely on that on Linux
and Windows. You need to write the unpack logic compatible with both
Solaris and bsd tar as well (yes, that means piping with gunzip and
manually finding the correct java home dir inside the exploded file tree :).
I would also like to see a better failure handling of a non existing
file/directory given to --with-boot-jdk. As it looks now, tar is going
to crap out.
Otherwise the idea seems decent enough.
On 2017-12-07 09:05, Erik Helin wrote:
> Hi all,
> this small patch allows the --boot-jdk flag to configure to accept a
> gzip compressed JDK image. For example:
> $ wget
> $ bash configure --with-boot-jdk=openjdk-9.0.1_linux-x64_bin.tar.gz
> The compressed image will be extracted into
> - configure and make locally on Linux x86-64
More information about the build-dev