battleblow / openjdk-jdk11u

BSD port of OpenJDK 11
GNU General Public License v2.0
9 stars 8 forks source link

The unpack200 utility doesn't work on FreeBSD #61

Closed battleblow closed 5 years ago

battleblow commented 5 years ago

Attempting to use unpack200 on FreeBSD produces the following output:

> /usr/local/openjdk11/bin/unpack200 out.jar.pack.gz dst.jar

Warning: The unpack200 tool is deprecated, and is planned for removal in a future JDK release.

CRC error, invalid compressed data.
> echo $?
255

In comparison, using the same input file on Linux works correctly, as does openjdk8 on FreeBSD. Note that pack200 on FreeBSD yields a correct output file (it can be unpacked successfully with openjdk8 or the Linux version), it just seems to be unpack which is failing.

battleblow commented 5 years ago

Error is also present on OpenBSD, so not restricted to FreeBSD

battleblow commented 5 years ago

Turned out to be endian handling issues in the unpack source. I've pushed a fix.