diff options
author | 2017-07-18 22:37:00 -0400 | |
---|---|---|
committer | 2017-07-18 22:37:00 -0400 | |
commit | 037d7629abe09d14a5c01f69c7e2ca2c8e15b29b (patch) | |
tree | 37111a7e68d1dc6f210610f610a1b4274e08f8ca | |
parent | dev-db/mariadb: Version bump (diff) | |
download | mysql-037d7629abe09d14a5c01f69c7e2ca2c8e15b29b.tar.gz mysql-037d7629abe09d14a5c01f69c7e2ca2c8e15b29b.tar.bz2 mysql-037d7629abe09d14a5c01f69c7e2ca2c8e15b29b.zip |
dev-db/mariadb: Fix multilib symlinks
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Manifest-Sign-Key: 0xD1F781EFF9F4A3B6
-rw-r--r-- | dev-db/mariadb/mariadb-10.2.7.ebuild | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/dev-db/mariadb/mariadb-10.2.7.ebuild b/dev-db/mariadb/mariadb-10.2.7.ebuild index ff19ca8..2c2b865 100644 --- a/dev-db/mariadb/mariadb-10.2.7.ebuild +++ b/dev-db/mariadb/mariadb-10.2.7.ebuild @@ -220,6 +220,14 @@ multilib_src_install() { insinto /usr/include/mysql/private doins "${S}"/sql/*.h fi + + # Install compatible symlinks to libmysqlclient + use static-libs && dosym libmariadbclient.a "${EPREFIX}/usr/$(get_libdir)/libmysqlclient.a" + dosym libmariadb.so.3 "${EPREFIX}/usr/$(get_libdir)/libmysqlclient.so" + dosym libmariadb.so.3 "${EPREFIX}/usr/$(get_libdir)/libmysqlclient.so.${SUBSLOT}" + + # Kill old libmysqclient_r symlinks if they exist. Time to fix what depends on them. + find "${D}" -name 'libmysqlclient_r.*' -type l -delete || die } multilib_src_install_all() { @@ -306,11 +314,6 @@ multilib_src_install_all() { #Remove mytop if perl is not selected [[ -e "${ED}/usr/bin/mytop" ]] && ! use perl && rm -f "${ED}/usr/bin/mytop" - - # Install compatible symlinks to libmysqlclient - use static-libs && dosym libmariadbclient.a "${EPREFIX}/usr/$(get_libdir)/libmysqlclient.a" - dosym libmariadb.so.3 "${EPREFIX}/usr/$(get_libdir)/libmysqlclient.so" - dosym libmariadb.so.3 "${EPREFIX}/usr/$(get_libdir)/libmysqlclient.so.${SUBSLOT}" } # Official test instructions: |