PortGroup versions

Ryan Schmidt ryandesign at macports.org
Sun Aug 28 12:29:43 PDT 2011


On Aug 28, 2011, at 04:28, Rainer Müller wrote:

> On 2011-08-25 02:46 , Joshua Root wrote:
>> We discussed the fact that portgroup changes could break portfiles
>> stored in the registry at the time that registry2.0 was integrated, and
>> decided that having pre/post deactivate/uninstall working most of the
>> time was valuable even if all the possible pitfalls weren't covered.
>> Uninstall and deactivate are specifically written to still work even if
>> executing the portfile fails.
> 
> I am aware that deactivate will still work. But to avoid warnings and
> errors we have to be careful about changes to port groups and increment
> the version number when changes to port groups would break installed ports.

And when you say increment the version, you actually mean leave the existing portgroup unmodified, copy it, increase the version of the copied portgroup, modify the copy, then update all ports to use the new portgroup version number.




More information about the macports-dev mailing list