Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jun 2023 22:44:51 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d15691df9cfb - main - security/openvas: Fix build with llvm15
Message-ID:  <202306092244.359MipXI052738@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

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

commit d15691df9cfb01d0881d61b6c2e086f991003873
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-09 20:09:10 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-09 22:00:18 +0000

    security/openvas: Fix build with llvm15
    
    - Add missing LIB_DEPENDS and USES
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
---
 security/openvas/Makefile | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/security/openvas/Makefile b/security/openvas/Makefile
index c75024ec778a..a5febf2e4908 100644
--- a/security/openvas/Makefile
+++ b/security/openvas/Makefile
@@ -12,6 +12,7 @@ LICENSE=	GPLv2+
 BUILD_DEPENDS=	flex:textproc/flex
 LIB_DEPENDS=	libgvm_base.so:security/gvm-libs \
 		libgcrypt.so:security/libgcrypt \
+		libgpg-error.so:security/libgpg-error \
 		libpcap.so.1:net/libpcap \
 		libksba.so:security/libksba \
 		libgpgme.so:security/gpgme \
@@ -24,11 +25,11 @@ RUN_DEPENDS=	redis-server:databases/redis \
 		rsync:net/rsync \
 		nmap:security/nmap \
 		${PYTHON_PKGNAMEPREFIX}impacket>=0:net/py-impacket@${PY_FLAVOR}
+
+USES=		bison cmake gnome pkgconfig python:3.5+ ssl
 USE_GITHUB=	yes
 GH_ACCOUNT=	greenbone
 GH_PROJECT=	${PORTNAME}-scanner
-
-USES=		bison cmake gnome pkgconfig python:3.5+
 USE_GNOME=	glib20
 
 USERS=		gvm
@@ -36,10 +37,14 @@ GROUPS=		${USERS}
 
 .include <bsd.port.pre.mk>
 
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=strict-prototypes -Wno-error=unused-but-set-variable -Wno-error=invalid-utf8
+.endif
+
 post-patch:
-	@${REINPLACE_CMD} -e 's|g_pattern_match_string|g_pattern_spec_match_string|g' ${WRKSRC}/misc/strutils.c
 	@${REINPLACE_CMD} -e 's|#include <bsd/unistd.h>||g' ${WRKSRC}/src/attack.c ${WRKSRC}/src/nasl_plugins.c
 	@${REINPLACE_CMD} -e 's|#include <bsd/unistd.h>|#include <unistd.h>|g' ${WRKSRC}//src/pluginload.c
+	@${REINPLACE_CMD} -e 's|vendor_version_get ()|vendor_version_get (void)|g' ${WRKSRC}/misc/vendorversion.c
 
 post-install:
 	@${MKDIR} ${STAGEDIR}/var/run/ospd



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306092244.359MipXI052738>