[MacPorts] #70535: libqb: checksum mismatch
MacPorts
noreply at macports.org
Mon Aug 12 06:27:58 UTC 2024
#70535: libqb: checksum mismatch
---------------------------+-------------------------
Reporter: barracuda156 | Owner: herbygillot
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.0
Resolution: | Keywords:
Port: libqb |
---------------------------+-------------------------
Comment (by ryandesign):
The difference between the file we mirrored and the one on GitHub now is:
{{{#!diff
diff -ru macports/libqb-2.0.8/configure.ac github/libqb-2.0.8/configure.ac
--- macports/libqb-2.0.8/configure.ac 2023-07-21 06:30:39.000000000
-0500
+++ github/libqb-2.0.8/configure.ac 2023-07-21 06:30:39.000000000
-0500
@@ -6,7 +6,7 @@
dnl inject zero as a "patch" component of the version if missing in tag;
dnl care to bump "X.Y.Z-yank" template below upon each release very
desirable
AC_INIT([libqb],
- m4_esyscmd([build-aux/git-version-gen $(echo '002171bbc??HEAD ->
main, tag: v2.0.8'\
+ m4_esyscmd([build-aux/git-version-gen $(echo '002171bbc??tag:
v2.0.8'\
| sed -ne 's/^[$]Format:[^$]*[$]$/.tarball-
version/p;tend'\
-e 's/.*tag: v\([^, ][^, ]*\).*/\1-yank/;tv'\
-e
's/^\([[:xdigit:]][[:xdigit:]]*\).*/1.9.0-yank\1/'\
}}}
In the repository, line 9 of configure.ac contains:
{{{
m4_esyscmd([build-aux/git-version-gen $(echo '$Format:%h??%D$'\
}}}
That placeholder is evidently replaced by git when `git archive` is run
with information about what refs point to this commit. When the archive
was made, HEAD/main pointed to it, in addition to the v2.0.8 tag; now that
HEAD has advanced, only v2.0.8 points to it.
This is another demonstration of why automatically generated tarballs
should not be used. This project provides manually-created release
tarballs so we should be using those instead.
--
Ticket URL: <https://trac.macports.org/ticket/70535#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list