Skip to content

Commit 97fa477

Browse files
committed
fix(nmap)
closes #12401
1 parent d6480de commit 97fa477

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

projects/nmap.org/package.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,34 @@ dependencies:
1515

1616
build:
1717
dependencies:
18-
gnu.org/patch: '*'
18+
gnu.org/patch: "*"
1919
python.org: 3
20+
linux:
21+
kernel.org/linux-headers: "*"
2022
script:
2123
# https://github.com/openresty/openresty/issues/372
2224
- run: patch -p1 <props/openssl-1.1.1.patch
23-
if: '<7.94.0'
25+
if: "<7.94.0"
2426

2527
# missing python modules
2628
- python -m venv $HOME/venv
2729
- source $HOME/venv/bin/activate
2830
- python -m pip install build setuptools
2931

32+
- run:
33+
# setuptools can't resolve dynamic version in isolated build
34+
- sed -i -f $PROP ndiff/pyproject.toml
35+
# EC_GROUP_get_field_type is OpenSSL 3.0+; upstream wrongly guards with HAVE_OPAQUE_STRUCTS
36+
- sed -i 's/#elif HAVE_OPAQUE_STRUCTS/#elif OPENSSL_VERSION_NUMBER >= 0x30000000L/' nse_ssl_cert.cc
37+
prop: |
38+
s/dynamic = \["version"\]/version = "{{version}}"/
39+
/\[tool.setuptools.dynamic\]/,/^$/d
40+
if: ">=7.99"
41+
# netpacket/packet.h is a glibc header not available in pkgx;
42+
# patch libdnet-stripped configure to skip the "Ethernet support not found" error
43+
# and force PF_PACKET support (always available on modern Linux)
44+
- run: sed -i 's/as_fn_error.*Ethernet support not found.*/ac_cv_dnet_linux_pf_packet=yes/' libdnet-stripped/configure
45+
if: linux
3046
- ./configure $ARGS
3147

3248
# 7.96 is looking for libpcap/VERSION, but it's still named VERSION.txt, as in prior versions

0 commit comments

Comments
 (0)