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

MacPorts noreply at macports.org
Thu Dec 25 01:18:02 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:
 Keywords:               |       Port:
-------------------------+--------------------------------
 Now that the default version of Perl has been switched to 5.16 everywhere,
 we are currently "randomly" and inconsistently removing Perl versions
 5.8-5.14 from ports. As a consequence many subports `p5.12-foo` probably
 don't build and users with older subports installed won't get the ports
 auto-removed.

 I'm attaching a very simple script that removes old perl versions (sorry,
 it's written in Python, not Perl, but I don't think it matters) together
 with its output diff. The diff is "problematic" in the way that Portfiles
 will probably keep changing until (if) we decide to apply the patch, but
 the script should remain functional.

 I'm also attaching a proposal for handling auto-upgrades. I would like to
 ask for feedback and opinions for that part:
 {{{
 PortSystem          1.0

 name                p5-obsolete
 version             1

 set perl_versions {
     5.8 5.10 5.12 5.14
 }
 set perl_ports {
     io-tty 1.120.0   1
     wx     0.992.300 3
 }

 foreach {perl_port port_version port_revision} ${perl_ports} {
     foreach {perl_version} ${perl_versions} {
         subport p${perl_version}-${perl_port} {
             replaced_by p5.16-${perl_port}
             PortGroup   obsolete 1.0
             version     $port_version
             revision    $port_revision
         }
     }
 }

 # TODO: disable configure, build, ...
 }}}

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


More information about the macports-tickets mailing list