From 9d0206cf9459437d14e97f53372dd9ba7c3d8fc6 Mon Sep 17 00:00:00 2001 From: John Shahid Date: Tue, 22 Mar 2016 13:12:49 -0400 Subject: [PATCH] keep libmysqlclient.so files around for old apps to use only mariadb's version of `mysql_config` will stay around. This means new apps pushed will be using libmariadb.so but old apps will continue to use libmysqlclient.so [#116133553] --- cflinuxfs2/build/install-packages.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cflinuxfs2/build/install-packages.sh b/cflinuxfs2/build/install-packages.sh index 14dbb05..7e836f7 100644 --- a/cflinuxfs2/build/install-packages.sh +++ b/cflinuxfs2/build/install-packages.sh @@ -6,6 +6,14 @@ function apt_get() { apt-get -y --force-yes --no-install-recommends "$@" } +function install_mysql_so_files() { + apt_get install libmysqlclient-dev + tmp=`mktemp -d` + mv /usr/lib/x86_64-linux-gnu/libmysqlclient* $tmp + apt_get remove libmysqlclient-dev libmysqlclient18 + mv $tmp/* /usr/lib/x86_64-linux-gnu/ +} + packages=" aptitude autoconf @@ -69,7 +77,7 @@ libio-string-perl liblapack-dev libmagickcore-dev libmagickwand-dev -libmariadbd-dev +libmariadbclient-dev libncurses5-dev libnl-3-200 libopenblas-dev @@ -152,6 +160,8 @@ EOS apt_get install gpgv apt_get update apt_get dist-upgrade +# TODO: deprecate libmysqlclient +install_mysql_so_files apt_get install $packages ubuntu-minimal apt-get clean