[ewg] OFED installation on RH5 UP2

Olga Shern olgas at voltaire.com
Wed Aug 27 10:25:17 PDT 2008


Hi Vlad,

I test this with OFED 1.4 build and it works.
I saw that you forgot to add test whether rpm-build package is
installed.
Can you please add it.

--- install.pl.orig	2008-08-17 18:58:27.000000000 +0300
+++ install.pl	2008-08-18 16:34:35.000000000 +0300
@@ -2431,6 +2431,14 @@ sub check_linux_dependencies
     if (! $check_linux_deps) {
         return 0;
     }
+
+    if ($distro eq "redhat" or $distro eq "fedora" or $distro eq
'redhat5')
+    {
+    	if (not is_installed("rpm-build")) {
+		print RED "rpm-build is required to build OFED", RESET
"\n";
+		$err++;
+    	}
+    }
     for my $package ( @selected_packages ) {
         # Check rpmbuild requirements
         if ($package =~ /kernel-ib|ib-bonding/) {


Thanks
Olga


-----Original Message-----
From: Olga Shern 
Sent: Thursday, August 21, 2008 4:23 PM
To: 'vlad at mellanox.co.il'
Cc: OF-EWG
Subject: RE: [ewg] OFED installation on RH5 UP2

Thanks Vlad,

It seems indeed better solution, I will test it and let you know.

-----Original Message-----
From: Vladimir Sokolovsky [mailto:vlad at mellanox.co.il] 
Sent: Tuesday, August 19, 2008 12:15 PM
To: Olga Shern
Cc: OF-EWG
Subject: RE: [ewg] OFED installation on RH5 UP2

On Mon, 2008-08-18 at 20:11 +0300, Olga Shern wrote:
> Hi Vlad,
> 
> I have also tested minimal OS installation.
> We need to test whether rpm-build package is installed (it is not
> installed by default) also for all debuginfo RPMs redhat-rpm-config is
> required. 
> Attached is the patch that fixes this.
> 
> Thanks,
> Olga
>  

Hi Olga,
I used a different patch instead because the check for redhat-rpm-config
existence is relevant for all debuginfo RPMs. Please see if this is OK.

Regarding lam MPI, I think, we should check if it was registered with
mpi-selector and re-register it after updating mpi-selector.

Thanks,
Vladimir

>From b98936d574b9fed5ff0493ee69d558ca67788810 Mon Sep 17 00:00:00 2001
From: Vladimir Sokolovsky <vlad at mellanox.co.il>
Date: Tue, 19 Aug 2008 11:54:00 +0300
Subject: [PATCH] redhat-rpm-config RPM should be installed on RedHat
Distributions
 in order to build debuginfo RPMs.

Signed-off-by: Vladimir Sokolovsky <vlad at mellanox.co.il>
---
 install.pl |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/install.pl b/install.pl
index 8966793..5155cfe 100755
--- a/install.pl
+++ b/install.pl
@@ -2451,6 +2451,15 @@ sub check_linux_dependencies
             }
         }
 
+        if ($package =~ /debuginfo/ and ($distro eq 'redhat' or $distro
eq 'fedora' or $distro eq 'redhat5')) {
+            if (not $packages_info{$package}{'rpm_exist'}) {
+                if (not is_installed("redhat-rpm-config")) {
+                    print RED "redhat-rpm-config rpm is required to
build $package", RESET "\n";
+                    $err++;
+                }
+            }
+        }
+
         if (not $packages_info{$package}{'rpm_exist'}) {
             for my $req ( @{ $packages_info{$package}{'dist_req_build'}
} ) {
                 my ($req_name, $req_version) = (split ('_',$req));
-- 
1.5.4.3





More information about the ewg mailing list