Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Dec 2000 19:23:16 -0600 (CST)
From:      Jeremy Shaffner <jeremy@external.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/23602: Recursive distclean for bsd.port.mk w/patch
Message-ID:  <200012180123.eBI1NGf56753@indigo.external.org>
Resent-Message-ID: <200012180130.eBI1U1R77382@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         23602
>Category:       ports
>Synopsis:       Recursive distclean for bsd.port.mk w/patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 17 17:30:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jeremy Shaffner
>Release:        FreeBSD 4.2-20001106-BETA i386
>Organization:
>Environment:

$FreeBSD: ports/Mk/bsd.port.mk,v 1.360 2000/11/16 13:06:25 asami Exp $

	

>Description:

The distclean target does a recursive clean on dependancies and does a distclean
for the current port.  Defining NOCLEANDEPENDS avoids the recursion.

But there is no target or variable for distcleaning all dependancies.

I suggest:  (in audio/freeamp for example)

$ make distclean -DDISTCLEANDEPENDS
===>  Cleaning for bzip2-1.0.1
===>  Deleting distfiles for bzip2-1.0.1
===>  Cleaning for esound-0.2.22
===>  Deleting distfiles for esound-0.2.22
===>  Cleaning for id3lib-3.7.13
===>  Deleting distfiles for id3lib-3.7.13
===>  Cleaning for libaudiofile-0.1.9
===>  Deleting distfiles for libaudiofile-0.1.9
===>  Cleaning for musicbrainz-1.0.0.pre5
===>  Deleting distfiles for musicbrainz-1.0.0.pre5
===>  Cleaning for ORBit-0.5.5
===>  Deleting distfiles for ORBit-0.5.5
===>  Cleaning for gettext-0.10.35
===>  Deleting distfiles for gettext-0.10.35
===>  Cleaning for glib-1.2.8
===>  Deleting distfiles for glib-1.2.8
===>  Cleaning for gmake-3.79.1
===>  Deleting distfiles for gmake-3.79.1
===>  Cleaning for imake-4.0.1
===>  Deleting distfiles for imake-4.0.1
===>  Cleaning for libtool-1.3.4_1
===>  Deleting distfiles for libtool-1.3.4_1
===>  Cleaning for nasm-0.98
===>  Deleting distfiles for nasm-0.98
===>  Cleaning for popt-1.5
===>  Deleting distfiles for popt-1.5
===>  Cleaning for gdk-pixbuf-0.9.0
===>  Deleting distfiles for gdk-pixbuf-0.9.0
===>  Cleaning for imlib-1.9.8.1
===>  Deleting distfiles for imlib-1.9.8.1
===>  Cleaning for jpeg-6b
===>  Deleting distfiles for jpeg-6b
===>  Cleaning for libungif-4.1.0b1
===>  Deleting distfiles for libungif-4.1.0b1
===>  Cleaning for png-1.0.8_1
===>  Deleting distfiles for png-1.0.8_1
===>  Cleaning for tiff-3.5.5
===>  Deleting distfiles for tiff-3.5.5
===>  Cleaning for freetype-1.3.1
===>  Deleting distfiles for freetype-1.3.1
===>  Cleaning for gtk-1.2.8
===>  Deleting distfiles for gtk-1.2.8
===>  Cleaning for XFree86-libraries-4.0.1_2
===>  Deleting distfiles for XFree86-libraries-4.0.1_2
===>  Cleaning for gnomelibs-1.2.8_1
===>  Deleting distfiles for gnomelibs-1.2.8_1
===>  Cleaning for freeamp-2.1.rc4
===>  Deleting distfiles for freeamp-2.1.rc4

	

>How-To-Repeat:

Patch follows.
	

>Fix:

--- /usr/ports/Mk/bsd.port.mk.orig	Sun Dec 17 16:49:15 2000
+++ /usr/ports/Mk/bsd.port.mk	Sun Dec 17 18:53:22 2000
@@ -2604,9 +2604,15 @@
 
 .if !target(clean-depends)
 clean-depends:
-	@for dir in $$(${ALL-DEPENDS-LIST}); do \
-		(cd $$dir; ${MAKE} NOCLEANDEPENDS=yes clean); \
-	done
+	@if [ ! ${DISTCLEANDEPENDS} ]; then \
+		for dir in $$(${ALL-DEPENDS-LIST}); do \
+			(cd $$dir; ${MAKE} NOCLEANDEPENDS=yes clean); \
+		done; \
+	else \
+		for dir in $$(${ALL-DEPENDS-LIST}); do \
+			(cd $$dir; ${MAKE} NOCLEANDEPENDS=yes distclean); \
+		done; \
+	fi
 .endif
 
 .if !target(deinstall-depends)
	


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012180123.eBI1NGf56753>