From des@des.no  Mon Feb 11 12:06:35 2008
Return-Path: <des@des.no>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0698616A420
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Feb 2008 12:06:35 +0000 (UTC)
	(envelope-from des@des.no)
Received: from tim.des.no (tim.des.no [194.63.250.121])
	by mx1.freebsd.org (Postfix) with ESMTP id B954113C502
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Feb 2008 12:06:34 +0000 (UTC)
	(envelope-from des@des.no)
Received: from tim.des.no (localhost [127.0.0.1])
	by spam.des.no (Postfix) with ESMTP id 93C5A2088
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Feb 2008 13:06:24 +0100 (CET)
Received: from ds4.des.no (des.no [80.203.243.180])
	by smtp.des.no (Postfix) with ESMTP id 035482082
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Feb 2008 13:06:23 +0100 (CET)
Received: by ds4.des.no (Postfix, from userid 1001)
	id CDBA7844B6; Mon, 11 Feb 2008 13:06:23 +0100 (CET)
Message-Id: <20080211120623.CDBA7844B6@ds4.des.no>
Date: Mon, 11 Feb 2008 13:06:23 +0100 (CET)
From: Dag-Erling Smørgrav <des@des.no>
Reply-To: Dag-Erling Smørgrav <des@des.no>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] add more recursive-foo targets
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         120532
>Category:       ports
>Synopsis:       [PATCH] bsd.port.mk - add more recursive-foo targets
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    portmgr
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 11 12:10:05 UTC 2008
>Closed-Date:    
>Last-Modified:  Mon Mar 10 15:10:03 UTC 2008
>Originator:     Dag-Erling Smørgrav
>Release:        FreeBSD 8.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD ds4.des.no 8.0-CURRENT FreeBSD 8.0-CURRENT #21: Sun Feb 10 14:09:49 CET 2008 des@ds4.des.no:/usr/obj/usr/src/sys/ds4 amd64

n/a

>Description:

The attached patch adds the following targets to bsd.port.mk:

  extract-recursive
  configure-recursive
  patch-recursive

The names should be pretty self-explanatory.

>How-To-Repeat:

n/a

>Fix:

n/a

--- recursive.diff begins here ---
Index: Mk/bsd.port.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.589
diff -u -r1.589 bsd.port.mk
--- Mk/bsd.port.mk	17 Oct 2007 10:12:24 -0000	1.589
+++ Mk/bsd.port.mk	10 Feb 2008 16:28:46 -0000
@@ -5087,6 +5087,30 @@
 	done
 .endif
 
+.if !target(extract-recursive)
+extract-recursive:
+	@${ECHO_MSG} "===> Extracting for ${PKGNAME} and dependencies"
+	@for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \
+		(cd $$dir; ${MAKE} extract); \
+	done
+.endif
+
+.if !target(configure-recursive)
+configure-recursive:
+	@${ECHO_MSG} "===> Configuring for ${PKGNAME} and dependencies"
+	@for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \
+		(cd $$dir; ${MAKE} configure); \
+	done
+.endif
+
+.if !target(patch-recursive)
+patch-recursive:
+	@${ECHO_MSG} "===> Patching for ${PKGNAME} and dependencies"
+	@for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \
+		(cd $$dir; ${MAKE} patch); \
+	done
+.endif
+
 .if !target(fetch-recursive)
 fetch-recursive:
 	@${ECHO_MSG} "===> Fetching all distfiles for ${PKGNAME} and dependencies"
--- recursive.diff ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->portmgr 
Responsible-Changed-By: des 
Responsible-Changed-When: Mon Feb 11 12:13:02 UTC 2008 
Responsible-Changed-Why:  
bsd.port.mk 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120532 

From: Pav Lucistnik <pav@FreeBSD.org>
To: bug-followup@FreeBSD.org, des@des.no
Cc:  
Subject: Re: ports/120532: [PATCH] bsd.port.mk - add more recursive-foo
	targets
Date: Mon, 10 Mar 2008 14:01:13 +0100

 I wonder what are the real world uses for these targets?
 I can imagine people want to download distfiles and fill in OPTIONS
 screens for all ports in the dependency chain, but will someone need to
 recursively ./configure all ports, even the already installed
 dependencies? Not to say you can't ./configure until the dependencies
 were installed.
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 It whines, glows and fades...

From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To: pav@FreeBSD.org
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/120532: [PATCH] bsd.port.mk - add more recursive-foo targets
Date: Mon, 10 Mar 2008 16:05:53 +0100

 Pav Lucistnik <pav@FreeBSD.org> writes:
 > I wonder what are the real world uses for these targets?
 > I can imagine people want to download distfiles and fill in OPTIONS
 > screens for all ports in the dependency chain, but will someone need to
 > recursively ./configure all ports, even the already installed
 > dependencies? Not to say you can't ./configure until the dependencies
 > were installed.
 
 As I mentioned when I initially submitted the patch to portmgr@, I
 needed these targets to test further bsd.port.mk patches.  I'd rather
 not keep them around as local patches.
 
 DES
 --=20
 Dag-Erling Sm=C3=B8rgrav - des@des.no
>Unformatted:
