portmaster is not always recursive

Miroslav Lachman 000.fbsd at quip.cz
Sat Aug 29 17:36:09 UTC 2009


Doug Barton wrote:
> Miroslav Lachman wrote:

[...]

>>I can confirm that bug was fixed in 2.10, it passed my test with -r
>>jpeg-7 ;)
> 
> 
> Also good news. :)  I'm actually pretty confident at this point that
> this bug was the cause of most, if not all of the "oops, portmaster
> missed a dependency update" problems that other users have reported
> but have never been able to give me the info I needed to reproduce.

I have another case, where portmaster did not update dependency.

I started with the following list of available updates

root at elsa ~/# portmaster fetch update && pkg_version -vIL =
apache-2.2.11_7               <  needs updating (index has 2.2.13)
courier-imap-4.5.0,2          <  needs updating (index has 4.5.1,2)
freetds-0.64_3,1              <  needs updating (index has 0.64_4,1)
gd-2.0.35,1                   <  needs updating (index has 2.0.35_1,1)
help2man-1.36.4_2             <  needs updating (index has 1.36.4_3)
isc-dhcp30-server-3.0.7_4     <  needs updating (index has 3.0.7_5)
jpeg-6b_7                     <  needs updating (index has 7)
libltdl-1.5.26                !  Comparison failed
libtool-1.5.26                !  Comparison failed
libxml2-2.7.3                 <  needs updating (index has 2.7.3_1)
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-client-5.0.83           <  needs updating (index has 5.0.85)
mysql-server-5.0.82           <  needs updating (index has 5.0.85)
nmap-4.85.b7_1                <  needs updating (index has 5.00)
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-Zlib-1.09               <  needs updating (index has 1.10)
p5-Net-IP-1.25                <  needs updating (index has 1.25_1)
p5-NetAddr-IP-4.02.6          <  needs updating (index has 4.02.7)
p5-PathTools-3.2900           <  needs updating (index has 3.3000)
p5-Storable-2.20              <  needs updating (index has 2.21)
p5-URI-1.38                   <  needs updating (index has 1.40)
p5-libwww-5.827               <  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.2_1,1             <  needs updating (index has 2.6.3,1)
py-subversion-1.5.5_1         <  needs updating (index has 1.6.5)
py25-imaging-1.1.6_2          <  needs updating (index has 1.1.6_3)
py25-pygments-0.11.1          <  needs updating (index has 1.0)
python-2.5,2                  <  needs updating (index has 2.6,2)
python25-2.5.2_3              <  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            <  needs updating (index has 5.38_6)
sqlite3-3.6.13                <  needs updating (index has 3.6.14.2)
subversion-1.6.1              <  needs updating (index has 1.6.5)
trac-0.10.4_1                 <  needs updating (index has 0.11.5)
trac-accountmanager-0.1.3.2063,1  <  needs updating (index has 0.2.1.3857,1)
trac-ctxtnavaddplugin-1.1.r1  <  needs updating (index has 2.0)
trac-iniadmin-0.1             <  needs updating (index has 0.2.3915)
trac-webadmin-0.1.2.4429      <  needs updating (index has 0.1.2.4429_2)
trac-wikinotificationplugin-0.1.0p4  <  needs updating (index has 0.2.1)
vim-lite-7.2.209              <  needs updating (index has 7.2.239)

I prepared myself to upgrade of libtool and libltdl based on info in 
UPDATING

root at elsa ~/# pkg_info -R libltdl-1.5.26
Information for libltdl-1.5.26:

Required by:
courier-imap-4.5.0,2
php5-mcrypt-5.2.10
php5-extensions-1.3
courier-authlib-base-0.62.4
courier-authlib-mysql-0.62.4


root at elsa ~/# portmaster -o devel/libtool22 devel/libtool15

===>>> Upgrade of libtool-1.5.26 to libtool-2.2.6a complete

root at elsa ~/# portmaster -o devel/libltdl22 devel/libltdl15

===>>> Upgrade of libltdl-1.5.26 to libltdl-2.2.6a complete



root at elsa ~/# portmaster courier-authlib-base-0.62.4

===>>> Re-installation of courier-authlib-base-0.62.4 complete


root at elsa ~/# portmaster courier-authlib-mysql-0.62.4

===>>> The following actions were performed:
         Upgrade of mysql-client-5.0.83 to mysql-client-5.0.85
         Re-installation of courier-authlib-mysql-0.62.4


root at elsa ~/# portmaster courier-imap-4.5.0,2

===>>> Upgrade of courier-imap-4.5.0,2 to courier-imap-4.5.1,2 complete


After above steps, I decide to reinstall php5-mcrypt

root at elsa ~/# portmaster php5-mcrypt-5.2.10

===>>> Re-installation of php5-mcrypt-5.2.10 complete

At this step, I was surprised - php5-mcrypt has dependency on Apache, 
Apache has available newer version, but was not updated.

root at elsa ~/# pkg_tree -v php5-mcrypt-5.2.10
php5-mcrypt-5.2.10
|\__ expat-2.0.1
|\__ libmcrypt-2.5.8
|\__ perl-5.8.9_3
|\__ pkg-config-0.23_1
|\__ pcre-7.9
|\__ libltdl-2.2.6a
|\__ mysql-client-5.0.85
|\__ db41-4.1.25_4
|\__ libiconv-1.13.1
|\__ apache-2.2.11_7
|     |\__ expat-2.0.1
|     |\__ perl-5.8.9_3
|     |\__ pcre-7.9
|     |\__ mysql-client-5.0.85
|     |\__ db41-4.1.25_4
|      \__ libiconv-1.13.1
|\__ libxml2-2.7.3
|     |\__ pkg-config-0.23_1
|      \__ libiconv-1.13.1
  \__ php5-5.2.10
       |\__ expat-2.0.1
       |\__ perl-5.8.9_3
       |\__ pkg-config-0.23_1
       |\__ pcre-7.9
       |\__ mysql-client-5.0.85
       |\__ db41-4.1.25_4
       |\__ libiconv-1.13.1
       |\__ apache-2.2.11_7
       |     |\__ expat-2.0.1
       |     |\__ perl-5.8.9_3
       |     |\__ pcre-7.9
       |     |\__ mysql-client-5.0.85
       |     |\__ db41-4.1.25_4
       |      \__ libiconv-1.13.1
        \__ libxml2-2.7.3
             |\__ pkg-config-0.23_1
              \__ libiconv-1.13.1


root at elsa ~/# pkg_info -rR php5-mcrypt-5.2.10
Information for php5-mcrypt-5.2.10:

Depends on:
Dependency: expat-2.0.1
Dependency: libmcrypt-2.5.8
Dependency: perl-5.8.9_3
Dependency: pkg-config-0.23_1
Dependency: pcre-7.9
Dependency: libltdl-2.2.6a
Dependency: mysql-client-5.0.85
Dependency: db41-4.1.25_4
Dependency: libiconv-1.13.1
Dependency: apache-2.2.11_7
Dependency: libxml2-2.7.3
Dependency: php5-5.2.10
Required by:
php5-extensions-1.3


root at elsa ~/# portmaster -L | grep apache
===>>> apache-2.2.11_7
         ===>>> New version available: apache-2.2.13
===>>> apachetop-0.12.6_1


root at elsa ~/# portmaster --version

===>>> FreeBSD version 2.11


This is on FreeBSD 6.3 i386


Is it another bug in portmaster?

Miroslav Lachman


More information about the freebsd-ports mailing list