On 30.03.2022 12:53, Jan Rękorajski wrote:
> 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@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)

https://github.com/madler/zlib/issues/613

working on reproducer. as a workaround please downgrade zlib to 1.2.11
on builders.
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to