portmaster is not always recursive

Miroslav Lachman 000.fbsd at quip.cz
Wed Aug 19 23:53:14 UTC 2009


Doug Barton wrote:
> Miroslav Lachman wrote:
> 
>>Doug Barton wrote:
>>
>>>Miroslav Lachman wrote:
>>
>>[...]
>>
>>
>>>>I have seen similar problem in the past with amavisd-new + spamassassin
>>>>and their dependencies, but it is much bigger and complicated tree of
>>>>dependencies and I have not evidence recorded for it.
>>>>Reported case with jpeg / gd / png is the simplest one I have seen.
>>>
>>>
>>>Were these other cases also with the -r option, or were they when
>>>doing "regular" upgrades?
>>
>>It was with regular upgrade, if I remember it well, but it was some time
>>ago... I'll track it better next time (if it occurs).
> 
> 
> If it's failing on a regular upgrade I start to suspect weirdness in
> your local setup since that's a dead-simple thing that would be very
> hard for portmaster to get wrong. I'm also suspicious because I took a
> look at the code a couple times yesterday and even using -r each port
> should still be getting the full treatment, which includes upgrading
> dependencies as needed.
> 
> I will however put some more time into testing it today and get back
> to you.

I found machine with old jpeg, gd, png and tried
portmaster -r jpeg-6b_7 ... and the result is the same - PNG was not 
upgraded.

Here comes the executed commands:

root at lite ~/# portsnap fetch update && pkg_version -IvL =
Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found.
Fetching snapshot tag from portsnap1.FreeBSD.org... done.
Latest snapshot on server matches what we already have.
No updates needed.
Ports tree is already up to date.
gd-2.0.35,1                   <   needs updating (index has 2.0.35_1,1)
jpeg-6b_7                     <   needs updating (index has 7)
m4-1.4.12,1                   <   needs updating (index has 1.4.13,1)
mrtg-2.16.2,1                 <   needs updating (index has 2.16.2_1,1)
mysql-server-5.0.77_1         <   needs updating (index has 5.0.84)
p5-Compress-Raw-Bzip2-2.019   <   needs updating (index has 2.020)
p5-Compress-Raw-Zlib-2.019    <   needs updating (index has 2.020)
p5-Digest-1.15_1              <   needs updating (index has 1.16)
p5-ExtUtils-CBuilder-0.24     <   needs updating (index has 0.2603)
p5-ExtUtils-ParseXS-2.19_1    <   needs updating (index has 2.20)
p5-File-Temp-0.21             <   needs updating (index has 0.22)
p5-Geography-Countries-1.4    <   needs updating (index has 2009041301)
p5-HTML-Parser-3.61           <   needs updating (index has 3.62)
p5-IO-Socket-SSL-1.26         <   needs updating (index has 1.27)
p5-IO-Zlib-1.09               <   needs updating (index has 1.10)
p5-Module-Build-0.32          <   needs updating (index has 0.34)
p5-Net-IP-1.25                <   needs updating (index has 1.25_1)
p5-Net-SSLeay-1.35_1          <   needs updating (index has 1.35_2)
p5-PathTools-3.2900           <   needs updating (index has 3.3000)
p5-Scalar-List-Utils-1.20,1   <   needs updating (index has 1.21,1)
p5-Storable-2.18              <   needs updating (index has 2.21)
p5-Test-Deep-0.104            <   needs updating (index has 0.106)
p5-Test-Simple-0.86           <   needs updating (index has 0.92)
p5-URI-1.38                   <   needs updating (index has 1.40)
p5-YAML-0.68                  <   needs updating (index has 0.70)
p5-libwww-5.828               <   needs updating (index has 5.831)
phpMyAdmin-3.2.0.1            <   needs updating (index has 3.2.1)
png-1.2.35                    <   needs updating (index has 1.2.38)
portupgrade-2.4.6_2,2         <   needs updating (index has 2.4.6_3,2)
postfix-2.6.1_1,1             <   needs updating (index has 2.6.3,1)
python-2.5,2                  <   needs updating (index has 2.6,2)
python25-2.5.4_1              <   needs updating (index has 2.5.4_2)
roundcube-0.2.1,1             <   needs updating (index has 0.2.2,1)
ruby+nopthreads-1.8.7.160_3,1 <   needs updating (index has 1.8.7.160_4,1)
smartmontools-5.38_3          <   needs updating (index has 5.38_6)
stunnel-4.26                  <   needs updating (index has 4.27)
unrar-3.80,5                  <   needs updating (index has 3.90.b4,5)
vim-lite-7.2.209              <   needs updating (index has 7.2.239)


root at lite ~/# pkg_info -rR jpeg-6b_7
Information for jpeg-6b_7:

