From owner-freebsd-questions@FreeBSD.ORG Fri May 16 05:18:20 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 72E9C1C2 for ; Fri, 16 May 2014 05:18:20 +0000 (UTC) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) (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 3E8DD28C6 for ; Fri, 16 May 2014 05:18:19 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id s4G5IHZJ048174 for ; Thu, 15 May 2014 23:18:17 -0600 (MDT) (envelope-from ah@dreamchaser.org) Message-ID: <53759F99.6020508@dreamchaser.org> Date: Thu, 15 May 2014 23:18:17 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130730 Thunderbird/17.0.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: portmaster -af and databases/db41 References: <53752562.8010205@dreamchaser.org> <53753227.3000907@infracaninophile.co.uk> <53758D8E.1030007@dreamchaser.org> In-Reply-To: <53758D8E.1030007@dreamchaser.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Thu, 15 May 2014 23:18:17 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2014 05:18:20 -0000 >> If you have an earlier version of db41 installed, then portmaster -af >> will try and upgrade it to a later version of the db41 port, with the >> observed warning about the port being deprecated. >> >> You need to tell portmaster to replace db41 with db5 -- >> >> portmaster -o db5 db41 > > Thanks, that part worked great. > (other than it needed to be "portmaster -o databases/db5 db41") > >> and then force reinstall everything that used to depend on db41 but that >> now depends on db5 --- >> >> portmaster -fr db5 >> >> before proceeding with trying to update everything else. > > But now I'm seeing something weird. > The portmaster -fr db5 seems to be in an infinite loop, > repeatedly installing pkg.1.2.7_2 > > The following is showing up repeatedly in the stdout stream: > ===> scripts/sbin (install) > install -o root -g wheel -m 555 pkg2ng /usr/ports/ports-mgmt/pkg/work/stage/u > sr/local/sbin/pkg2ng > ====> Compressing man pages (compress-man) > > ===>>> Creating a backup package for old version pkg-1.2.7_2 > Creating package for pkg-1.2.7_2 > > Checking on the dates of the installed packages: > ~$ diff info_pkg.txt_1 info_pkg.txt_2 > 4c4 > < Installed on : Thu May 15 21:33:42 MDT 2014 > --- > > Installed on : Thu May 15 21:38:16 MDT 2014 > ~$ diff info_gettext.txt_1 info_gettext.txt_2 > 4c4 > < Installed on : Thu May 15 21:35:55 MDT 2014 > --- > > Installed on : Thu May 15 21:54:55 MDT 2014 > > Checking on the running processes: > $ ps ax | grep portmaster > 14754 v1 I+ 0:00.01 /bin/sh /usr/local/sbin/portmaster gobject-introspec > 34314 v1 I+ 0:00.01 /bin/sh /usr/local/sbin/portmaster libiconv-1.14_3 > 51555 v1 I+ 0:00.02 /bin/sh /usr/local/sbin/portmaster -fr db5 > 61302 v1 I+ 0:00.03 /bin/sh /usr/local/sbin/portmaster -o editors/openof > 61358 v1 I+ 0:00.01 /bin/sh /usr/local/sbin/portmaster atk-2.8.0 > 83679 v1 I+ 0:00.01 /bin/sh /usr/local/sbin/portmaster gettext-0.18.3.1_ > 35987 v4 S+ 0:00.00 grep portmaster > $ ps ax | grep portmaster > 14754 v1 I+ 0:00.01 /bin/sh /usr/local/sbin/portmaster gobject-introspec > 43500 v1 I+ 0:00.01 /bin/sh /usr/local/sbin/portmaster glib-2.36.3_2 > 43550 v1 S+ 0:00.01 /bin/sh /usr/local/sbin/portmaster libiconv-1.14_3 > 51555 v1 I+ 0:00.02 /bin/sh /usr/local/sbin/portmaster -fr db5 > 61302 v1 I+ 0:00.03 /bin/sh /usr/local/sbin/portmaster -o editors/openof > 61358 v1 I+ 0:00.01 /bin/sh /usr/local/sbin/portmaster atk-2.8.0 > 45220 v4 S+ 0:00.00 grep portmaster > > hints? It appears the update process is trying to upgrade pkg all the time -- when I interrupt the process, I see a lot of the following: ===>>> pkg-message for pkg-1.2.7_2 If you are upgrading from the old package format, first run: # pkg2ng but I upgraded to pkg months ago Am I correct in assuming that message shows up regardless whenever pkg is built? Then all those are followed by: ===>>> The following actions were performed: Re-installation of pkg-1.2.7_2 Re-installation of libiconv-1.14_3 Upgrade of gettext-0.18.3.1 to gettext-0.18.3.1_1 Re-installation of gmake-3.82_1 Re-installation of db5-5.3.28 Re-installation of pkg-1.2.7_2 Re-installation of libiconv-1.14_3 Re-installation of pkg-1.2.7_2 Re-installation of pkg-1.2.7_2 Re-installation of libiconv-1.14_3 Re-installation of gettext-0.18.3.1_1 Re-installation of pkg-1.2.7_2 Re-installation of libiconv-1.14_3 Re-installation of pkg-1.2.7_2 Re-installation of libiconv-1.14_3 Re-installation of pkg-1.2.7_2 Re-installation of pkg-1.2.7_2 ... Why all the multiple installations of pkg, libiconv, etc.? I thought portmaster was smart enough to not rebuild multiple times. Is there a way to get around this? It's obviously wasting a huge amount of resources. thanks, Gary