From f51bc4524f673010bc0c576a9c62622226b607eb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Tue, 8 Jun 2010 07:49:36 +0000
Subject: [PATCH]  - add a way to avoid mandriva issues with packages

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36071 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/helpers/mandriva2010.0.sh | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/buildout/helpers/mandriva2010.0.sh b/buildout/helpers/mandriva2010.0.sh
index b737bbfd92..e2a6848dbd 100755
--- a/buildout/helpers/mandriva2010.0.sh
+++ b/buildout/helpers/mandriva2010.0.sh
@@ -12,7 +12,16 @@ Helper for buildout-base installation of ERP5 on Mandriva 2010.
    -h  shows this message
    -l  lists the required dependencies\
 """
+# Avoid some mandriva bugs, when package with canonical name libXXX
+# is wrongly only 32 bit
+if [ `uname -m` == "x86_64" ] ; then # XXX: Is it compilant way to fetch arch?
+  libs="lib64ungif4-devel"
+else
+  libs="libungif4-devel"
+fi
+
 PACKAGE_LIST="""\
+${libs}
 automake
 bison
 cpio
@@ -36,7 +45,6 @@ libpng-devel
 libreadline-devel
 libsasl2-devel
 libtermcap-devel
-libungif4-devel
 libxml2-devel
 libxslt-devel
 make
-- 
2.30.9