Changes between Version 5 and Version 6 of PortfileRecipes


Ignore:
Timestamp:
Jun 2, 2009, 7:06:02 AM (15 years ago)
Author:
blb@…
Comment:

Add entry about dealing with stealth updates and dist_subdir

Legend:

Unmodified
Added
Removed
Modified
  • PortfileRecipes

    v5 v6  
    106106It is better to make a user upgrade to a newer Xcode than for a port maintainer to spend time testing old versions.
    107107
    108 
     108== Dealing with stealth updates ==
     109Some software may update their distfile with new changes without changing the version number (eg, it stays example-1.2.tar.gz); another case where this happens is when the distfile is unversioned (eg, example.tar.gz).  The safest way to deal with this is to keep the port's version unchanged (eg, stays at 1.2) while increasing the revision.  This however causes upgrade issues for those with it already as the update will include different checksums, but those who've already downloaded the distfile now have incorrect checksums.  To work around this, set dist_subdir so that it includes the version and revision:
     110{{{
     111dist_subdir   ${name}/${version}_${revision}
     112}}}
     113See for example the [browser:trunk/dports/lang/sicp/Portfile sicp Portfile].