From d4b75d1adeb778327a1a2cf731b5f62676781a6c Mon Sep 17 00:00:00 2001 From: short <> Date: Sun, 28 Sep 2003 17:59:22 +0000 Subject: [PATCH] Mandrake kernel compatibility fix. --- kernel/Linux/prepmod.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/Linux/prepmod.in b/kernel/Linux/prepmod.in index 6fd51c0..41f52cb 100755 --- a/kernel/Linux/prepmod.in +++ b/kernel/Linux/prepmod.in @@ -292,7 +292,7 @@ my($rpm)=@_; $defines.="+#define $_ ".($boot{$_} ? 1 : 0)."\n"; } _system "cp -p -f $dir/include/linux/rhconfig.h-orig $dir/include/linux/rhconfig.h"; - _writefile "| tee /tmp/1 | patch $dir/include/linux/rhconfig.h",<<"RHCONFIG_H_NOBOOT_EOF"; + _writefile "| patch $dir/include/linux/rhconfig.h",<<"RHCONFIG_H_NOBOOT_EOF"; --- ./include/linux/rhconfig.h-orig Thu Aug 21 14:50:16 2003 +++ ./include/linux/rhconfig.h Thu Aug 21 14:59:22 2003 \@\@ -10,7 +10,@{[ 7+keys(%boot) ]} \@\@ @@ -307,7 +307,7 @@ $defines RHCONFIG_H_NOBOOT_EOF } _system "make -C $dir dep" - if ! -f "$dir/tmp_include_depends"; + 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) { -- 1.8.3.1