[MacPorts] #64223: portgroup github: unexpected tarball_from behavior

MacPorts noreply at macports.org
Wed Dec 15 18:23:41 UTC 2021


#64223: portgroup github: unexpected tarball_from behavior
------------------------+---------------------------
 Reporter:  jasonliu--  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.7.1
 Keywords:              |       Port:  pg-github-1.0
------------------------+---------------------------
 I'm working on a new portfile, and I need to use the
 {{{github.tarball_from}}} option to retrieve the full tarball that
 includes all of the submodules. Here's what I have in my file:

 {{{
 PortGroup           github 1.0

 github.setup        mumble-voip mumble 1.3.4
 github.tarball_from releases
 }}}

 However, when I specify {{{github.tarball_from releases}}} in my portfile,
 MacPorts doesn't appear to be fetching the correct tarball. In theory,
 according to the PortGroup file, {{{github.tarball_from releases}}} should
 trigger the following URL to be set:

 {{{
 switch ${args} {
     ...
     releases {
         github.master_sites
 ${github.homepage}/releases/download/${git.branch}
     }
     ...
 }
 }}}

 If you go to the [https://github.com/mumble-voip/mumble/releases releases
 page] of the port that I'm working on, the URL on the file that I want
 fetched appears to be correct, i.e. the link for the file listed as
 "mumble-1.3.4.tar.gz" corresponds to: [https://github.com/mumble-
 voip/mumble/releases/download/1.3.4/mumble-1.3.4.tar.gz]. This file should
 be approximately 8.59 MB in size. However, the file that the MacPorts
 build system actually fetches corresponds to the [https://github.com
 /mumble-voip/mumble/archive/refs/tags/1.3.4.tar.gz Source code (tar.gz)]
 file, which is only around 4.9 MB in size. Perhaps something is wrong with
 the {{{handle_tarball_from}}} proc?

-- 
Ticket URL: <https://trac.macports.org/ticket/64223>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list