Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2020 11:06:19 +0000
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        freebsd-questions@freebsd.org, Jerry <jerry@seibercom.net>
Subject:   Re: Problem with poudriere and 'BATCH'
Message-ID:  <010055e4-5dc7-52fb-893e-2854dcecf17a@qeng-ho.org>
In-Reply-To: <20200210044858.48a51491@scorpio>
References:  <20200209165815.506f490a@scorpio> <20200210071252.ed87d7d4.freebsd@edvax.de> <alpine.BSF.2.22.395.2002100848120.8165@enterprise.ximalas.info> <20200210100227.1e7e629d.freebsd@edvax.de> <20200210044858.48a51491@scorpio>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?010055e4-5dc7-52fb-893e-2854dcecf17a>