Problem with poudriere and 'BATCH'
Arthur Chance
freebsd at qeng-ho.org
Mon Feb 10 11:06:27 UTC 2020
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.
More information about the freebsd-questions
mailing list