[MacPorts] #46322: p5-*: consistently remove Perl versions 5.8-5.14

MacPorts noreply at macports.org
Thu Dec 25 09:17:30 PST 2014


#46322: p5-*: consistently remove Perl versions 5.8-5.14
--------------------------+--------------------------------
  Reporter:  mojca@…      |      Owner:  macports-tickets@…
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------------------

Comment (by larryv@…):

 Replying to [comment:3 mojca@…]:
 > The only change I would suggest to make is to leave out the individual
 > numbers of perl versions that need a replacement. First of all it will
 > be very difficult to figure out which versions need a replacement (we
 > would need to go through history of every Portfile and figure out
 > which subports have been replaced). And also: almost every port
 > included support for all perl versions, so we don't gain almost
 > anything by trying not to include some previously non-existing ports.

 Sure, if you think that’s best.

 > So my suggestion would be to iterate through 5.8-5.14 for every single
 > subport. There's no need to make any extra effort to try to exclude
 > some versions. After a year we can remove 5.8-5.14 and maybe introduce
 > the replacement 5.16, 5.18 ->5.22 by then.

 We can have our cake and eat it too, allowing specific versions if desired
 but defaulting to 5.8–5.14.
 {{{
 #!diff
 --- /Users/larryv/Downloads/p5-graveyard.Portfile       2014-12-25
 10:12:20.000000000 -0500
 +++ /private/tmp/p5-graveyard.Portfile  2014-12-25 12:10:26.000000000
 -0500
 @@ -16,6 +16,9 @@

  proc unknown args {
      upvar 1 replacements replacements
 +    if {[llength $args] < 3} {
 +        lappend args 5.8 5.10 5.12 5.14
 +    }
      foreach series [lassign $args port vers] {
          lassign [split $vers _] ver rev
          if {$rev eq ""} {
 @@ -30,8 +33,9 @@
      }
  }

 -io-tty                              1.120.0_1       5.8  5.10 5.12 5.14
 -wx                                  0.992.300_3     5.8  5.10 5.12 5.14
 +# SUBPORT (without "p5*-" prefix)   VERSION+REV     REPLACED SERIES
 (optional)
 +io-tty                              1.120.0_1
 +wx                                  0.992.300_3

  if {${subport} ne ${name}} {
      PortGroup obsolete 1.0
 }}}

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


More information about the macports-tickets mailing list