Depends on:
Required by:
mrtg-2.16.2,1
gd-2.0.35,1
php5-gd-5.2.10
php5-extensions-1.3



root at lite ~/# pkg_tree -v gd-2.0.35,1
gd-2.0.35,1
|\__ png-1.2.35
|\__ jpeg-6b_7
|\__ pkg-config-0.23_1
  \__ freetype2-2.3.9_1
        \__ pkg-config-0.23_1


root at lite ~/# pkg_info -rR png-1.2.35
Information for png-1.2.35:

Depends on:
Required by:
mrtg-2.16.2,1
gd-2.0.35,1
php5-gd-5.2.10
php5-extensions-1.3


root at lite ~/# portmaster -r jpeg-6b_7

===>>> Done displaying pkg-message files
===>>> The following actions were performed:
         Upgrade of jpeg-6b_7 to jpeg-7
         Upgrade of gd-2.0.35,1 to gd-2.0.35_1,1
         Upgrade of mrtg-2.16.2,1 to mrtg-2.16.2_1,1
         Re-installation of php5-extensions-1.3
         Re-installation of php5-gd-5.2.10




root at lite ~/# pkg_version -vL =
m4-1.4.12,1                     <   needs updating (port has 1.4.13,1)
mysql-server-5.0.77_1           <   needs updating (port has 5.0.84)
p5-Compress-Raw-Bzip2-2.019     <   needs updating (port has 2.020)
p5-Compress-Raw-Zlib-2.019      <   needs updating (port has 2.020)
p5-Digest-1.15_1                <   needs updating (port has 1.16)
p5-ExtUtils-CBuilder-0.24       <   needs updating (port has 0.2603)
p5-ExtUtils-ParseXS-2.19_1      <   needs updating (port has 2.20)
p5-File-Temp-0.21               <   needs updating (port has 0.22)
p5-Geography-Countries-1.4      <   needs updating (port has 2009041301)
p5-HTML-Parser-3.61             <   needs updating (port has 3.62)
p5-IO-Socket-SSL-1.26           <   needs updating (port has 1.27)
p5-IO-Zlib-1.09                 <   needs updating (port has 1.10)
p5-Module-Build-0.32            <   needs updating (port has 0.34)
p5-Net-IP-1.25                  <   needs updating (port has 1.25_1)
p5-Net-SSLeay-1.35_1            <   needs updating (port has 1.35_2)
p5-PathTools-3.2900             <   needs updating (port has 3.3000)
p5-Scalar-List-Utils-1.20,1     <   needs updating (port has 1.21,1)
p5-Storable-2.18                <   needs updating (port has 2.21)
p5-Test-Deep-0.104              <   needs updating (port has 0.106)
p5-Test-Simple-0.86             <   needs updating (port has 0.92)
p5-URI-1.38                     <   needs updating (port has 1.40)
p5-YAML-0.68                    <   needs updating (port has 0.70)
p5-libwww-5.828                 <   needs updating (port has 5.831)
phpMyAdmin-3.2.0.1              <   needs updating (port has 3.2.1)
png-1.2.35                      <   needs updating (port has 1.2.38)
portupgrade-2.4.6_2,2           <   needs updating (port has 2.4.6_3,2)
postfix-2.6.1_1,1               <   needs updating (port has 2.6.3,1)
python25-2.5.4_1                <   needs updating (port has 2.5.4_2)
roundcube-0.2.1,1               <   needs updating (port has 0.2.2,1)
ruby+nopthreads-1.8.7.160_3,1   <   needs updating (port has 1.8.7.160_4,1)
smartmontools-5.38_3            <   needs updating (port has 5.38_6)
stunnel-4.26                    <   needs updating (port has 4.27)
unrar-3.80,5                    <   needs updating (port has 3.90.b4,5)
vim-lite-7.2.209                <   needs updating (port has 7.2.239)


root at lite ~/# pkg_tree -v gd-2.0.35_1,1
gd-2.0.35_1,1
|\__ png-1.2.35
|\__ jpeg-7
|\__ pkg-config-0.23_1
  \__ freetype2-2.3.9_1
        \__ pkg-config-0.23_1


root at lite ~/# pkg_info -rR jpeg-7
Information for jpeg-7:

Depends on:
Required by:
gd-2.0.35_1,1
mrtg-2.16.2_1,1
php5-extensions-1.3
php5-gd-5.2.10



I have seen message from portmaster saying
===>>> Launching child to update png-1.2.35 to png-1.2.38
but upgrade did not happend, so I tried it again and save the whole 
output to pastebin http://pastebin.ca/1535736

As you can see on line 19, portmaster knows about png, so I do not 
understand why png was not upgraded.

I left the machine in this state, so I can try what ever you suggest to 
resolve this issue.

Miroslav Lachman


More information about the freebsd-ports mailing list