oddity building ports with archiving

Ryan Schmidt ryandesign at macports.org
Wed Sep 16 18:26:38 PDT 2009


On Sep 16, 2009, at 19:10, Kristofer Henriksson wrote:

> On Wed, Sep 16, 2009 at 8:00 PM, Jack Howarth wrote:
>
>>   I've noticed an oddity while building local ports
>> under MacPorts 1.8.0 with the archiving feature enabled.
>> It appears that if one is modifying the Portfile without
>> constantly bumping the revision number that the 'clean'
>> command is insufficient to purge the previous tgz archive
>> of the package. This means that while 'sudo port build'
>> works as expected when 'sudo port install' is executed
>> the tgz is not recreated. Shouldn't 'sudo port clean'
>> remove the archives associated with the Portfile? Otherwise
>> when archive is enabled it seems one has to constantly
>> delete the archive manually between builds. Or am I missing
>> something here?
>
> Try port clean --all. Normally port clean only removes the work
> directory for a port.

"clean" by itself means "clean --work". You don't need "clean -- 
all" (it will delete your distfiles too which you'll then have to  
redownload); "clean --archive" is sufficient.




More information about the macports-dev mailing list