From owner-freebsd-ports@FreeBSD.ORG Wed Jul 20 08:29:35 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4CD6106564A for ; Wed, 20 Jul 2011 08:29:35 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by mx1.freebsd.org (Postfix) with SMTP id 319988FC0C for ; Wed, 20 Jul 2011 08:29:34 +0000 (UTC) Received: (qmail invoked by alias); 20 Jul 2011 08:29:33 -0000 Received: from g225211017.adsl.alicedsl.de (EHLO apollo.emma.line.org) [92.225.211.17] by mail.gmx.net (mp031) with SMTP; 20 Jul 2011 10:29:33 +0200 X-Authenticated: #428038 X-Provags-ID: V01U2FsdGVkX18swA0TcGAs/KDtpespceuZc8aws5VrFKlvb4278/ hn0uCk4jnNC308 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by apollo.emma.line.org (Postfix) with ESMTP id 8268C23D34B for ; Wed, 20 Jul 2011 10:29:31 +0200 (CEST) Message-ID: <4E2691EB.2010508@gmx.de> Date: Wed, 20 Jul 2011 10:29:31 +0200 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Mnenhy/0.8.3 Thunderbird/3.1.11 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <25825.1311120271@speakeasy.net> <4E26413A.106@FreeBSD.org> In-Reply-To: <4E26413A.106@FreeBSD.org> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: Re: a) libgcrypt b) perl X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2011 08:29:35 -0000 Am 20.07.2011 04:45, schrieb Doug Barton: > On 07/19/2011 17:04, jsb.__@speakeasy.net wrote: >> >> >> Apologies for two subjects. > > Don't apologize, just don't do it. :) > >> Disheartened by the perl 5.12.3 5.12.4 bump; I've figured how to upgrade >> (for some reason perl-after-upgrade does little on these machines), but >> the time to do so seems excessive. >> perl5/5.12.3 >> perl5/site_perl/5.12.3 >> in the past have had files remaining after upgrade. > > I can't speak intelligently about perl-after-upgrade since I've never > used it, but what I usually do to upgrade perl is: > > portmaster perl > portmaster p5- > > Then go into /usr/local/lib/perl5 and check the old directories, as you > describe below. If there are files there then I upgrade the ports that > installed them. Once that's done, I delete the old directories. I've written a Perl script (without dependencies on other ports) that can help with efficiently digging up a list of ports that installed files into particular directory, install it from ports-mgmt/pkgs_which and pass it the /usr/local/lib/perl5*.../5.12.3/ directory name, it'll give you a complete list of all packages that have installed files into that directory, and optionally a list of files not registered in the database. > Theoretically it would not be hard to write a script that does the same > thing. That's why it's mostly done. Last time I updated Perl, perl-after-upgrade left me with a rather incomplete update. I didn't have interest to debug it though and just used pkgs_which to dig up the list of packages and used portmaster to reinstall them. After that, the old-perl-version-directory didn't contain any relevant files so I could delete it. I wish that this could be automated by the various language install scripts (possibly via bsd.port.mk or a sibling thereof), but given current time constraints, I cannot do that myself.