summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDavid Zmick <dpzmick@gmail.com>2023-01-19 12:50:53 -0600
committerGitHub <noreply@github.com>2023-01-19 19:50:53 +0100
commitb40e96b006c1ddb30648732ba1fff119b7786a2c (patch)
tree9017ea6804f8c60afba3e424534d4dd14b355f8e /var
parentc97f5ecfee133b9351ed42f99d6a2ef71614212c (diff)
downloadspack-b40e96b006c1ddb30648732ba1fff119b7786a2c.tar.gz
spack-b40e96b006c1ddb30648732ba1fff119b7786a2c.tar.bz2
spack-b40e96b006c1ddb30648732ba1fff119b7786a2c.tar.xz
spack-b40e96b006c1ddb30648732ba1fff119b7786a2c.zip
nmap: don't depend on py2 (ndiff and zenmap); add 7.93 (#34851)
Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/nmap/package.py38
1 files changed, 33 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/nmap/package.py b/var/spack/repos/builtin/packages/nmap/package.py
index 4170fd2d16..bd8f6b7f92 100644
--- a/var/spack/repos/builtin/packages/nmap/package.py
+++ b/var/spack/repos/builtin/packages/nmap/package.py
@@ -15,6 +15,7 @@ class Nmap(AutotoolsPackage):
url = "https://nmap.org/dist/nmap-7.70.tar.bz2"
list_url = "https://nmap.org/dist-old/"
+ version("7.93", sha256="55bcfe4793e25acc96ba4274d8c4228db550b8e8efd72004b38ec55a2dd16651")
version("7.92", sha256="a5479f2f8a6b0b2516767d2f7189c386c1dc858d997167d7ec5cfc798c7571a1")
version("7.91", sha256="18cc4b5070511c51eb243cdd2b0b30ff9b2c4dc4544c6312f75ce3a67a593300")
version("7.90", sha256="5557c3458275e8c43e1d0cfa5dad4e71dd39e091e2029a293891ad54098a40e8")
@@ -32,25 +33,52 @@ class Nmap(AutotoolsPackage):
variant("liblua", default=True, description="Enable lua (required by all of NSE)")
variant("ncat", default=True, description="Enable ncat")
- variant("ndiff", default=True, description="Enable ndiff")
variant("nping", default=True, description="Enable nping")
- variant("zenmap", default=True, description="Enable zenmap")
variant("nmap-update", default=False, description="Enable nmap-update")
- depends_on("openssl@1.1:", when="@7.50:")
+ # Release notes for 7.3: "Ensure Nmap builds with OpenSSL 3.0 using no
+ # deprecated API functions."
+ depends_on("openssl@3.0.7:", when="@7.93:")
+
+ # previous verisons use a few deprecated openssl apis
+ depends_on("openssl@1.1:", when="@7.50:7.92")
depends_on("openssl@:1.0.9", when="@:7.49")
+ # nmap vendors a few libraries, but we should build against spack's
+ # versions where appropriate. See their build guide at
+ # https://nmap.org/book/inst-source.html#inst-configure. Also see:
+ # https://github.com/nmap/nmap/issues/1602
+ #
+ # Any that are included "for convenience" we should provide.
+ #
+ # The recursive builds for vendored dependencies is also broken on
+ # darwin (something races); using our own deps works around that issue.
+ #
+ # Specifically, something is touching libpcre/configure during the build,
+ # which causes the recursive `make`'s configure.status --recheck pass to
+ # attempt to rerun configure. Rerunning configure fails and asks you to run
+ # `make distclean`.
+
+ depends_on("libssh2@1.10")
+ depends_on("pcre@8")
+ depends_on("zlib@1.2")
+
def configure_args(self):
args = []
# https://github.com/nmap/nmap/issues/2144
args.append("--disable-rdma")
+ # ndiff and zenmap both require python2, which is deprecated in spack.
+ # The next nmap release will fix this, so, disable these features
+ # completely for now. We will add flags for these features again
+ # when they can be supported without a dependency on python2
+ args.append("--disable-ndiff")
+ args.append("--disable-zenmap")
+
args += self.with_or_without("liblua")
args += self.with_or_without("ncat")
- args += self.with_or_without("ndiff")
args += self.with_or_without("nping")
- args += self.with_or_without("zenmap")
args += self.with_or_without("nmap-update")
return args