From 6a1be31efa3b246dbff0e12b44b1e6a3c67e7c54 Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Thu, 28 Aug 2008 14:18:56 +0300 Subject: [PATCH] Make sure that kernel sources are present: On SuSE /lib/modules/`uname -r`/build belongs to the kernel RPM and not to kernel-source/kernel-devel. Check that /lib/modules/`uname -r`/build/scripts directory exist. It belongs to kernel-source RPM on SuSE and to kernel-debug RPM on RedHat. This check will also work for kernels from kernel.org. Signed-off-by: Vladimir Sokolovsky --- install.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.pl b/install.pl index 845eb64..999b8e7 100755 --- a/install.pl +++ b/install.pl @@ -2434,8 +2434,8 @@ sub check_linux_dependencies exit 1; } # kernel sources required - if ( not -d "$kernel_sources/" ) { - print RED "$kernel_sources is required to build $package RPM.", RESET "\n"; + if ( not -d "$kernel_sources/scripts" ) { + print RED "$kernel_sources/scripts is required to build $package RPM.", RESET "\n"; print RED "Please install the corresponding kernel-source or kernel-devel RPM.", RESET "\n"; $err++; } -- 2.41.0