Subject: pkg/14684: make clean in pkgsrc is waaay too slow
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/22/2001 13:42:28
>Number:         14684
>Category:       pkg
>Synopsis:       make clean in pkgsrc is waaay too slow
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 22 10:43:00 PST 2001
>Originator:     John Franklin
>Release:        NetBSD 1.5Y
System: NetBSD deathmitten 1.5Y NetBSD 1.5Y (DM) #2: Thu Nov 22 12:45:36 EST 2001 franklin@deathmitten:/usr/src/sys/arch/i386-UP/compile/DM i386
Architecture: i386
Machine: i386
	make clean in pkgsrc is way too slow when the user generally 
just wants the space used to build multiple packages back. Rather than
go through a bazillion make files (and their fork()/exec()s) to wipe out 
the work directories, why not nuke the buggers directly?  While we're 
at it, let's nuke the tarballs in distfiles, too.
	cd /usr/pkgsrc
	make clean
	notice how long it takes
patch pkgsrc/Makefile with the following:

--- Makefile    2001/07/17 13:11:51     1.44
+++ Makefile    2001/11/22 18:32:01
@@ -73,6 +73,13 @@
        @grep ${key} ${.CURDIR}/INDEX | awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\nArch:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9, $$10); }'
+# Quickly reclaim space
+       rm -rf distfiles/*
+       rm -rf */*/work
 # Generate list of all packages by extracting information from