RFR: JDK-8157479: jdk-9_solaris-x64_bin-debug.tar.gz error - typeflag 'L' not recognized

Erik Joelsson erik.joelsson at oracle.com
Fri Jun 3 14:25:32 UTC 2016


Hello,

In my recent implementation of bundle targets, I also made configure 
prefer gnu tar to Solaris tar on Solaris. Unfortunately, bundles created 
by gnu tar are not always compatible with Solaris tar. Typically, this 
error message is given when Solaris tar (at least older versions of it) 
tries to untar bundles created by the new target:

tar: ././@LongLink: typeflag 'L' not recognized, converting to regular file

To fix this, gnu tar can be run in various compatibility modes. I have 
found the "ustar" mode to work well in this case. (Incidentally, USTAR 
is also the file type that the Solaris file command reports for tar 
files). This patch adds an optional extra parameter to tar create 
commands and sets it to --format=ustar when using gnu tar on Solaris.

Bug: https://bugs.openjdk.java.net/browse/JDK-8157479
Webrev: http://cr.openjdk.java.net/~erikj/8157479/webrev.top.01/

/Erik



More information about the build-dev mailing list