public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/zpaqfranz] rawhide: Correct idempotency check at build time
@ 2026-10-21 10:59
0 siblings, 0 replies; only message in thread
From: @ 2026-10-21 10:59 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/zpaqfranz
Branch : rawhide
Commit : 0937c5f083abda46524b24205caf5cf0419303a6
Author : Petr Písař <ppisar@redhat.com>
Date : 2026-10-21T12:51:35+02:00
Stats : +13/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/zpaqfranz/c/0937c5f083abda46524b24205caf5cf0419303a6?branch=rawhide
Log:
Correct idempotency check at build time
"./zpaqfranz v" does not check against decompressed content. It checks
file system files against checksums stored in the archive. We could
use "./zpaqranz pp -verify" instead, but that would still assume that
zpaqfranz's verification is flawless. Rather compare the file identity
with independent tools.
See <https://github.com/fcorbelli/zpaqfranz/issues/338> for
explanation of the zpaqfranz's commands.
---
diff --git a/zpaqfranz.spec b/zpaqfranz.spec
index de0cd02..58576e5 100644
--- a/zpaqfranz.spec
+++ b/zpaqfranz.spec
@@ -21,7 +21,7 @@
Name: zpaqfranz
Epoch: 1
Version: 65.13
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Advanced multiversioned archiver with hardware acceleration
# LICENSE: MIT text
# man/LICENSE: Unlicense text
@@ -100,6 +100,9 @@ BuildRequires: pkgconfig(mbedx509)
# rpm-build for elfdeps tool
BuildRequires: rpm-build
BuildRequires: sed
+# Tests:
+# diffutils for cmp
+BuildRequires: diffutils
# libdivsufsort-lite-2.00 is bundled to libzpaq.cpp from
# <https://libdivsufsort.googlecode.com/files/libdivsufsort-lite.zip> that
# is simplified version of
@@ -190,7 +193,12 @@ pod2man --utf8 man/zpaqfranz.pod man/zpaqfranz.1
./zpaqfranz autotest
# Test compress-decopress idempotency
./zpaqfranz a test.zpaq LICENSE
-./zpaqfranz v test.zpaq
+mkdir testdir
+pushd testdir
+../zpaqfranz e ../test.zpaq
+popd
+cmp LICENSE testdir/LICENSE
+rm -r test.zpaq testdir
%install
install -m 0755 -D -t %{buildroot}%{_bindir} zpaqfranz
@@ -203,6 +211,9 @@ install -m 0644 -D -t %{buildroot}%{_mandir}/man1 man/zpaqfranz.1
%{_mandir}/man1/zpaqfranz.1*
%changelog
+* Wed Oct 21 2026 Petr Pisar <ppisar@redhat.com> - 1:65.13-2
+- Correct idempotency check at build time
+
* Wed Oct 21 2026 Petr Pisar <ppisar@redhat.com> - 1:65.13-1
- 65.13 bump
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-21 10:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-21 10:59 [rpms/zpaqfranz] rawhide: Correct idempotency check at build time
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox