Re: poudriere jail with todays current: Install fail?

From: Dimitry Andric <dimitry_at_andric.com>
Date: Wed, 20 Oct 2021 12:11:48 UTC
On 20 Oct 2021, at 13:51, Larry Rosenman <ler@FreeBSD.org> wrote:
> 
> On 10/20/2021 6:41 am, Dimitry Andric wrote:
>> On 20 Oct 2021, at 03:50, Larry Rosenman <ler@FreeBSD.org> wrote:
>>> Anyone else having poudriere jail -u or jail -c fail in the installworld?
>>> log:
>>> https://www.lerctr.org/~ler/jail-install.log
>> The actual error is pretty far from the bottom of that log:
>> --- realinstall_subdir_usr.sbin/lpr/chkprintcap ---
>> install: chkprintcap: No such file or directory
>> So probably usr.sbin/lpr wasn't built during buildworld? Do you have any
>> special settings in e.g. src.conf?
>> -Dimitry
> 
> I had
> WITHOUT_LPR=yes
> 
> in make.conf.  But I've had that in there for a LONG time, and this is the
> first time poudriere has complained.
> 
> So, I commented that out for now, but I'd like to know why the sudden change.

I haven't been able to find how poudriere jail -c passes any src.conf
settings to its installworld phase. It does seem to have a bunch of
stuff that goes through contortions to put a src.conf into the jail
directory, but only during *buildworld*, not during installworld.

It could very well be that this use case was broken due to a recent
poudriere update. I don't see anything in the recent log of -CURRENT
hat indicates some sort of flipping of the MK_LPR default, it has been
"yes" for ages now.

Whatever the case may be, for some reason you now run into a common
problem with the disconnect between buildworld and installworld: if you
run these under even slightly different environments, there can be
unexpected consequences... :)

-Dimitry