From owner-freebsd-questions@freebsd.org Sun Jan 31 00:59:11 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BF8874FEE86 for ; Sun, 31 Jan 2021 00:59:11 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DSt4v1gBBz3mLT for ; Sun, 31 Jan 2021 00:59:10 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id 10V0x939054103; Sat, 30 Jan 2021 17:59:10 -0700 (MST) (envelope-from freebsd@dreamchaser.org) From: Gary Aitken Subject: Re: make config-recursive for an individual port To: RW , freebsd-questions@freebsd.org References: <5dfb1c4a-d7b3-2059-c76e-7cfd1490c812@dreamchaser.org> <20210130170828.0299f4b5@gumby.homeunix.com> <20210130171424.b9e0f55048c5c3b9cff042f5@sohara.org> <20210130223139.44dc3483@gumby.homeunix.com> Reply-To: freebsd@dreamchaser.org Message-ID: <5e4cd073-242b-e92b-143c-87caf50b7329@dreamchaser.org> Date: Sat, 30 Jan 2021 17:54:31 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20210130223139.44dc3483@gumby.homeunix.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Sat, 30 Jan 2021 17:59:10 -0700 (MST) X-Rspamd-Queue-Id: 4DSt4v1gBBz3mLT X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-1.34 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; NEURAL_SPAM_SHORT(0.96)[0.959]; SPAMHAUS_ZRD(0.00)[66.109.141.57:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[66.109.141.57:from]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_TO(0.00)[googlemail.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2021 00:59:11 -0000 On 1/30/21 3:31 PM, RW via freebsd-questions wrote: > On Sat, 30 Jan 2021 10:43:42 -0700 > Gary Aitken wrote: >> On 1/30/21 10:14 AM, Steve O'Hara-Smith wrote: >>> On Sat, 30 Jan 2021 17:08:28 +0000 >>> RW via freebsd-questions wrote: ... >> I understand the -recursive will configure dependent ports. What I >> don't understand is why it would configure dependent ports which are >> already installed, since they will not be reinstalled. > > Because you asked it to by using the 'config-recursive' target rather > than 'config'. The config-recursive target is a lot older than pkg(8) > and it's not optimised for what you are trying to do. thanks, historical cruft is not a good justification but is certainly understandable. > Probably what you want is: > > make config > make -DBATCH install > > or just the second line if you want the default options for the current > port. Unfortunately, no. Let me ask something different. Is there a way to say "configure recursively all uninstalled ports required for this port"? > As already mentioned running "make missing" and pre-installing > missing packages with pkg(8) makes sense if you want to save time, > though not necessarily effort. Thanks, yes, that is more useful for my situation in most cases. However, in this case some of the dependent ports don't have a package, so it would still be nice to configure only those ports without packages prior to doing a build. I guess that means doing something like make missing | xargs -L 1 pkg install -Ay make missing | xargs -L 1 make config Gary