Re: [Bug] 2.5.25 build as one user and install as root

From: Keith Owens (kaos@ocs.com.au)
Date: Sun Jul 07 2002 - 20:22:06 EST


On Sun, 07 Jul 2002 23:25:32 +0200,
Alessandro Suardi <alessandro.suardi@oracle.com> wrote:
>Keith Owens wrote:
>>>>2.5.25 existing build system has a nasty bug. Build as one user then
>>>>make install as root. It does supurious recompiles of some files and
>>>>leaves them owned as root. All of these files are now owned by root
>>>>and cause problems when the build user wants to rebuild.
>
>I'm saying "doesn't happen for me" because it doesn't happen.
>
>I've been compiling kernel as non-root (and well, of course
> installing as root) since 1996.

Apply this patch to fix a bug with CONFIG_NET=n, CONFIG_LLC= which
shows up with allnoconfig.

Index: 25.1/net/core/Makefile
--- 25.1/net/core/Makefile Wed, 19 Jun 2002 14:11:35 +1000 kaos (linux-2.5/p/c/50_Makefile 1.4 444)
+++ 25.1(w)/net/core/Makefile Sat, 06 Jul 2002 18:27:16 +1000 kaos (linux-2.5/p/c/50_Makefile 1.4 444)
@@ -16,7 +16,7 @@ obj-$(CONFIG_FILTER) += filter.o
 
 obj-$(CONFIG_NET) += dev.o dev_mcast.o dst.o neighbour.o rtnetlink.o utils.o
 
-ifneq ($(CONFIG_LLC),n)
+ifneq ($(subst n,,$(CONFIG_LLC)),)
 obj-y += ext8022.o
 endif

Then
  make allnoconfig
  make dep
  make bzImage
  su
  make install

These files are rebuilt for make install, and are now owned by root.
'su' or 'su -' makes no difference.

include/linux/compile.h
arch/i386/boot/compressed/vmlinux.bin
arch/i386/boot/compressed/piggy.o
arch/i386/boot/compressed/vmlinux
arch/i386/boot/.setup.o.cmd
arch/i386/boot/setup.o
arch/i386/boot/setup
arch/i386/boot/vmlinux.bin
init/init.o
init/version.o
init/.version.o.cmd
.version
vmlinux

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jul 07 2002 - 22:00:18 EST