Closed dtrudg closed 3 months ago
Hi @dtrudg ,
I currently package squashfs-tools-ng 1.2.0 for Fedora & EPEL: https://packages.fedoraproject.org/pkgs/squashfs-tools-ng/
In Fedora Rawhide, a mass rebuild has just occured, and the package now fails to build due to some of the
test_tar_sqfs.sh
tests failing:
The purpose of this test script was a crude attempt to catch regressions (and to some extend nondeterminism), i.e. if the on-disk layout of the filesystem changes between builds, releases unintentionally.
It replaces an older, much more extensive script, that tested all the supported compressors with a varying number of thread pool workers.
It appears that the sha512sums of the generated sqfs files are not as expected, most likely due to the switch from zlib to zlib-ng in for Fedora 40.
I guess zlib-ng compresses in a different way and produces slightly different data. I ran into similar issues with the aforementioned, more extensive script. The LZ4 and Zstd compressors kept breaking practically after every update. The zlib/xz compressors looked fairly stable by comparison, so the test_tar_sqfs.sh
quick test script uses that.
I'm unclear, though, what might be an appropriate upstream PR I could attempt to work up... if one would be welcome?
I guess it's probably best to remove this test altogether. It's simply not a great idea to expect a compressor to produce an exact result.
Thanks again for your efforts on the tools!
Thanks for taking the effort to package this!
I currently package squashfs-tools-ng 1.2.0 for Fedora & EPEL: https://packages.fedoraproject.org/pkgs/squashfs-tools-ng/
In Fedora Rawhide, a mass rebuild has just occured, and the package now fails to build due to some of the
test_tar_sqfs.sh
tests failing:It appears that the sha512sums of the generated sqfs files are not as expected, most likely due to the switch from zlib to zlib-ng in for Fedora 40.
https://fedoraproject.org/wiki/Changes/ZlibNGTransition
My current thinking in the short term is that in the Fedora packaging I can patch the expected shasums, having done some manual verification that the files using zlib-ng are equivalent.
I'm unclear, though, what might be an appropriate upstream PR I could attempt to work up... if one would be welcome?
Thanks again for your efforts on the tools!