Solved Upgrading packages, perl conflict problem

Hi,

Since I did a 9.x -> 10.1 upgrade, I am rebuilding ports, even if they were quite up-to-date.

I get this strange error with perl:

Code:
====> Compressing man pages (compress-man)
===> Installing for perl5-5.18.4_17
===> Checking if perl5 already installed
===> Registering installation for perl5-5.18.4_17 as automatic
Installing perl5-5.18.4_17...
pkg-static: perl5-5.18.4_17 conflicts with perl5.18-5.18.4_17 (installs
files into the same place). Problematic file:
/usr/local/share/licenses/perl5-5.18.4_17/catalog.mk
*** Error code 70

Stop.
make[3]: stopped in /usr/ports/lang/perl5.18
*** Error code 1

I did try this:
sudo portupgrade -f -o lang/perl5.18 lang/perl5.18

Which succeeds, but then when I try to build e.g. gcc, I get the perl problem again.

What is the issue? It looks as if the "same" version of perl conflicts with itself, I hoped to solve this with the portupgrade -f -o issue, but not. If it did replace, why am I getting this anyway? Or am I misreading the issue?

R
 
since i did a 9.x -> 10.1 upgrade, I am rebuilding ports, even if they were quite up-to-date.
After a major version upgrade you must rebuild all ports, regardless if they're up-to-date or not.

Also note, the default Perl version is 5.20.
 
Yes Sir, I rebuilt them all ( portupgrade -fay), but some had failures so I am attempting to rebuild certain specific ones.

If the default perl version is 5.20, why I am getting this weird error? It seems it rebuilds 5.18 to replace 5.18, not 5.20 with 5.18.

Would you perhaps suggest doing:

portupgrade -f -o lang/perl5.18 lang/perl5.20
 
Always read /usr/ports/UPDATING before updating anything. Sometimes ports need to be updated in a specific order or have some special instructions. A portupgrade -a won't take this into account.

And strictly speaking, from a ports tree point-of-view, the upgrade from Perl 5.18 to 5.20 isn't an upgrade. They're two different ports. Instructions on how to correctly upgrade it are also in /usr/ports/UPDATING.
 
Back
Top