[ewg] [RFC PATCH] Additional dependency checking on SLES PPC

Aleksey Senin alekseys at voltaire.com
Thu Sep 25 03:33:46 PDT 2008


>From c7e4ef0387e140e301267ce48886f2238c4e9747 Mon Sep 17 00:00:00 2001
From: Aleksey Senin <alekseys at voltaire.com>
Date: Thu, 25 Sep 2008 13:21:45 +0300
Subject: [PATCH] Additional dependencies checking on SLES10 SP2 PPC

Development packages specified bellow contain "-64bit" suffix
in their names and current 'install.pl' logic will not recognize
that PPC missing critical for compilation packages. So this patch
add checking if
glibc-devel-64bit
zlib-devel-64bit
libstdc++-devel-64bit
are installed before start whole compile process on SLES PPC platform

Signed-off-by: Aleksey Senin <alekseys at voltaire.com>
---
 install.pl |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/install.pl b/install.pl
index 7b37574..2160710 100755
--- a/install.pl
+++ b/install.pl
@@ -423,7 +423,10 @@ my %packages_info = (
         'libibverbs' =>
             { name => "libibverbs", parent => "libibverbs",
             selected => 0, installed => 0, rpm_exist => 0, rpm_exist32 => 0,
-            available => 1, mode => "user", dist_req_build => ["gcc_3.3.3", "glibc-devel","$libstdc"],
+            available => 1, mode => "user", dist_req_build => 
+            ( $distro eq 'SuSE' && $arch eq "ppc64" )?( $build32 == 1 )?
+            ["gcc_3.3.3", "glibc-devel-64bit","glibc-devel","$libstdc"]:["gcc_3.3.3", "glibc-devel-64bit","$libstdc"]:
+            ["gcc_3.3.3", "glibc-devel-64bit","glibc-devel","$libstdc"],
             dist_req_inst => [], ofa_req_build => [], ofa_req_inst => ["ofed-scripts"], 
             install32 => 1, exception => 0, configure_options => '' },
         'libibverbs-devel' =>
@@ -816,7 +819,8 @@ my %packages_info = (
         'mstflint' =>
             { name => "mstflint", parent => "mstflint",
             selected => 0, installed => 0, rpm_exist => 0, rpm_exist32 => 0,
-            available => 1, mode => "user", dist_req_build => ["zlib-devel", "$libstdc_devel", "gcc-c++"],
+            available => 1, mode => "user", dist_req_build => ( $distro eq 'SuSE' && $arch eq "ppc64" )?
+            ["zlib-devel-64bit", "$libstdc_devel-64bit", "gcc-c++"]: ["zlib-devel", "$libstdc_devel", "gcc-c++"],
             dist_req_inst => [], ofa_req_build => [],
             ofa_req_inst => [],
             install32 => 0, exception => 0, configure_options => '' },
-- 
1.5.6.dirty





More information about the ewg mailing list