Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Feb 2026 15:29:54 +0000
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Cc:        Eugene Sevastyanov <eval@iptk.ru>
Subject:   git: 7ffb506df86a - main - securty/nmap*: Fix dbus build
Message-ID:  <698608f2.1863c.340e887a@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7ffb506df86ad09e7e87d9f4f85112a1cc774d7e

commit 7ffb506df86ad09e7e87d9f4f85112a1cc774d7e
Author:     Eugene Sevastyanov <eval@iptk.ru>
AuthorDate: 2026-02-06 15:20:30 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2026-02-06 15:29:40 +0000

    securty/nmap*: Fix dbus build
    
    PR:     292989
---
 security/nmap-devel/Makefile | 6 ++++--
 security/nmap/Makefile       | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/security/nmap-devel/Makefile b/security/nmap-devel/Makefile
index 1dffa3ca9a72..87f1885dc836 100644
--- a/security/nmap-devel/Makefile
+++ b/security/nmap-devel/Makefile
@@ -19,7 +19,8 @@ LICENSE_PERMS=	auto-accept dist-mirror pkg-mirror pkg-sell
 
 IGNORE_FreeBSD_13=	 Does not build on FreeBSD 13.x due to OpenSSL 1.1.1
 
-LIB_DEPENDS=	libpcre2-16.so:devel/pcre2
+LIB_DEPENDS=	libpcre2-16.so:devel/pcre2 \
+		libdbus-1.so:devel/dbus
 
 .if !defined(MASTERDIR)
 
@@ -43,12 +44,13 @@ CONFIGURE_ARGS=--without-localdirs \
 MAKE_JOBS_UNSAFE=	yes
 GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 
+LDFLAGS+=	-L${LOCALBASE}/lib -ldbus-1
+
 OPTIONS_DEFINE=	DOCS NLS PCAP SSH2 SSL
 OPTIONS_DEFAULT=NLS SSH2 SSL
 OPTIONS_SUB=	yes
 
 PCAP_DESC=		Build with libpcap from nmap
-PCAP_BROKEN=		Broken libdbus linkage with builtin PCAP
 SSH2_DESC=		SSH2 protocol support
 
 NLS_CONFIGURE_ENABLE=	nls
diff --git a/security/nmap/Makefile b/security/nmap/Makefile
index aff9d80bd021..fbe2ae0b80dd 100644
--- a/security/nmap/Makefile
+++ b/security/nmap/Makefile
@@ -17,7 +17,8 @@ LICENSE_NAME=	Nmap Public Source License
 LICENSE_PERMS=	auto-accept dist-mirror pkg-mirror pkg-sell
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-LIB_DEPENDS=	libpcre2-16.so:devel/pcre2
+LIB_DEPENDS=	libpcre2-16.so:devel/pcre2 \
+		libdbus-1.so:devel/dbus
 
 .if !defined(MASTERDIR)
 
@@ -32,6 +33,8 @@ MAKE_JOBS_UNSAFE=	yes
 GNU_CONFIGURE=	yes
 GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 
+LDFLAGS+=	-L${LOCALBASE}/lib -ldbus-1
+
 OPTIONS_SUB=	yes
 OPTIONS_DEFINE=	DOCS NLS PCAP SSH2 SSL
 OPTIONS_DEFAULT=NLS SSH2 SSL
@@ -41,7 +44,6 @@ SSH2_DESC=		SSH2 protocol support
 
 NLS_CONFIGURE_ENABLE=	nls
 PCAP_CONFIGURE_ON=	--with-libpcap=included
-PCAP_BROKEN=		Broken libdbus linkage with builtin PCAP
 SSH2_CONFIGURE_ON=	--with-libssh2=included
 SSH2_CONFIGURE_OFF=	--without-libssh2
 SSH2_IMPLIES=		SSL


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?698608f2.1863c.340e887a>