Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2020 22:16:03 +0000
From:      Brooks Davis <brooks@freebsd.org>
To:        Kyle Evans <kevans@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r360833 - head
Message-ID:  <20200512221603.GB60902@spindle.one-eyed-alien.net>
In-Reply-To: <CACNAnaFiHx8YoQQe9pW5WQz65iViZk54aR9=cF42DyhWBjJnAw@mail.gmail.com>
References:  <202005090201.04921Tpf028388@repo.freebsd.org> <20200511181027.GA60902@spindle.one-eyed-alien.net> <CACNAnaFiHx8YoQQe9pW5WQz65iViZk54aR9=cF42DyhWBjJnAw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--vGgW1X5XWziG23Ko
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 11, 2020 at 01:45:14PM -0500, Kyle Evans wrote:
> On Mon, May 11, 2020 at 1:10 PM Brooks Davis <brooks@freebsd.org> wrote:
> >
> > On Sat, May 09, 2020 at 02:01:29AM +0000, Kyle Evans wrote:
> > > Author: kevans
> > > Date: Sat May  9 02:01:29 2020
> > > New Revision: 360833
> > > URL: https://svnweb.freebsd.org/changeset/base/360833
> > >
> > > Log:
> > >   installworld: attempt a certctl rehash at the tail end
> > >
> > >   This can be run as root or normal user with no problem; if they had=
n't
> > >   twisted the WITHOUT_CAROOT knob, we'll attempt to use the host cert=
ctl to
> > >   rehash the DESTDIR. This would allow one to build systems WITHOUT_O=
PENSSL +
> > >   WITH_CAROOT with a populated /etc/ssl that they can then use with an
> > >   appropriate *ssl from somewhere else.
> > >
> > >   Cross-builds are fine because this will always use the host certctl=
, or just
> > >   nag if it's missing and it wasn't a WITHOUT_CAROOT build.
> > >
> > >   MFC after:  1 week
> > >   Differential Revision:      https://reviews.freebsd.org/D24641
> > >
> > > Modified:
> > >   head/Makefile.inc1
> > >
> > > Modified: head/Makefile.inc1
> > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
> > > --- head/Makefile.inc1        Sat May  9 01:48:08 2020        (r36083=
2)
> > > +++ head/Makefile.inc1        Sat May  9 02:01:29 2020        (r36083=
3)
> > > @@ -1403,6 +1403,16 @@ distributeworld installworld stageworld: _inst=
allcheck
> > >       ${DESTDIR}/${DISTDIR}/${dist}.debug.meta
> > >  .endfor
> > >  .endif
> > > +.elif make(installworld) && ${MK_CAROOT} !=3D "no"
> > > +     # We could make certctl a bootstrap tool, but it requires OpenS=
SL and
> > > +     # friends, which we likely don't want.  We'll rehash on a best-=
effort
> > > +     # basis, otherwise we'll just mention that we're not doing it t=
o raise
> > > +     # awareness.
> > > +     @if which certctl>/dev/null; then \
> > > +             certctl rehash \
> >
> > Does this update METALOG with the added links?
> >
> > It seems a little weird to rely on DESTDIR from the environment.
> >
> > In general I'm not enthusiastic about additions to installworld that do
> > anything other than copying files, creating links, etc in simple ways.
>=20
> I will happily back this out if I can get some qualified eyes to
> review/improve it. It does not update METALOG, and it probably should.
> Agreed on DESTDIR. As for point #3, I guess we can continue spreading
> `certctl rehash` all over the tree in various points that may need it;
> the release(7) scripts will need to be done if we don't do it here at
> a minimum, and I haven't put much thought into it beyond that.

I'm not in a rush to back this out given that it's solving a real
problem, but lets talk about improvements.

I kind of feel like this belongs in distribution (which I think would
deal with release scripts) or in etcupdate/mergemaster, but I'm not
sure either of those are correct.  I'd be happy to review changes to
update the METALOG (I guess we'd extend certctl with an option to do
that?)  I think that's the most important things because we really
should be routinely validating that DESTDIR only contains things in the
METALOG.  A quick and dirty fix for the DESTDIR weirdness might be adding
"env DESTDIR=3D${DESTDIR}" so it's explicit.

> The close-to-infuriating part of the caroot project has been that it's
> incredibly hard to get almost anyone else (with some obvious
> exceptions) to do more than informal discussion on the matter; actual
> review, in particular, is difficult to obtain.

Thanks for doing all this work!  I'm afraid the whole thing gives me
third-rail vibes (not the idea or the implementation, but the potential
for things to go wrong) so I've veered away from the larger reviews. :(

-- Brooks

--vGgW1X5XWziG23Ko
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJeuyAiAAoJEKzQXbSebgfAg4gH/0IcLmkOGVKkuwDyKYJs3cs2
M6NCZQBX2WGXy2+/pJzS9DhxXIT1c5IAKUbUZT9MADF5PmWSastgVI07iBj9JIgP
1JdQv7cJi2+f00a+dFWejmaJVvLrHAgwPbY1AXnbMBckb1UGn3CIxSccbs8LiuQ7
oYAKzO0Gr5l9kcqtCET90uJAEESk1Li8QE4SlvPQbO2weIXJYqDAeC6wVJt2kkAq
6M6dmHcF20BpmteCq1Lg17aGtk6AEAGl2GZ/xR0Gx0UgEP89/ydhL5w/tl7qFpl0
lDEUMcS0YlNJUQuf45Em+i+NbRoday9dnT9jc0NRyzDnlSb4FlKY6FQL/NuaRaQ=
=Opt9
-----END PGP SIGNATURE-----

--vGgW1X5XWziG23Ko--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200512221603.GB60902>