]> git.openfabrics.org - ~vlad/ofed_scripts.git/commitdiff
redhat-rpm-config RPM should be installed on RedHat Distributions
authorVladimir Sokolovsky <vlad@mellanox.co.il>
Tue, 19 Aug 2008 08:54:00 +0000 (11:54 +0300)
committerVladimir Sokolovsky <vlad@mellanox.co.il>
Tue, 19 Aug 2008 08:54:00 +0000 (11:54 +0300)
in order to build debuginfo RPMs.

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
install.pl

index 8966793e653269f6b51a43eb067af30cdc5070cf..5155cfecab08cf81f68fcc90851601edba6ecbff 100755 (executable)
@@ -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));