mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
net-analyzer/nmap: fix build with < OpenSSL 3; don't automagically detect python2
Closes: https://bugs.gentoo.org/868483 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -5,7 +5,8 @@ EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua5-3 )
|
||||
LUA_REQ_USE="deprecated"
|
||||
inherit autotools lua-single toolchain-funcs
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
inherit autotools flag-o-matic lua-single python-any-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="Network exploration tool and security / port scanner"
|
||||
HOMEPAGE="https://nmap.org/"
|
||||
@@ -51,7 +52,10 @@ RDEPEND="
|
||||
system-lua? ( ${LUA_DEPS} )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
if [[ ${PV} != *9999* ]] ; then
|
||||
BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-nmap )"
|
||||
@@ -71,6 +75,8 @@ PATCHES=(
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
|
||||
use system-lua && lua-single_pkg_setup
|
||||
}
|
||||
|
||||
@@ -96,6 +102,13 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export ac_cv_path_PYTHON="${PYTHON}"
|
||||
export am_cv_pathless_PYTHON="${EPYTHON}"
|
||||
|
||||
# Workaround for https://github.com/nmap/nmap/issues/2516
|
||||
# bug #868483
|
||||
append-cppflags -DOPENSSL_API_COMPAT=10101
|
||||
|
||||
# The bundled libdnet is incompatible with the version available in the
|
||||
# tree, so we cannot use the system library here.
|
||||
econf \
|
||||
|
||||
@@ -5,7 +5,8 @@ EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua5-3 )
|
||||
LUA_REQ_USE="deprecated"
|
||||
inherit autotools lua-single toolchain-funcs
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
inherit autotools flag-o-matic lua-single python-any-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="Network exploration tool and security / port scanner"
|
||||
HOMEPAGE="https://nmap.org/"
|
||||
@@ -51,7 +52,10 @@ RDEPEND="
|
||||
system-lua? ( ${LUA_DEPS} )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
if [[ ${PV} != *9999* ]] ; then
|
||||
BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-nmap )"
|
||||
@@ -71,6 +75,8 @@ PATCHES=(
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
|
||||
use system-lua && lua-single_pkg_setup
|
||||
}
|
||||
|
||||
@@ -96,6 +102,13 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export ac_cv_path_PYTHON="${PYTHON}"
|
||||
export am_cv_pathless_PYTHON="${EPYTHON}"
|
||||
|
||||
# Workaround for https://github.com/nmap/nmap/issues/2516
|
||||
# bug #868483
|
||||
append-cppflags -DOPENSSL_API_COMPAT=10101
|
||||
|
||||
# The bundled libdnet is incompatible with the version available in the
|
||||
# tree, so we cannot use the system library here.
|
||||
econf \
|
||||
|
||||
Reference in New Issue
Block a user