$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) {
#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) {