[MacPorts] #71959: yq @4.45.1: checksum mismatch due to mishandled unversioned distfile (was: yq doeesn't seem to build on Sonoma ARM)

MacPorts noreply at macports.org
Mon Jan 27 13:02:16 UTC 2025


#71959: yq @4.45.1: checksum mismatch due to mishandled unversioned distfile
---------------------+-------------------------
  Reporter:  huyz    |      Owner:  herbygillot
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:
Resolution:          |   Keywords:
      Port:  yq      |
---------------------+-------------------------
Changes (by ryandesign):

 * owner:  (none) => herbygillot
 * status:  new => assigned
 * port:   => yq


Comment:

 This is happening because the file whose checksums didn't match for you,
 yq_man_page_only.tar.gz, is an [PortfileRecipes#unversioned-distfiles
 unversioned distfile] and the port is not taking the necessary steps to
 handle that correctly.

 When the port was [changeset:0af9a89b92a6999ed74503bf81d850e4d7f9c670
 /macports-ports updated to 4.45.1] all of the checksums were updated
 except the ones for the yq_man_page_only.tar.gz file.

 The checksums listed in the port match those of the file we mirrored, so
 if our mirror server is closer to you than a GitHub server, then you won't
 see this problem. This is why we don't see the problem on our build
 machines that are on the same network as the private distfiles mirror, but
 we did see the problem on the Apple Silicon build machine which is in a
 different location. However, the manpage the port is installing is likely
 outdated and does not match the version of the software, so this needs to
 be fixed by handling the unversioned distfile properly and increasing the
 port's revision. In fact, I checked, and the only change between the file
 we mirrored earlier and the new one is the version number:

 {{{#!diff
 --- 4.44.6/yq.1 2024-12-07 00:45:04.000000000 -0600
 +++ 4.45.1/yq.1 2025-01-11 21:27:45.000000000 -0600
 @@ -1,7 +1,7 @@
  '\" t
  .\" Automatically generated by Pandoc 2.14.2
  .\"
 -.TH "YQ" "1" "" "" "yq (https://github.com/mikefarah/yq/) version
 v4.44.6"
 +.TH "YQ" "1" "" "" "yq (https://github.com/mikefarah/yq/) version
 v4.45.1"
  .hy
  .SH NAME
  .PP
 }}}

 but we should still fix it. I'll submit a PR.

-- 
Ticket URL: <https://trac.macports.org/ticket/71959#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list