pkg upgrade problem with Perl 5.24
Chris H
bsd-lists at bsdforge.com
Fri Jan 13 16:31:17 UTC 2017
On Fri, 13 Jan 2017 15:43:41 +0000 Holger Kipp <Holger.Kipp at alogis.com> wrote
> Dear all,
>
> I upgraded Perl to 5.24(1.r4_1) (via pkg upgrade).
> When I now try to install the latest version from ports (1.r5_1), the system
> can’t install the new version because of the older version, but can’t
> deinstall(*) the older version (eg. via make deinstall && make reinstall).
>
>
>
> root at gw2:/usr/ports/lang/perl5.24 # pkg info | grep perl
> p5-Data-Dumper-2.161 Stringified perl data structures, suitable for
> both printing and eval p5-Pg-2.1.1_4,1 Interface for using
> perl5 to access PostgreSQL databases p5-Scalar-List-Utils-1.45,1 Perl
> subroutines that would be nice to have in the perl core perl5-5.24.1.r4_1
> Practical Extraction and Report Language
>
> so currently via pkg upgrade I got perl5-5.24.1.r4_1, which perl itself
> confirms: root at gw2:/usr/ports/lang/perl5.24 # perl -v
>
> This is perl 5, version 24, subversion 1 (v5.24.1) built for
> amd64-freebsd-thread-multi (with 1 registered patch, see perl -V for more
> detail)
>
> This is then obviously the version from FreeBSD repository.
>
> If I try to install the latest version from ports (perl5-5.24.1.r5_1), I get
> the following (make install just to get the messages):
>
>
> root at gw2:/usr/ports/lang/perl5.24 # make install
> ===> Installing for perl5.24-5.24.1.r5_1
> ===> Checking if perl5.24 already installed
> ===> Registering installation for perl5.24-5.24.1.r5_1
> Installing perl5.24-5.24.1.r5_1...
> pkg-static: perl5.24-5.24.1.r5_1 conflicts with perl5-5.24.1.r4_1 (installs
> files into the same place). Problematic file: /usr/local/bin/perl5.24.1
> *** Error code 70
>
> Stop.
> make[1]: stopped in /usr/ports/lang/perl5.24
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/lang/perl5.24
>
>
> Deinstalling the existing version does not work:
>
> root at gw2:/usr/ports/lang/perl5.24 # make deinstall
> ===> Deinstalling for perl5.24
> ===> perl5.24 not installed, skipping
>
> But according to pkg info it is installed:
>
> root at gw2:/usr/ports/lang/perl5.24 # pkg info perl5
> perl5-5.24.1.r4_1
> Name : perl5
> Version : 5.24.1.r4_1
> Installed on : Thu Jan 12 12:51:03 2017 CET
> Origin : lang/perl5.24
>
>
> This sees to be a bit strange.
>
> (*) I have now removed the package using pkg delete -f -n perl5-5.24.1.r4_1
> and was then able to install from ports without problems:
>
> root at gw2:/usr/ports/lang/perl5.24 # pkg info perl5.24-5.24.1.r5_1
> perl5.24-5.24.1.r5_1
> Name : perl5.24
> Version : 5.24.1.r5_1
> Installed on : Thu Jan 12 17:53:45 2017 CET
> Origin : lang/perl5.24
>
>
> Any ideas what happened here? I’m not sure if this is expected behaviour.
>
> Many thanks and best regards,
> Holger
As a general rule:
install from pkg(8) remove with pkg(8)
install from ports(7), remove with ports(7)
That said; I didn't notice any evidence of which version of
FreeBSD, you're running (uname -a) --
It's important where Perl is concerned.
How about make.conf(5)? Anything interesting in there;
DEFAULT_VERSIONS+=
or
WITH_PKGNG=
HTH
--Chris
More information about the freebsd-stable
mailing list