Date: Tue, 10 Feb 2015 18:43:06 -0800 From: Chris Torek <chris.torek@gmail.com> To: freebsd-current <freebsd-current@freebsd.org> Subject: LOCAL_MTREE vs DB_FROM_SRC Message-ID: <CAPx1Gvf8v1q2JkmzYF9ryoPk=XKYTiUG7gnu5TDXGn_7kqLd%2BQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
(Apologies for google mail, I moved a while back and my office at home is
still not up and hence my regular FreeBSD machine at home is also not up.)
In Makefile.inc1 we have:
.if defined(DB_FROM_SRC)
INSTALLFLAGS+= -N ${.CURDIR}/etc
MTREEFLAGS+= -N ${.CURDIR}/etc
.endif
which is fine as far as it goes, but then if ${LOCAL_MTREE} is defined we
have this:
.for _mtree in ${LOCAL_MTREE}
mtree -deU -f ${.CURDIR}/${_mtree} -p ${WORLDTMP} > /dev/null
.endfor
which omits the -N flag, even with DB_FROM_SRC set. This means if a local
mtree file "wants" user and/or group names that are not on your build
system, but are in the new (but not yet installed anywhere) master.passwd
and/or group files, the build fails when prepping the worldtmp area. Seems
like this should be "mtree ${MTREEFLAGS} ...", shouldn't it?
Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPx1Gvf8v1q2JkmzYF9ryoPk=XKYTiUG7gnu5TDXGn_7kqLd%2BQ>
