git: 4c6d8f91777e - main - www/onlyoffice-documentserver: Fix build when ssl=base
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Sep 2025 08:12:23 UTC
The branch main has been updated by mikael:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4c6d8f91777e886049bf0a1fbb1d75bf4e3cafb3
commit 4c6d8f91777e886049bf0a1fbb1d75bf4e3cafb3
Author: Matt Kempe <fsbruva@yahoo.com>
AuthorDate: 2025-09-06 03:13:29 +0000
Commit: Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2025-09-10 08:11:50 +0000
www/onlyoffice-documentserver: Fix build when ssl=base
PR: 289287
---
www/onlyoffice-documentserver/Makefile | 9 ++++++---
.../files/patch-core_Common_3dParty_openssl_openssl.pri | 4 ++--
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/www/onlyoffice-documentserver/Makefile b/www/onlyoffice-documentserver/Makefile
index a41f0027e3d5..c361d98c4336 100644
--- a/www/onlyoffice-documentserver/Makefile
+++ b/www/onlyoffice-documentserver/Makefile
@@ -16,8 +16,10 @@ WWW= https://www.onlyoffice.com/
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+BROKEN_SSL= boringssl libressl libressl-devel
+BROKEN_SSL_REASON= Node.js requires OpenSSL
ONLY_FOR_ARCHS= aarch64 amd64
-ONLY_FOR_ARCHS_REASON= "Upstream only supports amd64 and arm64"
+ONLY_FOR_ARCHS_REASON= Upstream only supports amd64 and arm64
# node version used with "npm install @yao-pkg/pkg@6.6.0"
# keep in sync with patch-build__tools_scripts_build__server.py and patch-document-server-package_Makefile
@@ -50,7 +52,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}supervisor>0:sysutils/py-supervisor@${PY_FLA
webfonts>=0:x11-fonts/webfonts
USES= autoreconf:build dos2unix fakeroot gmake gnome iconv localbase pkgconfig \
- python:3.9+,build qt:5 ssl:build trigger
+ python:3.9+,build qt:5 ssl trigger
DOS2UNIX_FILES= document-server-package/common/documentserver/nginx/includes/http-common.conf.m4
@@ -165,7 +167,6 @@ pre-configure:
${WRKSRC}/core/Apple/IWork.pro \
${WRKSRC}/core/Common/3dParty/boost/boost.pri \
${WRKSRC}/core/Common/3dParty/icu/icu.pri \
- ${WRKSRC}/core/Common/3dParty/openssl/openssl.pri \
${WRKSRC}/core/Common/3dParty/v8_89/v8/build/toolchain/gcc_toolchain.gni \
${WRKSRC}/core/Common/3dParty/v8_89/v8/buildtools/third_party/libc++/BUILD.gn \
${WRKSRC}/core/DesktopEditor/fontengine/ApplicationFonts.cpp \
@@ -199,6 +200,8 @@ pre-configure:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' -e 's|%%ETCDIR%%|${ETCDIR}|' \
${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-flush-cache.sh.m4 \
${WRKSRC}/document-server-package/Makefile
+ @${REINPLACE_CMD} 's|%%OPENSSL_LIB%%|${OPENSSLLIB}|' \
+ ${WRKSRC}/core/Common/3dParty/openssl/openssl.pri
@${RM} ${WRKSRC}/web-apps/build/patches/optipng-bin+5.1.0.patch.orig
@${RM} ${WRKSRC}/server/Metrics/patches/modern-syslog+1.2.0.patch.orig
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_openssl_openssl.pri b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_openssl_openssl.pri
index bdd57c356f17..0d407de32790 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_openssl_openssl.pri
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_openssl_openssl.pri
@@ -6,8 +6,8 @@
} else {
- LIBS += $$OPENSSL_LIBS_DIRECTORY/libssl.a
- LIBS += $$OPENSSL_LIBS_DIRECTORY/libcrypto.a
-+ LIBS += %%LOCALBASE%%/lib/libssl.a
-+ LIBS += %%LOCALBASE%%/lib/libcrypto.a
++ LIBS += %%OPENSSL_LIB%%/libssl.so
++ LIBS += %%OPENSSL_LIB%%/libcrypto.so
}
INCLUDEPATH += $$OPENSSL_LIBS_DIRECTORY/../include