From 41cba31fa0f610513cd1cf6dd53c814a056d3f0f Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 4 Jul 2004 17:41:58 +0000 Subject: Various improvements for previous. --- Packages.txt | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Packages.txt b/Packages.txt index ac6b7dee10d..c089c9eae3c 100644 --- a/Packages.txt +++ b/Packages.txt @@ -1,4 +1,4 @@ -# $NetBSD: Packages.txt,v 1.339 2004/07/04 17:35:41 jmmv Exp $ +# $NetBSD: Packages.txt,v 1.340 2004/07/04 17:41:58 wiz Exp $ ########################################################################### ========================== @@ -2878,23 +2878,23 @@ pkgviews User's Guide in pkgsrc/mk/buildlink3/PKGVIEWS_UG. ================================================ A "shared directory" is a directory where multiple (and unrelated) -packages install files. These directories are problematic because you -have to add special tricks in the PLIST to conditionally remove them, -or have some centralized package handle them. +packages install files. These directories are problematic because +you have to add special tricks in the PLIST to conditionally remove +them, or have some centralized package handle them. -Within pkgsrc, you'll find both approaches mixed. If a directory is shared -by few unrelated packages, it's often not worth to add an extra package to -remove it. Therefore, one simply does: +Within pkgsrc, you'll find both approaches. If a directory is +shared by a few unrelated packages, it's often not worth to add an +extra package to remove it. Therefore, one simply does: - @unexec ${RMDIR} %D/path/to/shared/package 2>/dev/null || ${TRUE} + @unexec ${RMDIR} %D/path/to/shared/directory 2>/dev/null || ${TRUE} -in the PLISTs of all packages affected, instead of the regular "@dirrm" line. +in the PLISTs of all affected packages, instead of the regular "@dirrm" line. However, if the directory is shared across many packages, two different solutions are available: 1) If the packages have a common dependency, the directory can be removed - from it. For example, see textproc/scrollkeeper, which removes the + in that. For example, see textproc/scrollkeeper, which removes the shared directory share/omf. 2) If the packages using the directory are not related at all (they have no @@ -2915,19 +2915,19 @@ have the following line in it: USE_DIRS+= xdg-1.1 -After regenerating the PLIST, using 'make print-PLIST', you should get the +After regenerating the PLIST using 'make print-PLIST', you should get the right (commented out) lines. Note that, even if your package is using X11BASE, it must not depend on the *-x11-dirs packages. Just specify the name without that part and pkgsrc -(specially, mk/dirs.mk) will take care of it. +(in particular, mk/dirs.mk) will take care of it. 10.46 How can I tweak 'make print-PLIST' output? ================================================ If you have used any of the *-dirs packages, as explained in 10.45, you -may have noticed that 'make print-PLIST' outputs a set of @comment's, +may have noticed that 'make print-PLIST' outputs a set of @comment's instead of real @dirrm lines. You can also do this for specific directories and files, so that the results of that command are very close to reality. This helps _a lot_ during the update of packages. -- cgit v1.2.3