From owner-freebsd-ports@FreeBSD.ORG Wed Sep 24 15:54:44 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E673010656A4 for ; Wed, 24 Sep 2008 15:54:44 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from mail-gx0-f17.google.com (mail-gx0-f17.google.com [209.85.217.17]) by mx1.freebsd.org (Postfix) with ESMTP id A21FC8FC1F for ; Wed, 24 Sep 2008 15:54:44 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by gxk10 with SMTP id 10so5772712gxk.19 for ; Wed, 24 Sep 2008 08:54:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=2p76My9W9/FQg3vATgw/lv6albMokNvxYsrljDRTUws=; b=Do1NzkJPRKbspbqLrEA+K97NMr2oSQftOiI5xZlQcx/kfUUMv7BBvnZNC0pw7KvM0W kl15BoluiIQ2m1sGAiEsnd64cCDgat2lSctX8tvMywhFxb9LvHM+hWT9k3GnppYrub+h VWn3NG0hYj+wyIuKUnw9QtknxN+h9VZBwol9M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=UbuD454RN2qMxfTEP7dQj1bPJ9oxvPdpX+Xw9Lcb5h4yVVPh9zclLcFeO2AmAWr0Ub 4M1aWVC66qMbouj6G0kNgAzeBMpugjIYM8wR4FULqOj+stpLFH8S8Gwl0C6UZ9VmTwks VFVdfAw+4/on8GJDq7Xx3uUglucxml1Wiy0ZY= Received: by 10.151.44.18 with SMTP id w18mr8288997ybj.64.1222270123618; Wed, 24 Sep 2008 08:28:43 -0700 (PDT) Received: by 10.151.11.21 with HTTP; Wed, 24 Sep 2008 08:28:43 -0700 (PDT) Message-ID: <8cb6106e0809240828v3ebe1095w898597fea2d40272@mail.gmail.com> Date: Wed, 24 Sep 2008 11:28:43 -0400 From: "Josh Carroll" To: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: new reconfig-recursive target for ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2008 15:54:45 -0000 All, Note: I'm not currently subscribed to ports@, please cc: me on replies. I was wondering what peoples' thoughts are on a "reconfig-recursive" target for ports? Basically, the same as config-recursive, but instead of using config-conditional for each dependency, it would use config. This might be useful for someone who wants to review dependecies' options and/or make changes, but without having to manually iterate through them or rmconfig-recursive first. I figured this might come in handy. Thoughts? Patch is below. Thanks! Josh --- Mk/bsd.port.mk.old 2008-09-24 11:21:20.000000000 -0400 +++ Mk/bsd.port.mk 2008-09-24 11:21:02.000000000 -0400 @@ -5934,6 +5934,14 @@ done .endif +.if !target(reconfig-recursive) +reconfig-recursive: + @${ECHO_MSG} "===> Setting user-specified options for ${PKGNAME} and dependencies"; + @for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \ + (cd $$dir; ${MAKE} config); \ + done +.endif + .if !target(config-conditional) config-conditional: .if defined(OPTIONS)