From owner-freebsd-stable@freebsd.org Fri Jan 13 16:31:17 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 84D01CAE191 for ; Fri, 13 Jan 2017 16:31:17 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 571171A38 for ; Fri, 13 Jan 2017 16:31:16 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id v0DGVEG6069254 for ; Fri, 13 Jan 2017 08:31:20 -0800 (PST) (envelope-from bsd-lists@bsdforge.com) To: In-Reply-To: References: From: "Chris H" Subject: Re: pkg upgrade problem with Perl 5.24 Date: Fri, 13 Jan 2017 08:31:20 -0800 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: <5b13bb8420bc5e6429b905bdfc4027cf@ultimatedns.net> Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2017 16:31:17 -0000 On Fri, 13 Jan 2017 15:43:41 +0000 Holger Kipp 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@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@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@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@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@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@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