How to upgrade perl 5.8 to 5.10?

Matthew Seaman m.seaman at infracaninophile.co.uk
Wed Jan 20 13:12:12 UTC 2010


Helmut Schneider wrote:


> ===>  perl-threaded-5.10.1 conflicts with installed package(s):
>       perl-threaded-5.8.9_3
> 
>       They install files into the same place.
>       Please remove them first with pkg_delete(1).
> *** Error code 1

Yes.  This has been the subject of some debate on the questions at ... 
list recently.  The behaviour you're seeing is the result of a recent
commit affecting the conflicts handling code in bsd.port.mk.  It now
checks for conflicts much earlier -- during the fetch and build phases of installing from a port.  Consequently the common idiom of:

   # portupgrade -o new-variant -f old-variant

will almost always result in an error as you've seen.  Many people
(myself included) think this change is not a good idea.

To work around the problem, try:

   # portupgrade -m DISABLE_CONFLICTS=yes -o lang/perl5.10 -f perl-threaded-5.8.\*

and then carry on the process as described in UPDATING by force-upgrading
all perl modules and any applications that embed a perl interpreter
(mod_perl, net-snmpd, nagios, etc)

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20100120/b2326f19/signature.pgp


More information about the freebsd-ports mailing list