Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 May 2014 23:18:17 -0600
From:      Gary Aitken <ah@dreamchaser.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: portmaster -af and databases/db41
Message-ID:  <53759F99.6020508@dreamchaser.org>
In-Reply-To: <53758D8E.1030007@dreamchaser.org>
References:  <53752562.8010205@dreamchaser.org> <53753227.3000907@infracaninophile.co.uk> <53758D8E.1030007@dreamchaser.org>

next in thread | previous in thread | raw e-mail | index | archive | help

>> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53759F99.6020508>