Changes between Version 15 and Version 16 of PortfileRecipes


Ignore:
Timestamp:
Jan 30, 2010, 10:08:54 AM (14 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Split unversioned distfiles section out of stealth upgrades section

Legend:

Unmodified
Added
Removed
Modified
  • PortfileRecipes

    v15 v16  
    141141It is better to make a user upgrade to a newer Xcode than for a port maintainer to spend time testing old versions.
    142142
    143 == Dealing with stealth updates == #stealth-updates
    144 Some software may update their distfile with new changes without changing the version number (e.g., it stays example-1.2.tar.gz); another case where this happens is when the distfile is unversioned (e.g., example.tar.gz).  The safest way to deal with this is to keep the port's version unchanged (e.g., stays at 1.2) while increasing the revision.  This however will cause a checksum mismatch for those who already have the previous distfile.  To work around this, set dist_subdir so that it includes the version and revision:
     143== Stealth updates == #stealth-updates
     144Some software may update their distfile with new changes without changing the version number (e.g., it stays example-1.2.tar.gz). The safest way to deal with this is to keep the port's version unchanged (e.g., stays at 1.2) while increasing the revision.  This however will cause a checksum mismatch for those who already have the previous distfile.  The correct solution to this problem is to change dist_subdir. By default, dist_subdir is ${name}; change it so that it includes a subdirectory named for the version and revision:
    145145{{{
    146146dist_subdir   ${name}/${version}_${revision}
    147147}}}
    148 See for example the [browser:trunk/dports/lang/sicp/Portfile sicp Portfile].
     148This example is from the [browser:trunk/dports/lang/sicp/Portfile sicp Portfile].
     149
     150See also the next entry on [#unversioned-distfiles unversioned distfiles].
     151
     152== Unversioned distfiles == #unversioned-distfiles
     153Some software may distribute their distfile with a filename that does not contain the version number (e.g. example.tar.gz); such a port will likely change distname from its default ${name}-${version} to just ${name}. But when updating the port version, the old version's distfile will get in the way, since it has the same name.  The correct solution to this problem is to change dist_subdir. By default, dist_subdir is ${name}; change it so that it includes a subdirectory named for the version:
     154{{{
     155dist_subdir   ${name}/${version}
     156}}}
     157This example is from the [browser:trunk/dports/x11/winetricks/Portfile winetricks Portfile].
     158
     159See also the previous entry on [#stealth-updates stealth updates].
    149160
    150161== Proper handling for a port's config files == #configfiles