From 6e53729b8b8af6fefb4908fece62ad4822368e66 Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 29 May 2005 09:10:40 +0000 Subject: Update section on what to do when distfiles change. --- doc/guide/files/fixes.xml | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'doc/guide') diff --git a/doc/guide/files/fixes.xml b/doc/guide/files/fixes.xml index 2ab4c6d77a0..2c533f168fb 100644 --- a/doc/guide/files/fixes.xml +++ b/doc/guide/files/fixes.xml @@ -1,4 +1,4 @@ - + Notes on fixes for packages @@ -475,16 +475,23 @@ ${INSTALL_DATA_DIR} ${PREFIX}/dir2 Sometimes authors of a software package make some modifications after the software was released, and they put up a new distfile without changing the package's version number. If a - package is already in pkgsrc at that time, the md5 checksum will - no longer match. The correct way to work around this is to - update the package's md5 checksum to match the package on the - master site (beware, any mirrors may not be up to date yet!), - and to remove the old distfile from - ftp.NetBSD.org's - /pub/NetBSD/packages/distfiles directory. - Furthermore, a mail to the package's author seems appropriate - making sure the distfile was really updated on purpose, and that - no trojan horse or so crept in. + package is already in pkgsrc at that time, the checksum will + no longer match. The contents of the new distfile should be + compared against the old one before changing anything, to make + sure the distfile was really updated on purpose, and that + no trojan horse or so crept in. + Then, the correct way to work around this is to + set DIST_SUBDIR to a unique directory name, + usually based on PKGNAME_NOREV. In case this + happens more often, PKGNAME can be used (thus + including the nbX suffix) or a date stamp + can be appended, like ${PKGNAME_NOREV}-YYYYMMDD. + Do not forget regenerating the distinfo file + after that, since it contains the DIST_SUBDIR + path in the filenames. + Furthermore, a mail to the package's authors seems appropriate + telling them that changing distfiles after releases without + changing the file names is not good practice. -- cgit v1.2.3