aboutsummaryrefslogtreecommitdiff
path: root/sysutils/barrier
diff options
context:
space:
mode:
authorHiroki Tagato <tagattie@FreeBSD.org>2023-07-25 02:03:35 +0000
committerHiroki Tagato <tagattie@FreeBSD.org>2023-07-25 02:11:35 +0000
commit6d297011f9ea49d22bc36aa2c1fcda549db4ebba (patch)
tree79ea802e4c10ac1344640f196ddcfcd2f4cbe938 /sysutils/barrier
parent629834653cee573fffed0f688feed0d548cf021e (diff)
downloadports-6d297011f9ea49d22bc36aa2c1fcda549db4ebba.tar.gz
ports-6d297011f9ea49d22bc36aa2c1fcda549db4ebba.zip
sysutils/barrier: unbreak build on non-OpenSSL 3 systems (12 and 13)
Builds of barrier started failing on non-OpenSSL 3 systems after commit 29ba81195ab384a6b4de7c953cb6ac8ca2fff557 with the following error: /wrkdirs/usr/ports/sysutils/barrier/work/barrier-2.4.0/src/lib/net/SecureUtils.cpp:163:25: error: use of undeclared identifier 'EVP_RSA_gen' auto* private_key = EVP_RSA_gen(2048); ^ 1 warning and 1 error generated. Applying the patch in commit 29ba81195ab384a6b4de7c953cb6ac8ca2fff557 conditionally solves the issue. Approved by: portmgr (build fix blanket)
Diffstat (limited to 'sysutils/barrier')
-rw-r--r--sysutils/barrier/Makefile6
-rw-r--r--sysutils/barrier/files/extra-patch-src_lib_net_SecureUtils.cpp (renamed from sysutils/barrier/files/patch-src_lib_net_SecureUtils.cpp)0
2 files changed, 6 insertions, 0 deletions
diff --git a/sysutils/barrier/Makefile b/sysutils/barrier/Makefile
index 6e7b9abdf0d8..3d3c2e4feb64 100644
--- a/sysutils/barrier/Makefile
+++ b/sysutils/barrier/Makefile
@@ -37,6 +37,12 @@ GUI_USES= qt:5
GUI_USE= QT=core,gui,network,widgets,buildtools:build,qmake:build
GUI_CMAKE_BOOL= BARRIER_BUILD_GUI
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092
+EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_lib_net_SecureUtils.cpp
+.endif
+
post-extract:
@${CP} -a ${WRKSRC_gulrak}/include ${WRKSRC}/ext/gulrak-filesystem/
diff --git a/sysutils/barrier/files/patch-src_lib_net_SecureUtils.cpp b/sysutils/barrier/files/extra-patch-src_lib_net_SecureUtils.cpp
index 4fb4e8c4bea0..4fb4e8c4bea0 100644
--- a/sysutils/barrier/files/patch-src_lib_net_SecureUtils.cpp
+++ b/sysutils/barrier/files/extra-patch-src_lib_net_SecureUtils.cpp