From owner-freebsd-pkg@FreeBSD.ORG Thu Apr 16 08:08:01 2015 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DCC50935 for ; Thu, 16 Apr 2015 08:08:01 +0000 (UTC) Received: from relay2.tomsk.ru (mail.sibptus.tomsk.ru [212.73.124.5]) by mx1.freebsd.org (Postfix) with ESMTP id 42E01F59 for ; Thu, 16 Apr 2015 08:08:00 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.98.5_1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru ([212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.16) with ESMTPS id 38635053 for freebsd-pkg@freebsd.org; Thu, 16 Apr 2015 14:07:57 +0600 Received: from admin.sibptus.TOMSK.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.9/8.14.7) with ESMTP id t3G87tCk019876 for ; Thu, 16 Apr 2015 14:07:57 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.TOMSK.ru (8.14.9/8.14.7/Submit) id t3G87snX019875 for freebsd-pkg@freebsd.org; Thu, 16 Apr 2015 14:07:54 +0600 (NOVT) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.TOMSK.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Thu, 16 Apr 2015 14:07:54 +0600 From: Victor Sudakov To: freebsd-pkg@freebsd.org Subject: Re: perl version woe Message-ID: <20150416080754.GA18442@admin.sibptus.tomsk.ru> References: <20150416042738.GA99219@admin.sibptus.tomsk.ru> <552F5FF3.7090908@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <552F5FF3.7090908@FreeBSD.org> Organization: OAO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2015 08:08:02 -0000 Matthew Seaman wrote: > On 16/04/2015 05:27, Victor Sudakov wrote: > > I have changed the origin of the perl package with > > "pkg set -o lang/perl5.16:lang/perl5.18", so now it's > > > > [root@gw ~] pkg info -xo perl > > perl5.16-5.16.3_20 lang/perl5.18 > > > > Why does pkg still suggest installing perl5 while I already have it? > > Because the packaging system recently (ie. in the last several months) > changed from using the port origin to using the port /name/ as the > unique key in the package database. 'pkg set -o' now has an equivalent > 'pkg set -n' to switch the name of a dependency. Which is as yet > completely undocumented in pkg-set(8)... Which means, instead of "pkg set -o" I should now say what? > > Also, with recent versions of pkg, all this faffing about with 'pkg set' > is completely unnecessary. If you want to switch to a different version > of perl, point your pkg(8) at a repo built with the version of perl you > want and upgrade. It's as easy as that. I am an old FreeBSD fan, admin since 2.1.7, and user since 1.1.5.1. I am afraid, and for a good reason. I fear that if I just run "pkg upgrade" now, I will end up with two perls one of which is a phantom package, and will have to manually cleanup or reinstall everything. I have already found myself in such a fix more than once. > > If you're using portmaster or similar, you'll need to do something more > involved, but it will boil down to setting the default version for perl > in your /etc/make.conf and then reinstalling anything that puts compiled > object files somewhere under ${LOCALBASE}/lib/perl5 (ie. perl-XS stuff, > but not pure perl code.) In fact, I have adopted a system which has been kept fairly recent with portmaster (but they kept perl5.16 during portmaster runs, there was an +IGNOREME file). Now I want to switch this system to my own repository, which currently has perl 5.18 as a default. Do you mean to say, I should be able to safely run "pkg upgrade" and pkg will resolve this for me? I'd better try on a copy of the system. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru