[lkml]   [2018]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v3 2/2] kbuild: Don't mess with the when root

On Mon, Mar 12, 2018 at 11:16 PM, Ingo Molnar <> wrote:
> * Douglas Anderson <> wrote:
>> +# Don't create Makefile caches if running as root since they can't be deleted
>> +# easily; in the real world we might be root when doing "sudo make install"
>> +ifeq ($(shell id -u),0)
>> +export KBUILD_NOCACHE := 1
>> +endif
> Please don't do this - many prominent kernel developers build their kernels as
> root - this makes the build slower for them, and also bifurcates testing.

Ah, interesting. I hadn't realized that!

I'm OK with dropping this patch myself. It was mostly addressing a
potential problem pointed out by Masahiro Yamada when we were talking
about, but I don't think anyone has actually experienced the
problems listed in the CL description. I suppose the other option
would be to go back to keying off the "install" target (like v2 of
this patch did), but it kinda feels like if someone did "sudo make
install" and then followed up by a non-sudo "make" they probably would
be able to figure out how to fix it without much trouble (just do a
"sudo make clean").

In case it's not obvious, though, we should still try to land patch #1
of this series. That's a real problems that people reported when the stuff first landed and then folks tried to upgrade their


 \ /
  Last update: 2018-03-13 07:25    [W:0.086 / U:18.496 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site