opnjdk* jar broken on x86_64

Jan Rękorajski baggins at pld-linux.org
Wed Mar 30 12:53:04 CEST 2022


Any ideas how the below could broke?
Same thing works on i686 and x32.

I installed i686 jar on x86_64 builder to unblock libreoffice and
openjdk11 rebilds for now.

Tested with openjdk11 and openjdk12:

Notice that the original CRC is not what jar put in the archive.

[builder2 at ymir ~]$ S=/home/users/builder2/rpm/BUILD/libreoffice-7.2.0.3 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/JavaClassSet/Jar/unoloader/META-INF && echo Manifest-Version: 1.0 > $W/JavaClassSet/Jar/u
noloader/META-INF/MANIFEST.MF &&  echo "Solar-Version: 7.2.0.3" >> $W/JavaClassSet/Jar/unoloader/META-INF/MANIFEST.MF && cat $S/ridljar/source/unoloader/com/sun/star/lib/unoloader/manifest >> $W/JavaClassSet/J
ar/unoloader/META-INF/MANIFEST.MF && mkdir -p $I/program/classes/ && cd $W/JavaClassSet/Jar/unoloader && jar cfm $I/program/classes/unoloader.jar $W/JavaClassSet/Jar/unoloader/META-INF/MANIFEST.MF META-INF com
  && cd $W/JavaClassSet/Jar/unoloader/ && jar uf $I/program/classes/unoloader.jar module-info.class
java.util.zip.ZipException: invalid entry CRC (expected 0x85cff2ff but got 0x341ef68c)
        at java.base/java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:410)
        at java.base/java.util.zip.ZipInputStream.read(ZipInputStream.java:199)
        at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107)
        at jdk.jartool/sun.tools.jar.Main.copy(Main.java:1248)
        at jdk.jartool/sun.tools.jar.Main.update(Main.java:977)
        at jdk.jartool/sun.tools.jar.Main.run(Main.java:366)
        at jdk.jartool/sun.tools.jar.Main.main(Main.java:1680)
[builder2 at ymir unoloader]$ cat $W/JavaClassSet/Jar/unoloader/META-INF/MANIFEST.MF
Manifest-Version: 1.0
Solar-Version: 7.2.0.3
Sealed: true
[builder2 at ymir unoloader]$ unzip /home/users/builder2/rpm/BUILD/libreoffice-7.2.0.3/instdir/program/classes/unoloader.jar -d /tmp/foo
Archive:  /home/users/builder2/rpm/BUILD/libreoffice-7.2.0.3/instdir/program/classes/unoloader.jar
   creating: /tmp/foo/META-INF/
  inflating: /tmp/foo/META-INF/MANIFEST.MF   bad CRC ff00bd06  (should be 8ea870b0)
  inflating: /tmp/foo/META-INF/M
   creating: /tmp/foo/com/
   creating: /tmp/foo/com/sun/
   creating: /tmp/foo/com/sun/star/
   creating: /tmp/foo/com/sun/star/lib/
   creating: /tmp/foo/com/sun/star/lib/unoloader/
  inflating: /tmp/foo/com/sun/star/lib/unoloader/UnoClassLoader.class
  inflating: /tmp/foo/com/sun/star/lib/unoloader/UnoLoader$1.class
  inflating: /tmp/foo/com/sun/star/lib/unoloader/UnoLoader.class
[builder2 at ymir unoloader]$ cat /tmp/foo/META-INF/MANIFEST.MF
Manifest-Version: 1.0
Solar-Version: 7.2.0.3
Sealed: true
Created-By: 12.0.2 (PLD-Linux)

[builder2 at ymir unoloader]$ cksfv /tmp/foo/META-INF/MANIFEST.MF
; Generated by cksfv v1.3.14 on 2022-03-30 at 11:12.18
; Project web site: http://www.iki.fi/shd/foss/cksfv/
;
;           95  11:08.40 2022-03-30 /tmp/foo/META-INF/MANIFEST.MF
/tmp/foo/META-INF/MANIFEST.MF FF00BD06
[builder2 at ymir unoloader]$ cksfv $W/JavaClassSet/Jar/unoloader/META-INF/MANIFEST.MF
; Generated by cksfv v1.3.14 on 2022-03-30 at 11:13.49
; Project web site: http://www.iki.fi/shd/foss/cksfv/
;
;           58  11:13.38 2022-03-30 /home/users/builder2/rpm/BUILD/libreoffice-7.2.0.3/workdir/JavaClassSet/Jar/unoloader/META-INF/MANIFEST.MF
/home/users/builder2/rpm/BUILD/libreoffice-7.2.0.3/workdir/JavaClassSet/Jar/unoloader/META-INF/MANIFEST.MF E269E4CE


-- 
Jan Rękorajski                    | PLD/Linux
SysAdm | baggins<at>pld-linux.org | http://www.pld-linux.org/


More information about the pld-devel-pl mailing list