From owner-freebsd-ports@FreeBSD.ORG Mon Oct 8 09:19:17 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E4779106566B for ; Mon, 8 Oct 2012 09:19:17 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6BDF38FC08 for ; Mon, 8 Oct 2012 09:19:17 +0000 (UTC) Received: by mail-bk0-f54.google.com with SMTP id jf20so1849316bkc.13 for ; Mon, 08 Oct 2012 02:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5b/Gz4VKzTo03ToDlDe6isy0M3zhyzP4zBkGcKrURT4=; b=KFBe4+hvF+fncoEHfpFGeTivrZiAu4zzsy95eEdH1uKLOxo6p0doq3GnUVsVqE6tou 4mOpMxhvXLi7p2C45ppmV83S5lPWrYJUL3/So0QLAqZM2uoDsmq6U70PKZgIwP4LhWGJ v2n9A8qK0tBx5tvsrEske8OTvHWRLkS7vWwN7iQ4lLV4SW9k00uTKFQvQ9NCUSEFMjtJ 0WvPkwrslgPN42YGHsuKr+bpV0JAXlv5wQs+r//2f6CrXkyT6ly6Cnw0lghlj9bPruAE Pvs0L+Zpf3Md8gF+jwDQXZPA6KQ7Vj+Z0kLaJdnV2lfIuhi+gVVJJM+ip/EOal9xPjah EAqw== MIME-Version: 1.0 Received: by 10.204.128.201 with SMTP id l9mr4909834bks.66.1349687956436; Mon, 08 Oct 2012 02:19:16 -0700 (PDT) Received: by 10.204.50.197 with HTTP; Mon, 8 Oct 2012 02:19:16 -0700 (PDT) Received: by 10.204.50.197 with HTTP; Mon, 8 Oct 2012 02:19:16 -0700 (PDT) In-Reply-To: References: Date: Mon, 8 Oct 2012 10:19:16 +0100 Message-ID: From: Chris Rees To: Thomas Mueller Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Mailing List , "Ronald F. Guilmette" Subject: Re: Building Ports: Is there a "make" equivalent for --batch ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Oct 2012 09:19:18 -0000 On 8 Oct 2012 10:16, "Chris Rees" wrote: > > > On 8 Oct 2012 09:38, "Thomas Mueller" wrote: > > > > from Polytropon: > > > > > A workaround (and not directly the answer to your question) is > > > to process the config dialogs before starting the build: > > > > > # make config-recursive > > > > > Once set, the options won't be requested on a second run. > > > According to "man 7 ports", there's a BATCH setting, but > > > it is descibed as: > > > > > If defined, only operate on a port if it can be > > > installed 100% automatically. > > > > This helps ("make config-recursive"), but depending on options chosen and > > resulting added dependencies, the config dialog can appear again. So I run > > "make config-recursive" repeatedly until it just returns to shell prompt. > > That works most of the time. > > > > My biggest reason for doing this is to be able to run the portmaster or make > > command with "|& tee build.log" at the end, and config dialog is very > > hostile to this. It is also helpful to be able to allow a long portmaster or > > portupgrade, or package build, to run unattended. > > make BATCH=yes Sorry, didn't properly read it... bad manners there :( BATCH skips OPTIONS dialogs and simply accepts defaults; unless the port is interactive in another way (i.e. asks questions that aren't OPTIONS) where it will be skipped. Chris