Date: Thu, 27 Aug 2015 01:22:43 -0700 From: Garrett Cooper <yaneurabeya@gmail.com> To: "O'Connor, Daniel" <darius@dons.net.au> Cc: Pawel Jakub Dawidek <pjd@freebsd.org>, Xin LI <d@delphij.net>, FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: Read-only /usr/obj/ no longer kosher? Message-ID: <A0A1F85A-FE1F-42A5-B40F-9EA23231F2F4@gmail.com> In-Reply-To: <516778C3-2B0E-4F6C-9225-C5218B0A349A@dons.net.au> References: <20150823215552.GB1314@garage.freebsd.pl> <55DA492D.4030804@delphij.net> <20150825210437.GB1172@garage.freebsd.pl> <20150825215347.GD1172@garage.freebsd.pl> <20150825215524.GE1172@garage.freebsd.pl> <55DCEA64.8040304@delphij.net> <CAGHfRMBp_Vyyd9H-60H%2BUfWy%2BBek4tby%2BW=84DjxMmqMoTjtCg@mail.gmail.com> <20150826225512.GF1172@garage.freebsd.pl> <516778C3-2B0E-4F6C-9225-C5218B0A349A@dons.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Aug 26, 2015, at 19:03, O'Connor, Daniel <darius@dons.net.au> wrote: >=20 >=20 >> On 27 Aug 2015, at 08:25, Pawel Jakub Dawidek <pjd@freebsd.org> wrote: >>> On Tue, Aug 25, 2015 at 03:32:35PM -0700, NGie Cooper wrote: >>>> On Tue, Aug 25, 2015 at 3:21 PM, Xin Li <delphij@delphij.net> wrote: >>>> On 08/25/15 14:55, Pawel Jakub Dawidek wrote: >>>>>> Now that I think of it, it might have been that I did >>>>>> buildworld/buildkernel before -p1. Then freebsd-update updated >>>>>> newvers.sh and then I was trying to do installworld. >>>>>=20 >>>>> Yes, I can now reproduce it with source updated to -p2. >>>>=20 >>>> Yes, that's because freebsd-version.sh is generated from the files (but= >>>> it's not clear to me whether if it's a bug or a feature that 'make >>>> install' checks if it's up-to-date and decides to regenerate it...). >>>=20 >>> It's a quirk for sure. If you change the behavior, people will >>> definitely complain as they will now need to go back and rebuild >>> everything. >>=20 >> What we have now is misleading. People should recompile. It is rather >> rare to see security advisory which bumps only patch level and something >> that doesn't require recompilation (eg. a shell script). Current >> behaviour would make people think they are running latest patch level >> because freebsd-version says so, eventhough they only did 'make >> installworld' without rebuilding affected binaries. >=20 > So.. > How hard would it be to force CC/CXX to /usr/bin/false during installworld= ? Trivial in FreeBSD. Just make it so in Makefile for the installworld target,= add false to itools, and add appropriate special casing in bsd.compiler.mk.= Doing this just prevents recompiling though, so not pjd's case. Also, this might break someone's random usecase where they need CC/CXX to do= something meaningful at install time, however, the likelihood of it being c= orrect is slim IMHO..=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A0A1F85A-FE1F-42A5-B40F-9EA23231F2F4>