On Tue, 2002-05-07 at 06:48, Borsenkow Andrej wrote:
> > Why doesn't Mandrake ship "clean" kernel source?  By clean, I mean
> running
> > "make mrproper" before building the src.rpm.
> > 
> 
> because it prevents compiling external modules.
> 
> The right way is to ship without .config. then there are options
> 
> - add explanation text to Makefile that explains how to get standard
> config. Something along the following lines:
> 
> ifeq (.config,$(wildcard .config))
> include .config
> [...]
> else
>       @echo "* You have to configure your kernel source before
> compilation"
>       @echo "* Configuration of your currently running kernel is
> stored"
>       @echo "* in /boot/config-$$(uname -r). To reproduce it copy the
> file into"
>       @echo "* .config and run make oldconfig:"
>       @echo "*        cp /boot/config-$$(uname -r) .config"
>       @echo "*        make oldconfig"
> CONFIGURATION = config
> do-it-all:      config
> endif
> 
> - additionally do the above. It may be a bit risky, so I think the above
> is enough.
> 
> > Also, the kernel build process changes all the .depend files in the
> kernel
> > tree.  This is seen by msec, which generates error messages for each
> of the
> > .depend files because they no longer match what was in
> > kernel-source.src.rpm.  Using "make mrproper" before building the
> src.rpm
> > would remove a significant number of messages.
> >
> 
> As I said, make mrproper is not possible, but we do not need .depend
> files, you are right (meaning - do not need to compile external
> modules). So the correct state should be
> 
> Kernel-source with correct autoconf.h, modversions.h and
> include/linux/modules but without .config and .depend.
> 
> -andrej
> 
It seems simple enough, remove the info that is necessary to compile
modules and whatever else may be needed, make mrproper, copy back over
the files mentioned above and then generate the rpm. It sounds like a
simple script could be made by the kernel maintainer to do this.
Otherwise you will have a never ending supply of support questions on
this since there will always be someone who runs across this for the
first time. 
>  
> > David
> 
-- 
SI Reasoning
[EMAIL PROTECTED]
gpg public key ftp://ftp.p-p-i.com/pub/si-mindspring-pubkey.asc

"The frog does not drink up the pond in which it lives."
Chinese Proverb

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to