On Sep 13, 2008, at 2:02 AM, Ryan Schmidt wrote:

>> I rely on ports to detect things which
>> must be updated due to dependencies. so I naively would have thought
>> that if, e.g. xpdf depdends on libtool and that one is to old, it  
>> should
>> have been updated first automatically? where's my error here?
>
> I'm not sure. Possibly nothing. I haven't gone back to test whether
> MacPorts properly attempts to upgrade dependencies before upgrading
> the port you requested.

I had occasion to test this today and as far as I can tell it should  
work. Here, mpfr depends on gmp, both are outdated, and asking port  
to upgrade mpfr does correctly upgrade gmp first.


$ port deps gmp mpfr
gmp has no dependencies
mpfr has library dependencies on:
         gmp
$ port outdated gmp mpfr
The following installed ports are outdated:
gmp                            4.2.2_2 < 4.2.3_0
mpfr                           2.3.1_0 < 2.3.2_0
$ sudo port upgrade mpfr
--->  Fetching gmp
--->  Attempting to fetch gmp-4.2.3.tar.bz2 from http://ftp.gnu.org/ 
gnu/gmp
--->  Verifying checksum(s) for gmp
--->  Extracting gmp
--->  Configuring gmp
--->  Building gmp with target all
--->  Staging gmp into destroot
--->  Deactivating gmp 4.2.2_2
--->  Installing gmp 4.2.3_0
--->  Activating gmp 4.2.3_0
--->  Cleaning gmp
--->  Fetching mpfr
--->  Attempting to fetch mpfr-2.3.2.tar.bz2 from http://www.mpfr.org/ 
mpfr-2.3.2/
--->  Verifying checksum(s) for mpfr
--->  Extracting mpfr
--->  Configuring mpfr
--->  Building mpfr with target all
--->  Staging mpfr into destroot
--->  Deactivating mpfr 2.3.1_0+darwin_i386
--->  Installing mpfr 2.3.2_0+darwin_i386
--->  Activating mpfr 2.3.2_0+darwin_i386
--->  Cleaning mpfr
$


This was tested on MacPorts built from trunk. I did not test with  
MacPorts 1.6.0; perhaps something has been fixed on trunk related to  
this.

_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to