commit: 01aa5c86f215262b6ebac3b597553e6d2b487ea7 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> AuthorDate: Sat Sep 22 22:50:58 2018 +0000 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> CommitDate: Sun Sep 23 01:27:01 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01aa5c86
net-analyzer/ndoutils: replace virtual/mysql build-time dependency. The ndoutils build system (m4/np_mysqlclient.m4) requires the mysql_config program at build time but doesn't require any of the other server files to be present Per bug 665954, I've replaced the virtual/mysql DEPEND with dev-db/mysql-connector-c. The mysql virtual is still used in RDEPEND because, as far as I know, either server is still supported at runtime regardless of the client library in use. In an unrelated change, two symlinks were made relative to please repoman. Their targets were also made executable, since otherwise you can't run them via the symlinks. Closes: https://bugs.gentoo.org/665954 Package-Manager: Portage-2.3.40, Repoman-2.3.9 ...utils-2.1.3.ebuild => ndoutils-2.1.3-r1.ebuild} | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/net-analyzer/ndoutils/ndoutils-2.1.3.ebuild b/net-analyzer/ndoutils/ndoutils-2.1.3-r1.ebuild similarity index 85% rename from net-analyzer/ndoutils/ndoutils-2.1.3.ebuild rename to net-analyzer/ndoutils/ndoutils-2.1.3-r1.ebuild index 1872b7849d8..57a0389779b 100644 --- a/net-analyzer/ndoutils/ndoutils-2.1.3.ebuild +++ b/net-analyzer/ndoutils/ndoutils-2.1.3-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -14,11 +14,12 @@ KEYWORDS="~amd64 ~ppc ~x86" # We require the "nagios" user from net-analyzer/nagios-core at build # time. -DEPEND="dev-perl/DBD-mysql +DEPEND="dev-db/mysql-connector-c + dev-perl/DBD-mysql dev-perl/DBI - >=net-analyzer/nagios-core-4 + >=net-analyzer/nagios-core-4" +RDEPEND="${DEPEND} virtual/mysql" -RDEPEND="${DEPEND}" S="${WORKDIR}/${PN}-${P}" @@ -74,12 +75,17 @@ src_install() { # The documentation isn't installed by the build system dodoc -r docs/html - # Use symlinks because the installdb/upgradedb scripts use relative - # paths to the SQL queries. insinto "/usr/share/${PN}" doins -r db - dosym "/usr/share/${PN}/db/installdb" /usr/bin/ndoutils-installdb - dosym "/usr/share/${PN}/db/upgradedb" /usr/bin/ndoutils-upgradedb + + # These need to be executable... + exeinto "/usr/share/${PN}/db" + doexe db/{installdb,prepsql,upgradedb} + + # Use symlinks because the installdb/upgradedb scripts use relative + # paths to the SQL queries. + dosym "../share/${PN}/db/installdb" /usr/bin/ndoutils-installdb + dosym "../share/${PN}/db/upgradedb" /usr/bin/ndoutils-upgradedb } pkg_postinst() {
