From owner-freebsd-stable@FreeBSD.ORG Tue Jul 9 10:53:23 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 71F5DAFA for ; Tue, 9 Jul 2013 10:53:23 +0000 (UTC) (envelope-from fabian@wenks.ch) Received: from batman.home4u.ch (batman.home4u.ch [IPv6:2001:8a8:1005:1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 03BBE189E for ; Tue, 9 Jul 2013 10:53:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at home4u.ch Received: from flashback.wenks.ch (fabian@flashback.wenks.ch [IPv6:2001:8a8:1005:1:223:dfff:fedf:13c9]) (authenticated bits=0) by batman.home4u.ch (8.14.5/8.14.5) with ESMTP id r69ArKKV090515 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 9 Jul 2013 12:53:20 +0200 (CEST) (envelope-from fabian@wenks.ch) Message-ID: <51DBEB9F.7020803@wenks.ch> Date: Tue, 09 Jul 2013 12:53:19 +0200 From: Fabian Wenk User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: Re: perl upgrade woes -- how to best reconcile? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jul 2013 10:53:23 -0000 Hello Chris On 09.07.2013 11:18, Chris H wrote: > How do I best sort this all out. I _really_ miss the perl_after_upgrade script, that > used to accompany this process. I also had some challenges with this perl upgrade, but I used portupgrade. In the end I created a custom script based on the output from 'portupgrade -nrf perl' which did the following: #!/usr/local/bin/bash set -e portupgrade -f lang/perl5.12 portupgrade -f converters/p5-MIME-Base64 portupgrade -f devel/p5-Test-Harness portupgrade -f devel/p5-Locale-Maketext-Simple [...] This script does abort, when a single command fails, so you see what fails and you can fix it. Eventually you will need to check dependencies and rebuild one of the ports now, which is later in the script. When the failed port did build, then remove the already done ports from the script and restart it. At the end I also did check the folders in /usr/local/lib/perl5/ for left overs in the folders from the old perl version. I then used pkg_which to find out to which port the belongs and did also a portupgrade -f for this port too. In the end everything was fine, but it took a little more effort, as I had around 235 ports to rebuild. But as long as you stay with e.g. perl 5.12.x, it is easier then before with the perl_after_upgrade script for minor updates. The next big challenge then will be the upgrade to e.g. 5.14.x or 5.16.x. bye Fabian