diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2018-11-14 19:48:06 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2018-11-14 20:22:21 +0100 |
commit | 123be6f14a952ffa1a932ff25a361eaf5cb43c2a (patch) | |
tree | fa459012ee2b928f4e27eb2417271604815da06b /dev-db/mysql-connector-c | |
parent | app-admin/conky: Revison bump to conky conky-1.10.8-r4. (diff) | |
download | gentoo-123be6f14a952ffa1a932ff25a361eaf5cb43c2a.tar.gz gentoo-123be6f14a952ffa1a932ff25a361eaf5cb43c2a.tar.bz2 gentoo-123be6f14a952ffa1a932ff25a361eaf5cb43c2a.zip |
dev-db/mysql-connector-c: drop USE=ssl
USE flag "ssl" is normally used to control if package will link
against any SSL/TLS provider or not. In this case it was used to
control usage of system or bundled SSL version.
Because bundled SSL version doesn't compile and isn't recommend
at all, we are dropping "ssl" USE flag.
Closes: https://bugs.gentoo.org/663996
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-db/mysql-connector-c')
-rw-r--r-- | dev-db/mysql-connector-c/mysql-connector-c-6.1.11-r1.ebuild | 12 | ||||
-rw-r--r-- | dev-db/mysql-connector-c/mysql-connector-c-6.1.11.ebuild | 82 |
2 files changed, 5 insertions, 89 deletions
diff --git a/dev-db/mysql-connector-c/mysql-connector-c-6.1.11-r1.ebuild b/dev-db/mysql-connector-c/mysql-connector-c-6.1.11-r1.ebuild index 7ec9bf8b064f..dd2a019b71b8 100644 --- a/dev-db/mysql-connector-c/mysql-connector-c-6.1.11-r1.ebuild +++ b/dev-db/mysql-connector-c/mysql-connector-c-6.1.11-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -22,14 +22,12 @@ KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~mips ppc ppc64 ~s390 ~sparc x86" SUBSLOT="18" SLOT="0/${SUBSLOT}" -IUSE="libressl +ssl static-libs" +IUSE="libressl static-libs" CDEPEND=" sys-libs/zlib:=[${MULTILIB_USEDEP}] - ssl? ( - libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] ) - !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) - ) + libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] ) + !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) " RDEPEND="${CDEPEND} !dev-db/mysql[client-libs(+)] @@ -67,7 +65,7 @@ multilib_src_configure() { -DMYSQL_UNIX_ADDR="${EPREFIX}/var/run/mysqld/mysqld.sock" -DWITH_ZLIB=system -DENABLE_DTRACE=OFF - -DWITH_SSL=$(usex ssl system bundled) + -DWITH_SSL=system -DLIBMYSQL_OS_OUTPUT_NAME=mysqlclient -DSHARED_LIB_PATCH_VERSION="0" ) diff --git a/dev-db/mysql-connector-c/mysql-connector-c-6.1.11.ebuild b/dev-db/mysql-connector-c/mysql-connector-c-6.1.11.ebuild deleted file mode 100644 index b0fd77fa0d6c..000000000000 --- a/dev-db/mysql-connector-c/mysql-connector-c-6.1.11.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit cmake-multilib - -MULTILIB_WRAPPED_HEADERS+=( - /usr/include/mysql/my_config.h -) - -# wrap the config script -MULTILIB_CHOST_TOOLS=( /usr/bin/mysql_config ) - -DESCRIPTION="C client library for MariaDB/MySQL" -HOMEPAGE="https://dev.mysql.com/downloads/connector/c/" -LICENSE="GPL-2" - -SRC_URI="https://dev.mysql.com/get/Downloads/Connector-C/${P}-src.tar.gz" -S="${WORKDIR}/${P}-src" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~sparc ~x86" - -SUBSLOT="18" -SLOT="0/${SUBSLOT}" -IUSE="+ssl static-libs" - -CDEPEND=" - sys-libs/zlib:=[${MULTILIB_USEDEP}] - ssl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) - " -RDEPEND="${CDEPEND} - !dev-db/mysql[client-libs(+)] - !dev-db/mysql-cluster[client-libs(+)] - !dev-db/mariadb[client-libs(+)] - !dev-db/mariadb-connector-c[mysqlcompat] - !dev-db/mariadb-galera[client-libs(+)] - !dev-db/percona-server[client-libs(+)] - " -DEPEND="${CDEPEND}" - -DOCS=( README ) -PATCHES=( - "${FILESDIR}/mysql_com.patch" - "${FILESDIR}/20028_all_mysql-5.6-gcc7.patch" -) - -src_prepare() { - sed -i -e 's/CLIENT_LIBS/CONFIG_CLIENT_LIBS/' "${S}/scripts/CMakeLists.txt" || die - cmake-utils_src_prepare -} - -multilib_src_configure() { - mycmakeargs+=( - -DINSTALL_LAYOUT=RPM - -DINSTALL_LIBDIR=$(get_libdir) - -DWITH_DEFAULT_COMPILER_OPTIONS=OFF - -DWITH_DEFAULT_FEATURE_SET=OFF - -DENABLED_LOCAL_INFILE=ON - -DMYSQL_UNIX_ADDR="${EPREFIX}/var/run/mysqld/mysqld.sock" - -DWITH_ZLIB=system - -DENABLE_DTRACE=OFF - -DWITH_SSL=$(usex ssl system bundled) - -DLIBMYSQL_OS_OUTPUT_NAME=mysqlclient - -DSHARED_LIB_PATCH_VERSION="0" - ) - cmake-utils_src_configure -} - -multilib_src_install_all() { - if ! use static-libs ; then - find "${ED}" -name "*.a" -delete || die - fi -} - -pkg_preinst() { - if [[ -z ${REPLACING_VERSIONS} && -e "${EROOT}usr/$(get_libdir)/libmysqlclient.so" ]] ; then - elog "Due to ABI changes when switching between different client libraries," - elog "revdep-rebuild must find and rebuild all packages linking to libmysqlclient." - elog "Please run: revdep-rebuild --library libmysqlclient.so.${SUBSLOT}" - ewarn "Failure to run revdep-rebuild may cause issues with other programs or libraries" - fi -} |