1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

sysutils/barrier: unbreak build on non-OpenSSL 3 systems (12 and 13)

Builds of barrier started failing on non-OpenSSL 3 systems after
commit 29ba81195a 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 29ba81195a
conditionally solves the issue.

Approved by:	portmgr (build fix blanket)
This commit is contained in:
Hiroki Tagato 2023-07-25 11:03:35 +09:00
parent 629834653c
commit 6d297011f9
2 changed files with 6 additions and 0 deletions

View File

@ -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/