Switching to Perl 5.16

Rainer Müller raimue at macports.org
Mon Jul 1 10:26:09 PDT 2013


On 2013-07-01 18:30, Jeremy Huddleston Sequoia wrote:
> So then is this the correct approach we should be taking:
> 
> Index: Portfile
> ===================================================================
> --- Portfile	(revision 107485)
> +++ Portfile	(working copy)
> @@ -2,9 +2,11 @@
>  # $Id$
>  
>  PortSystem      1.0
> +PortGroup       perl5 1.0
>  
>  name            intltool
>  version         0.50.2
> +revision        1
>  maintainers     nomaintainer
>  categories      textproc gnome
>  license         GPL-2+
> @@ -31,13 +33,13 @@
>  
>  depends_build   port:gnome-common
>  depends_lib     port:expat \
> -                port:perl5.12 \
> -                port:p5.12-xml-parser \
> -                port:p5.12-getopt-long \
> -                port:p5.12-pathtools \
> -                port:p5.12-scalar-list-utils
> +                port:perl5 \
> +                port:p${perl5.major}-xml-parser \
> +                port:p${perl5.major}-getopt-long \
> +                port:p${perl5.major}-pathtools \
> +                port:p${perl5.major}-scalar-list-utils
>  
> -configure.perl  ${prefix}/bin/perl5.12
> +configure.perl  ${prefix}/bin/perl${perl5.major}

I don't think this is a viable option. Even with this change, you still
need to update the INTLTOOL_PERL environment variable in each and every
dependent port [1].

Before the change you had to do this with an explicit change in
intltool. Now this is implicitly inherited from the perl5 port group.
Nobody will remember to update dependents of intltool when changing the
perl5.major variable in the perl5 port group.

For this reason I would prefer the explicit mention of a specific perl
version in this port.

Rainer

[1] https://trac.macports.org/ticket/30937


More information about the macports-dev mailing list