[MacPorts] #55939: reclaim does not support distfile tags

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #55939: reclaim does not support distfile tags

MacPorts
#55939: reclaim does not support distfile tags
------------------------+--------------------
 Reporter:  ryandesign  |      Owner:
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  base        |    Version:  2.4.99
 Keywords:              |       Port:
------------------------+--------------------
 `port reclaim` does not support tags -- the labels that can be added after
 a colon to `distfiles` and `master_sites` values to group them.

 A port might specify its distfiles as:

 {{{
 distfiles           foo.tar.gz:foosite \
                     bar.tar.gz:barsite
 }}}

 This means "download the file 'foo.tar.gz' from the site with the tag
 'foosite' and the file 'bar.tar.gz' from the site with the tag 'barsite'".
 Such a port would then specify its `master_sites` as:

 {{{
 master_sites        https://foo.example.com/fooproject/:foosite \
                     https://bar.example.com/barproject/:barsite
 }}}

 This would cause MacPorts to download the files
 !https://foo.example.com/fooproject/foo.tar.gz and
 !https://bar.example.com/barproject/bar.tar.gz.

 `port reclaim` is not aware of this feature; it just uses each element of
 `distfiles` literally. So it checks the disk for the files
 "foo.tar.gz:foosite" and "bar.tar.gz:barsite", which of course don't
 exist.

 Implementing support for tags requires using the procedures `getdistsite`
 and `getdisttag` from [browser:macports-base/src/port1.0/portutil.tcl
 portutil.tcl]. Take a look at the other places in base that use these
 procedures.

--
Ticket URL: <https://trac.macports.org/ticket/55939>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55939: reclaim does not support distfile tags

MacPorts
#55939: reclaim does not support distfile tags
-------------------------+--------------------
  Reporter:  ryandesign  |      Owner:  raimue
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  base        |    Version:  2.4.99
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+--------------------
Changes (by raimue):

 * status:  new => closed
 * owner:  (none) => raimue
 * resolution:   => fixed


Comment:

 In [changeset:"3ad97625cc57d26e333dcdf06dc0d932f002056a/macports-base"
 3ad97625cc57d26e333dcdf06dc0d932f002056a/macports-base]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-base"
 revision="3ad97625cc57d26e333dcdf06dc0d932f002056a"
 reclaim: Split distfile into filename and disttag

 Closes: https://trac.macports.org/ticket/55939
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55939#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55939: reclaim does not support distfile tags

MacPorts
In reply to this post by MacPorts
#55939: reclaim does not support distfile tags
-------------------------+----------------------------
  Reporter:  ryandesign  |      Owner:  raimue
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:  MacPorts 2.5.0
 Component:  base        |    Version:  2.4.99
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+----------------------------
Changes (by raimue):

 * milestone:   => MacPorts 2.5.0


--
Ticket URL: <https://trac.macports.org/ticket/55939#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55939: reclaim does not support distfile tags

MacPorts
In reply to this post by MacPorts
#55939: reclaim does not support distfile tags
-------------------------+----------------------------
  Reporter:  ryandesign  |      Owner:  raimue
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:  MacPorts 2.5.0
 Component:  base        |    Version:  2.4.99
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+----------------------------

Comment (by raimue):

 In [changeset:"22dd6dd58c7440886a681514cb866ef4e3b5db01/macports-base"
 22dd6dd58c7440886a681514cb866ef4e3b5db01/macports-base]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-base"
 revision="22dd6dd58c7440886a681514cb866ef4e3b5db01"
 reclaim: Split distfile into filename and disttag

 Closes: https://trac.macports.org/ticket/55939
 (cherry picked from commit 3ad97625cc57d26e333dcdf06dc0d932f002056a)
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55939#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55939: reclaim does not support distfile tags

MacPorts
In reply to this post by MacPorts
#55939: reclaim does not support distfile tags
-------------------------+----------------------------
  Reporter:  ryandesign  |      Owner:  raimue
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:  MacPorts 2.4.4
 Component:  base        |    Version:  2.4.99
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+----------------------------
Changes (by ryandesign):

 * milestone:  MacPorts 2.5.0 => MacPorts 2.4.4


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