From owner-freebsd-questions@freebsd.org Mon Feb 10 11:06:27 2020 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 6F5D623602C for ; Mon, 10 Feb 2020 11:06:27 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from bede.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48GNPv2QrKz4KRl for ; Mon, 10 Feb 2020 11:06:27 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.qeng-ho.org (Postfix) with ESMTP id 8ECB610378; Mon, 10 Feb 2020 11:06:19 +0000 (GMT) Subject: Re: Problem with poudriere and 'BATCH' To: freebsd-questions@freebsd.org, Jerry References: <20200209165815.506f490a@scorpio> <20200210071252.ed87d7d4.freebsd@edvax.de> <20200210100227.1e7e629d.freebsd@edvax.de> <20200210044858.48a51491@scorpio> From: Arthur Chance Message-ID: <010055e4-5dc7-52fb-893e-2854dcecf17a@qeng-ho.org> Date: Mon, 10 Feb 2020 11:06:19 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <20200210044858.48a51491@scorpio> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 48GNPv2QrKz4KRl X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2020 11:06:27 -0000 On 10/02/2020 09:48, Jerry wrote: > On Mon, 10 Feb 2020 10:02:27 +0100, Polytropon stated: >> On Mon, 10 Feb 2020 08:49:58 +0100 (CET), Trond Endrestøl wrote: >>> On Mon, 10 Feb 2020 07:12+0100, Polytropon wrote: >>> >>>> On Sun, 9 Feb 2020 16:58:15 -0500, Jerry wrote: >>>>> I am attempting to build the "print/hplip-plugin" port via >>>>> poudriere. When I attempt to do so, I am greeted with this >>>>> message: >>>>> >>>>> [00:00:07] Ignoring print/hplip-plugin | hplip-plugin-3.19.12: >>>>> License HPLIP_PLUGIN needs confirmation, but BATCH is defined >>>>> >>>>> I have never encountered this before. >>>> >>>> This is only needed for ports where there is a licensing >>>> restriction that requires you to interactively express your >>>> consent with the licensing terms. Regular ports do not >>>> require this and can therefore be built in batch mode. >>>> However, there are a few ports that need this kind of >>>> interaction. >>>> >>>>> How, other than building it sans poudriere, do I accomplish it. >>>> >>>> In /usr/local/etc/poudriere.d/make.conf, try the following: >>>> >>>> DISABLE_LICENSES=yes >>>> >>>> Sadly, I didn't find proper documentation of this option >>>> (not in "man 5 make.conf", not in poudriere's material). >>>> Maybe it can be found in some locally accessible example >>>> file? >>>> >>>> Please report back if it worked. If it does, I'd say it's >>>> worth being included in official poudriere configuration >>>> (exept it already is, and I just didn't find it). ;-) >>> >>> In the case of mail/dcc-dccd, as an example, this can be added to >>> make.conf: >>> >>> LICENSES_ACCEPTED+=DCC >> >> Is this officially documented somewhere (not just to be manually >> parsed from some configuration file)? > > I tried all sorts of combinations; however, the only one that worked > was: DISABLE_LICENSES=yes > > Now, that would apply to all programs built by poudriere. I would like > a way to restrict it to only the "print/hplip-plugin" port at this > time. Is that possible? > You can use make(1) conditionals to restrict which directories a directive applies to. You'll want something like .if ${.CURDIR:M*/print/hplip-plugin} DISABLE_LICENSES=yes .endif in the poudriere make.conf. -- Violets are red And roses are blue When metamaterials Alter their hue.