From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7036A138359 for ; Thu, 6 Aug 2020 06:23:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F987E0878; Thu, 6 Aug 2020 06:23:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 52A00E0878 for ; Thu, 6 Aug 2020 06:23:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7D09534F33E for ; Thu, 6 Aug 2020 06:23:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DCFDE2FC for ; Thu, 6 Aug 2020 06:23:02 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1596694978.7f08935d12c8200027654193664b91a6312d8d05.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/net-snmp/, net-analyzer/net-snmp/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/net-snmp/files/net-snmp-5.8.1-mysqlclient.patch net-analyzer/net-snmp/net-snmp-5.8.1_pre1-r1.ebuild net-analyzer/net-snmp/net-snmp-5.8.1_pre2.ebuild net-analyzer/net-snmp/net-snmp-5.8.1_rc1.ebuild net-analyzer/net-snmp/net-snmp-99999999.ebuild X-VCS-Directories: net-analyzer/net-snmp/ net-analyzer/net-snmp/files/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 7f08935d12c8200027654193664b91a6312d8d05 X-VCS-Branch: master Date: Thu, 6 Aug 2020 06:23:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: aee214bf-4f54-4529-8f9a-d006c57e5a3d X-Archives-Hash: 0bcf5be6242c9aa597edd70fc91a6444 commit: 7f08935d12c8200027654193664b91a6312d8d05 Author: Jeroen Roovers gentoo org> AuthorDate: Thu Aug 6 06:18:09 2020 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Thu Aug 6 06:22:58 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f08935d net-analyzer/net-snmp: Use pkg-config to find libmysqlclient mysql_config --libs returns -L/.../$libdir which got half-heartedly fixed in its pkg-config files, so use that instead to prevent the linker from using a previously installed libnetsnmp. $ mysql_config --libs -L/usr/lib64 -lmysqlclient -lpthread -lz -lm -lrt -lssl -lcrypto -ldl $ pkg-config --libs mysqlclient -lmysqlclient Package-Manager: Portage-3.0.1, Repoman-2.3.23 Bug: https://bugs.gentoo.org/686416 Signed-off-by: Jeroen Roovers gentoo.org> .../net-snmp/files/net-snmp-5.8.1-mysqlclient.patch | 19 +++++++++++++++++++ net-analyzer/net-snmp/net-snmp-5.8.1_pre1-r1.ebuild | 2 ++ net-analyzer/net-snmp/net-snmp-5.8.1_pre2.ebuild | 3 ++- net-analyzer/net-snmp/net-snmp-5.8.1_rc1.ebuild | 3 ++- net-analyzer/net-snmp/net-snmp-99999999.ebuild | 1 + 5 files changed, 26 insertions(+), 2 deletions(-) diff --git a/net-analyzer/net-snmp/files/net-snmp-5.8.1-mysqlclient.patch b/net-analyzer/net-snmp/files/net-snmp-5.8.1-mysqlclient.patch new file mode 100644 index 00000000000..08735d1be7c --- /dev/null +++ b/net-analyzer/net-snmp/files/net-snmp-5.8.1-mysqlclient.patch @@ -0,0 +1,19 @@ +--- a/configure.d/config_os_libs2 ++++ b/configure.d/config_os_libs2 +@@ -516,6 +516,8 @@ + # mysql + ## + if test "x$with_mysql" = "xyes" ; then ++ PKG_CHECK_MODULES([MYSQL],[mysqlclient],[MYSQL_INCLUDES="$MYSQL_CFLAGS"],) ++ if test -x "$MYSQL_LIBS"; then + AC_PATH_PROGS(MYSQLCONFIG,mysql_config) + test -x "$MYSQLCONFIG" \ + || AC_MSG_ERROR([Could not find mysql_config and was specifically asked to use MySQL support]) +@@ -523,6 +525,7 @@ + MYSQL_INCLUDES=`$MYSQLCONFIG --include` + _libs="${LIBS}" + _cppflags="${CPPFLAGS}" ++ fi + LIBS="${LIBS} ${MYSQL_LIBS}" + CPPFLAGS="${CPPFLAGS} ${MYSQL_INCLUDES}" + AC_CHECK_HEADER(mysql.h,, diff --git a/net-analyzer/net-snmp/net-snmp-5.8.1_pre1-r1.ebuild b/net-analyzer/net-snmp/net-snmp-5.8.1_pre1-r1.ebuild index 0247614b974..48c7448ff41 100644 --- a/net-analyzer/net-snmp/net-snmp-5.8.1_pre1-r1.ebuild +++ b/net-analyzer/net-snmp/net-snmp-5.8.1_pre1-r1.ebuild @@ -79,6 +79,8 @@ PATCHES=( "${FILESDIR}"/${PN}-5.8-pcap.patch "${FILESDIR}"/${PN}-5.8-tinfo.patch "${FILESDIR}"/${PN}-5.8.1-pkg-config.patch + "${FILESDIR}"/${PN}-5.8.1-net-snmp-config-libdir.patch + "${FILESDIR}"/${PN}-5.8.1-mysqlclient.patch ) pkg_setup() { diff --git a/net-analyzer/net-snmp/net-snmp-5.8.1_pre2.ebuild b/net-analyzer/net-snmp/net-snmp-5.8.1_pre2.ebuild index 01b3f5ccf53..bff341a5bfc 100644 --- a/net-analyzer/net-snmp/net-snmp-5.8.1_pre2.ebuild +++ b/net-analyzer/net-snmp/net-snmp-5.8.1_pre2.ebuild @@ -80,6 +80,7 @@ PATCHES=( "${FILESDIR}"/${PN}-5.8-tinfo.patch "${FILESDIR}"/${PN}-5.8.1-pkg-config.patch "${FILESDIR}"/${PN}-5.8.1-net-snmp-config-libdir.patch + "${FILESDIR}"/${PN}-5.8.1-mysqlclient.patch ) pkg_setup() { @@ -146,7 +147,7 @@ src_compile() { use doc && emake docsdox } -src_install () { +src_install() { # bug #317965 emake -j1 DESTDIR="${D}" install diff --git a/net-analyzer/net-snmp/net-snmp-5.8.1_rc1.ebuild b/net-analyzer/net-snmp/net-snmp-5.8.1_rc1.ebuild index 885006e7fa2..06778b74907 100644 --- a/net-analyzer/net-snmp/net-snmp-5.8.1_rc1.ebuild +++ b/net-analyzer/net-snmp/net-snmp-5.8.1_rc1.ebuild @@ -79,6 +79,7 @@ PATCHES=( "${FILESDIR}"/${PN}-5.8-pcap.patch "${FILESDIR}"/${PN}-5.8.1-pkg-config.patch "${FILESDIR}"/${PN}-5.8.1-net-snmp-config-libdir.patch + "${FILESDIR}"/${PN}-5.8.1-mysqlclient.patch "${FILESDIR}"/${PN}-99999999-tinfo.patch ) @@ -146,7 +147,7 @@ src_compile() { use doc && emake docsdox } -src_install () { +src_install() { # bug #317965 emake -j1 DESTDIR="${D}" install diff --git a/net-analyzer/net-snmp/net-snmp-99999999.ebuild b/net-analyzer/net-snmp/net-snmp-99999999.ebuild index bc7fc206a2d..d75684cc5af 100644 --- a/net-analyzer/net-snmp/net-snmp-99999999.ebuild +++ b/net-analyzer/net-snmp/net-snmp-99999999.ebuild @@ -78,6 +78,7 @@ PATCHES=( "${FILESDIR}"/${PN}-5.8-pcap.patch "${FILESDIR}"/${PN}-5.8.1-pkg-config.patch "${FILESDIR}"/${PN}-5.8.1-net-snmp-config-libdir.patch + "${FILESDIR}"/${PN}-5.8.1-mysqlclient.patch "${FILESDIR}"/${PN}-99999999-tinfo.patch )