public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/zpaqfranz] rawhide: Correct idempotency check at build time
Date: Wed, 21 Oct 2026 10:59:54 GMT [thread overview]
Message-ID: <179258039425.1.4344579085563136460.rpms-zpaqfranz-0937c5f083ab@fedoraproject.org> (raw)
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
reply other threads:[~2026-10-21 10:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179258039425.1.4344579085563136460.rpms-zpaqfranz-0937c5f083ab@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox