Upgrading perl from 5.12 to 5.16?

Johannes Kastl mail at ojkastl.de
Mon May 27 11:33:45 PDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone,

sorry if this is an old one, but I could not find a short answer anywhere.

Background:

I wanted to upgrade my perl installation from 5.12 to 5.16.
force-deactivating perl5 and reinstalling with +perl5_16 variant
worked, I though.

But "port info perl5" or "port variants perl5" still did not show
anything about 5_16 being the selected variant:

> port variant perl5 perl5 has the variants: perl5_10: use perl 5.10 
> * conflicts with perl5_12 perl5_14 perl5_16 perl5_8 [+]perl5_12:
> use perl 5.12 * conflicts with perl5_10 perl5_14 perl5_16 perl5_8 
> perl5_14: use perl 5.14 * conflicts with perl5_10 perl5_12 perl5_16
> perl5_8 perl5_16: use perl 5.16 * conflicts with perl5_10 perl5_12
> perl5_14 perl5_8 perl5_8: use perl 5.8 * conflicts with perl5_10
> perl5_12 perl5_14 perl5_16

> port info perl5 perl5 @5.12.4 (lang) Variants:
> perl5_10, [+]perl5_12, perl5_14, perl5_16, perl5_8
> 
> Description:          Wrapper port for perl 5.x Homepage:
> http://www.perl.org/
> 
> Library Dependencies: perl5.12 Platforms:            darwin,
> freebsd, linux License:              BSD Maintainers:
> ricci at macports.org, mcalhoun at macports.org

So I uninstalled everything that had perl as dependency, uninstalled
perl5, installed perl5.16, reinstalled perl5, and got the same infos
as listed above.

But /opt/local/bin/perl points to the right place,
/opt/local/bin/perl5.16. So I guess it worked.

After that I figured out that the installed variants are only shown in
"port installed perl5", which shows:
> The following ports are currently installed: perl5
> @5.12.4_0+perl5_16 (active)


QUESTIONS:

1. Is there a right way to change from perl 5.12 to 5.16 (and 5.18 or
5.20 in the future)?

2. How to upgrade the p5-* ports? Is there a short command, or do I
have to do multiple greps, akws and seds to get from e.g.
p5.12-image-exiftool to p5.16-image-exiftool?

Thanks in advance, and sorry if this is warming up an old discussion...

Regards,
Johannes
- -- 
When you say "I wrote a program that crashed Windows", people just
stare at you blankly and say "Hey, I got those with the system, *for
free*".
(Linus Torvalds)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Darwin)
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/

iEUEARECAAYFAlGjpwkACgkQzi3gQ/xETbLwjgCXWDgNqszctvTAhi/nJms9+fJ/
cwCdEOVGBGvD00Wm4hnC45G/wMIk3Ww=
=V2Z2
-----END PGP SIGNATURE-----


More information about the macports-users mailing list