Commit edb2180a authored by dcoutadeur dcoutadeur's avatar dcoutadeur dcoutadeur

update generation script: it is more automatic now


git-svn-id: svn://svn.forge.objectweb.org/svnroot/lemonldap/branches/lemonldap-ng_version_1_4-bugfixes@4951 1dbb9719-a921-0410-b57f-c3a383c2c641
parent 35fa67c8
...@@ -91,7 +91,6 @@ BUILD_DEPENDENCIES="gd-devel \ ...@@ -91,7 +91,6 @@ BUILD_DEPENDENCIES="gd-devel \
libXpm-devel \ libXpm-devel \
libX11-devel \ libX11-devel \
libvpx-devel \ libvpx-devel \
libtiff-devel \
postgresql94-server \ postgresql94-server \
postgresql94-devel \ postgresql94-devel \
libxslt-devel \ libxslt-devel \
...@@ -103,6 +102,8 @@ BUILD_DEPENDENCIES="gd-devel \ ...@@ -103,6 +102,8 @@ BUILD_DEPENDENCIES="gd-devel \
perl-Test-Fatal \ perl-Test-Fatal \
perl-Test-Exception \ perl-Test-Exception \
perl-Sub-Uplevel" perl-Sub-Uplevel"
#this dependency is broken on native SLES12SP1 packages
#libtiff-devel
# Perl modules are not used by default # Perl modules are not used by default
...@@ -169,9 +170,10 @@ prerequisite() ...@@ -169,9 +170,10 @@ prerequisite()
{ {
cd ~ cd ~
echo -e "\nInstalling RPMBUILD" echo -e "\nInstalling RPMBUILD"
zypper install rpmbuild createrepo zypper -n install rpmbuild createrepo
echo -e "\nInstalling cpanminus" echo -e "\nInstalling cpanminus"
export PERL_MM_USE_DEFAULT=1
cpan App::cpanminus cpan App::cpanminus
echo -e "\nSearching for Devel packages" echo -e "\nSearching for Devel packages"
...@@ -186,17 +188,17 @@ prerequisite() ...@@ -186,17 +188,17 @@ prerequisite()
if zypper lr | grep -q leap42 ; then if zypper lr | grep -q leap42 ; then
echo "OK: leap42 repo already present" echo "OK: leap42 repo already present"
else else
zypper addrepo \ zypper --gpg-auto-import-keys addrepo \
http://download.opensuse.org/distribution/leap/42.1/repo/oss/suse/ leap42 http://download.opensuse.org/distribution/leap/42.1/repo/oss/suse/ leap42
zypper refresh zypper --gpg-auto-import-keys refresh
fi fi
if zypper lr | grep -q "perl modules" ; then if zypper lr | grep -q "perl modules" ; then
echo "OK: 'perl modules' repo already present" echo "OK: 'perl modules' repo already present"
else else
zypper addrepo \ zypper --gpg-auto-import-keys addrepo \
http://download.opensuse.org/repositories/devel:languages:perl/SLE_12/devel:languages:perl.repo http://download.opensuse.org/repositories/devel:languages:perl/SLE_12/devel:languages:perl.repo
zypper refresh zypper --gpg-auto-import-keys refresh
fi fi
...@@ -226,7 +228,7 @@ install_basic_dependencies() ...@@ -226,7 +228,7 @@ install_basic_dependencies()
~/packages/dependencies/system-and-obs/ ~/packages/dependencies/system-and-obs/
# Install dependencies # Install dependencies
echo "Install dependencies" echo "Install dependencies"
zypper install ${PKG_DEPENDENCIES} zypper -n install ${PKG_DEPENDENCIES}
} }
...@@ -234,8 +236,7 @@ install_build_dependencies() ...@@ -234,8 +236,7 @@ install_build_dependencies()
{ {
cd ~ cd ~
echo -e "\n\nInstalling build dependancies\n" echo -e "\n\nInstalling build dependancies\n"
echo -e "Please downgrade libtiff if there is compatibility problems" zypper -n install ${BUILD_DEPENDENCIES}
zypper install ${BUILD_DEPENDENCIES}
# Installing all modules with CPAN # Installing all modules with CPAN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment