Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Nov 2016 17:59:40 +0000
From:      Frank Shute <frank@woodcruft.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: After perl upgrade: "Can't locate XML/Parser.pm in @INC"
Message-ID:  <20161108175939.GB8641@lime.woodcruft.co.uk>
In-Reply-To: <20161108160028.itnzzfiemvib7hh3@box-hlm-03.niklaas.eu>
References:  <20161108152744.uqbrbhfbkctd5n7l@box-hlm-03.niklaas.eu> <20161108153755.GA8641@lime.woodcruft.co.uk> <20161108160028.itnzzfiemvib7hh3@box-hlm-03.niklaas.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 08, 2016 at 05:00:29PM +0100, Niklaas Baudet von Gersdorff via freebsd-questions wrote:
>
> Frank Shute [2016-11-08 15:37 +0000] :
> 
> > I'm guessing you probably didn't see the instructions in
> > /usr/ports/UPDATING about upgrading perl to 5.24 so you've ended up with 2
> > versions of Parser and 2 versions of perl.
> 
> In UPDATING it says:
> 
>   20161103:
>     AFFECTS: users of lang/perl5*
>     AUTHOR: mat@FreeBSD.org
> 
>     The default Perl version has been switched to Perl 5.24.  If you are
>     using binary packages to upgrade your system, you do not have anything
>     to do, pkg upgrade will do the right thing.  For the other people,
>     assuming you are migrating from 5.20 to 5.24, do:
> 
>     First, add to /etc/make.conf:
> 
>     DEFAULT_VERSIONS+=  perl5=5.24
> 
>     Portupgrade users:
>     portupgrade -o lang/perl5.24 -f lang/perl5.20
> 
>       You can now remove the DEFAULT_VERSIONS line added earlier
>       from /etc/make.conf
> 
>       Then you will need to rebuild everything that uses libperl.so, you
>       can do so with:
> 
>     portupgrade -f `pkg shlib -qR libperl.so.5.20`
> 
>     Portmaster users:
>     portmaster -o lang/perl5.24 lang/perl5.20
> 
>       You can now remove the DEFAULT_VERSIONS line added earlier
>       from /etc/make.conf
> 
>       Then you will need to rebuild everything that uses libperl.so, you
>       can do so with:
> 
>     portmaster -f `pkg shlib -qR libperl.so.5.20`
> 
> Since I'm using binary packages, I thought I "do not have
> anything to do". :-)
> 
> While I build some packages with poudriere, perl is one of those
> that I get from the official repository:
> 
>   $ pkg info perl5 | grep repository
> 
> 	repository     : FreeBSD
> 
>   $ pkg info perl5.24 | grep repository
> 
> 	repository     : FreeBSD
> 
> So, still, I don't need to do anything, do I?
> 
>     Niklaas


Hi Niklaas,


I'd follow the advice that Matthew has given you in this thread and you'll be
unlikely to go far wrong.

With regards to mixing packages built with poudriere and those from the
official repository; I think that's all very well if you accept the default
options in poudriere. Once you start choosing your own options with poudriere
you're going to end up in knots because you're likely to end up in dependency
hell.

My advice: stick with either packages from the official repositories or from
poudriere but not both.

Personally, I now just stick with poudriere and configure the ports with my
own options. Even though this machine (my strongest) isn't anything
sensational: i5, 16GB, 80GB SSD, it still manages to build 542 ports/packages
with plenty to spare and I can also distribute the packages to weaker hardware
via http.


Regards,

-- 

Frank

https://woodcruft.co.uk/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161108175939.GB8641>