Always rebuild Linux kernel dependencies as the shipped one may be broken. lufs_0_9_6_captive2
authorshort <>
Mon, 29 Sep 2003 05:24:57 +0000 (05:24 +0000)
committershort <>
Mon, 29 Sep 2003 05:24:57 +0000 (05:24 +0000)
kernel/Linux/prepmod.in

index 41f52cb..5f67cb5 100755 (executable)
@@ -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) {