]> git.openfabrics.org - ~emulex/ofed_scripts/.git/commitdiff
rpm-build RPM is required to install OFED on RedHat.
authorOlga Shern <olgas@voltaire.com>
Sun, 31 Aug 2008 09:08:54 +0000 (12:08 +0300)
committerVladimir Sokolovsky <vlad@mellanox.co.il>
Sun, 31 Aug 2008 09:08:54 +0000 (12:08 +0300)
Signed-off-by: "Olga Shern <olgas@voltaire.com>
install.pl

index 999b8e76297bbe8350760ddcf26903bb6737cc65..6d5ad55c36c476e5d9154dd130cfdeaafc759f7d 100755 (executable)
@@ -2422,6 +2422,7 @@ sub check_linux_dependencies
     if (! $check_linux_deps) {
         return 0;
     }
+
     for my $package ( @selected_packages ) {
         # Check rpmbuild requirements
         if ($package =~ /kernel-ib|ib-bonding/) {
@@ -2442,6 +2443,13 @@ sub check_linux_dependencies
             }
         }
 
+        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++;
+            }
+        }
+
         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")) {