Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Commit

Permalink
keep libmysqlclient.so files around for old apps to use
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
jvshahid committed Mar 22, 2016
1 parent 7af7e28 commit 9d0206c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion cflinuxfs2/build/install-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -69,7 +77,7 @@ libio-string-perl
liblapack-dev
libmagickcore-dev
libmagickwand-dev
libmariadbd-dev
libmariadbclient-dev
libncurses5-dev
libnl-3-200
libopenblas-dev
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9d0206c

Please sign in to comment.