update problems

Bryan Blackburn blb at macports.org
Tue Nov 4 12:12:56 PST 2008


On Tue, Nov 04, 2008 at 11:09:38PM +1100, Pete Crite said:
> Hi, I attempted to run "sudo port upgrade outdated" today, and got a  
> whole bunch of errors similar to this:
>
>> --->  Verifying checksum(s) for libpng
>> Error: No checksum set for libpng-1.2.33.tar.bz2
[...]
>
> I googled, and found something about using "sudo port clean --all  
> sqlite3", and then running the upgrades again. 
> https://trac.macports.org/ticket/16486 This worked partially; I still had 
> many errors, but sometimes a port might upgrade. On closer examination of 
> the terminal messages, I found recursive directories mentioned, similar to 
> the ticket mentioned.

The good news is that this should be fixed in the next MacPorts release,
though for now, unfortunately, you'll have to do a clean of any port that
hits this issue.

[...]
>
> So, I have three questions:
> 1) Is there a way to upgrade these final two ports?

Did you run the clean --all for each of those ports having issues?

> 2) Is there a problem with this strange recursive directory structure? Is 
> there a way to fix it, or is the manual way I did it fine?

There was (and still is on MacPorts 1.6) but should be fixed according to
ticket #11971.  Normally, the distfile should end up in
${prefix}/var/macports/distfiles/${portname} so just the one level of a
given port's name should be used there.

> 3) Is there a way to prevent this in the future?

Upgrade to MacPorts 1.7 when it is available, otherwise it would seem that
having to clean should get things to work for the moment.

> 4) I also tried to run "sudo port clean --all" but got an error:
>
>> Can't map the URL 'file://.' to a port description file ("Could not  
>> find Portfile in /Users/foo_bar").
>> Please verify that the directory and portfile syntax are correct.
>> To use the current port, you must be in a port's directory.
>> (you might also see this message if a pseudo-port such as
>> outdated or installed expands to no ports).
>> Error: Unable to open port: Could not find Portfile in /Users/foo_bar

Yeah, that needs a port name given, this error message is also improved in
the next release; 'sudo port clean --all <portname>' is the proper form.

Bryan


>
> Has this command changed?
>
>
> Cheers,
> Pete.


More information about the macports-users mailing list