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 \
libXpm-devel \
libX11-devel \
libvpx-devel \
libtiff-devel \
postgresql94-server \
postgresql94-devel \
libxslt-devel \
......@@ -103,6 +102,8 @@ BUILD_DEPENDENCIES="gd-devel \
perl-Test-Fatal \
perl-Test-Exception \
perl-Sub-Uplevel"
#this dependency is broken on native SLES12SP1 packages
#libtiff-devel
# Perl modules are not used by default
......@@ -169,9 +170,10 @@ prerequisite()
{
cd ~
echo -e "\nInstalling RPMBUILD"
zypper install rpmbuild createrepo
zypper -n install rpmbuild createrepo
echo -e "\nInstalling cpanminus"
export PERL_MM_USE_DEFAULT=1
cpan App::cpanminus
echo -e "\nSearching for Devel packages"
......@@ -186,17 +188,17 @@ prerequisite()
if zypper lr | grep -q leap42 ; then
echo "OK: leap42 repo already present"
else
zypper addrepo \
zypper --gpg-auto-import-keys addrepo \
http://download.opensuse.org/distribution/leap/42.1/repo/oss/suse/ leap42
zypper refresh
zypper --gpg-auto-import-keys refresh
fi
if zypper lr | grep -q "perl modules" ; then
echo "OK: 'perl modules' repo already present"
else
zypper addrepo \
zypper --gpg-auto-import-keys addrepo \
http://download.opensuse.org/repositories/devel:languages:perl/SLE_12/devel:languages:perl.repo
zypper refresh
zypper --gpg-auto-import-keys refresh
fi
......@@ -226,7 +228,7 @@ install_basic_dependencies()
~/packages/dependencies/system-and-obs/
# Install dependencies
echo "Install dependencies"
zypper install ${PKG_DEPENDENCIES}
zypper -n install ${PKG_DEPENDENCIES}
}
......@@ -234,8 +236,7 @@ install_build_dependencies()
{
cd ~
echo -e "\n\nInstalling build dependancies\n"
echo -e "Please downgrade libtiff if there is compatibility problems"
zypper install ${BUILD_DEPENDENCIES}
zypper -n install ${BUILD_DEPENDENCIES}
# 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