On Sep 9, 2014, at 7:12 AM, Daniel J. Luke <[email protected]> wrote:

> On Sep 9, 2014, at 9:52 AM, Adam Dershowitz Ph.D., P.E. <[email protected]> 
> wrote:
>> 
>> The difficulty, from a user perspective, is that it is not obvious when this 
>> kind of case will occur.  I saw that I had some outdated ports, and did an 
>> upgrade of outdated and not openmodelica-devel.  The difficulty is that one 
>> of those ports was omniORBpy which is what would have “broken" 
>> openmodelica-devel and caused the rev-upgrade.  This is not something that 
>> would have been obvious beforehand.  And also, is not a problem by itself.  
>> The problem is that “-u” got passed to this rev-upgrade so during that 
>> process, all the old ones were deleted.  The idea that "sudo port -u upgrade 
>> outdated and not openmodelica-devel” will not only upgrade 
>> openmodelica-devel but also delete all the old version of that specific port 
>> seems like a trap to users.  
> 
> It's not entirely obvious what the 'correct' behavior would be, though.
> 
> Your new omniORBpy (upgraded with -u) is the only one available after the 
> upgrade. The installed openmodelica-devel is now broken (won't work with the 
> new omniORBpy). rev-upgrade /could/ ignore the -u and build a new 
> openmodelica-devel to fix the issue for you, but you wouldn't be able to 
> re-activate the old one and have it work.
> 
> I would suggest that what you actually want to be doing is something like:
> 
> port upgrade outdated
> port uninstall inactive and not openmodelica-devel (and maybe using one or 
> more of the pseudo-portname selectors to also hang on to any old dependencies 
> or dependents).

Perhaps this would work:
port uninstall inactive and not depof:openmodelica-devel

or recursively exclude:
port uninstall inactive and not rdepof:openmodelica-devel


Regards,
Bradley Giesbrecht (pixilla)

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to