Commit https://github.com/nmap/nmap/commit/c6ffdbf7ae35e397b663f787fc4934f01458f945 revealed a bug in our nmap ebuilds. https://github.com/nmap/nmap/issues/2851#issuecomment-2282910081 "First, your logs indicate that you might be running configure with --with-pcre=/usr, while the correct option is --with-libpcre=/usr. So, to configure, it looks like you did not specify any location explicitly." - --with-pcre="${ESYSROOT}"/usr + --with-libpcre="${ESYSROOT}"/usr I can confirm build works.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16c922b4fd1d889ded3196b5aa37d6c9e511c8aa commit 16c922b4fd1d889ded3196b5aa37d6c9e511c8aa Author: Sam James <sam@gentoo.org> AuthorDate: 2024-09-01 07:41:19 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-09-01 09:04:22 +0000 net-analyzer/nmap: fix libpcre configure arg Not going to touch the older ebuilds as they work fine for now. Closes: https://bugs.gentoo.org/937837 Signed-off-by: Sam James <sam@gentoo.org> net-analyzer/nmap/nmap-9999.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Upstream also fixed their code. https://github.com/nmap/nmap/commit/bef25962e7931b903d56b277f61ab3a0de9c00f5 "Improve tests for finding libpcre2. Close #2907, see #2851, see #2913 - Include definition of PCRE2_CODE_UNIT_WIDTH to allow the header test to compile correctly - Add description to the definition of HAVE_PCRE2_PCRE2_H to prevent an autoheader missing template error"