[ewg] ***SPAM*** OFED installation on SLES 10

Vladimir Sokolovsky vlad at mellanox.co.il
Thu Aug 28 04:34:28 PDT 2008


Olga Shern (Voltaire) wrote:
> Hi Vlad,
> 
> I tested OFED 1.4 beta installation on SLES 10 minimal installation,
> and all dependencies checks were OK except kernel sources check,
> I think we should add for sles check whether kernel-source rpm is installed
> I attached a patch that should fix it.
> 
> Thanks
> Olga
> 

Hi Olga,
Please review the following patch instead:
It is possible that kernel from kernel.org installed on SuSE and there is no
kernel-source RPM installed. In this case your check will fail while kernel sources
directory is present.

Regards,
Vladimir

---
  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 <vlad at mellanox.co.il>
---
  install.pl |    4 ++--
  1 files 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++;
                  }
-- 
1.5.4.3





More information about the ewg mailing list