net-analyzer/net-snmp-5.8.1_pre1-r1 (and any others that net-snmp-5.8.1-mysqlclient.patch applied) fail to complete the configure stage. I suspect the culprit is within work/net-snmp-5.8.1.pre1/m4/pkg.m4 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually The only two packages checked with pkg-config are libnl-3.0 and mysqlclient the check for libnl-3.0 has ifdef( [PKG_CHECK_EXISTS], [PKG_CHECK_EXISTS([libnl-3.0], [PKG_CHECK_MODULES([LIBNL3], [libnl-3.0])]) ], while the patch listed above for mysqlclient does not. If USE="netlink mysql" is used the configure completes as the libnl-3.0 check primes PKG_PROG_PKG_CONFIG Reproducible: Always Steps to Reproduce: USE="mysql -netlink" emerge =net-analyzer/net-snmp-5.8.1_pre1-r1 Actual Results: ### trimmed configure output ### checking for MYSQL... no configure: error: in `/var/tmp/portage/net-analyzer/net-snmp-5.8.1_pre1-r1/work/net-snmp-5.8.1.pre1': configure: error: The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Expected Results: ### trimmed configure output ### checking for MYSQL... yes checking mysql.h usability... yes checking mysql.h presence... yes checking for mysql.h... yes ### trimmed configure output ###
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16e67f387d15d4fca63773fe38f561842b55c096 commit 16e67f387d15d4fca63773fe38f561842b55c096 Author: Jeroen Roovers <jer@gentoo.org> AuthorDate: 2020-08-10 15:53:03 +0000 Commit: Jeroen Roovers <jer@gentoo.org> CommitDate: 2020-08-10 15:53:26 +0000 net-analyzer/net-snmp: Call PKG_PROG_PKG_CONFIG in configure.ac Package-Manager: Portage-3.0.2, Repoman-2.3.23 Closes: https://bugs.gentoo.org/736465 Signed-off-by: Jeroen Roovers <jer@gentoo.org> net-analyzer/net-snmp/files/net-snmp-5.8.1-mysqlclient.patch | 11 +++++++++++ 1 file changed, 11 insertions(+)