From: short <> Date: Mon, 29 Sep 2003 05:24:57 +0000 (+0000) Subject: Always rebuild Linux kernel dependencies as the shipped one may be broken. X-Git-Tag: lufs_0_9_6_captive2 X-Git-Url: http://git.jankratochvil.net/?p=lufs.git;a=commitdiff_plain;h=refs%2Ftags%2Flufs_0_9_6_captive2 Always rebuild Linux kernel dependencies as the shipped one may be broken. --- diff --git a/kernel/Linux/prepmod.in b/kernel/Linux/prepmod.in index 41f52cb..5f67cb5 100755 --- a/kernel/Linux/prepmod.in +++ b/kernel/Linux/prepmod.in @@ -274,6 +274,9 @@ my($rpm)=@_; $dir or confess "Kernel source tree not found in: $rpm"; _system "cp -p $dir/include/linux/rhconfig.h $dir/include/linux/rhconfig.h-orig" if -f "$dir/include/linux/rhconfig.h"; + # Do not use existing '$dir/tmp_include_depends' or '$dir/.depend' + # as it may contain non-existing pathnames: + _system "make -C $dir dep"; for my $smp ("","smp") { my @archs=qw(i386 i586 i686 athlon); for my $arch (@archs) { @@ -306,8 +309,6 @@ $defines #define __module__smp RHCONFIG_H_NOBOOT_EOF } - _system "make -C $dir dep" - if ! -f "$dir/tmp_include_depends" && ! -f "$dir/.depend"; # Mandrake packages have no configs/ and they have just that '.config' file. my $single_config=-f "$dir/.config"; if (!$single_config) {