From owner-freebsd-ports@FreeBSD.ORG Wed Apr 12 13:07:34 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 120BD16A405; Wed, 12 Apr 2006 13:07:34 +0000 (UTC) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [83.171.239.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1338443D60; Wed, 12 Apr 2006 13:07:29 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id k3CD6rZ2033242; Wed, 12 Apr 2006 16:06:53 +0300 (EEST) (envelope-from past@ebs.gr) Received: from [10.1.1.185] (pc185.ebs.gr [10.1.1.185]) by ebs.gr (8.13.3/8.13.3) with ESMTP id k3CD72gC049194; Wed, 12 Apr 2006 16:07:06 +0300 (EEST) (envelope-from past@ebs.gr) Received: from 127.0.0.1 (AVG SMTP 7.1.385 [268.4.1/309]); Wed, 12 Apr 2006 16:06:47 +0300 Message-ID: <443CFB67.6040005@ebs.gr> Date: Wed, 12 Apr 2006 16:06:47 +0300 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Sam Lawrance References: <12B35022-89C3-4A5B-ACE3-1C3145974AF9@brooknet.com.au> In-Reply-To: <12B35022-89C3-4A5B-ACE3-1C3145974AF9@brooknet.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org, Doug Barton Subject: Re: What does BATCH=yes really mean? (portmaster vs. bpm) 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: Wed, 12 Apr 2006 13:07:34 -0000 Sam Lawrance wrote: > Just hours ago I went to give sysutils/portmaster a try. An OPTIONS > selection screen appeared on the first run. I then ran the following > command, thinking I could leave portmaster going and wander off: > > portmaster -a -m "BATCH=yes" > > Again an OPTIONS dialog appeared. It seems that portmaster was running > the command 'make BATCH=yes config', which is an interactive operation. > I'm not sure whether this is incorrect behaviour from the 'config' > target, or perhaps a deficiency in portmaster. I'm sure there are easy > ways to work around the problem, but special cases are pesky. > > Perhaps there are other targets for which this behaviour would be > unexpected. Thoughts? I'm not sure if you implied it in the subject line, but one similar occasion is when upgrading using sysutils/bpm. Since bpm uses portupgrade to perform the actual work, a configuration dialog is waiting for the user's input, but the user is unable to receive this input and take action. I've sent bpm's author a patch that avoids this issue in that context, but I believe your assumption that BATCH should imply "use the default options" is correct. Cheers, Panagiotis