Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jul 2023 16:09:31 GMT
From:      Mikael Urankar <mikael@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: bebb90bffaf1 - main - www/onlyoffice-documentserver: Update to 7.4.0
Message-ID:  <202307241609.36OG9VZa014379@gitrepo.freebsd.org>

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

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

commit bebb90bffaf173b18d39f0e7d0029504c11b1c9f
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2023-07-24 16:06:55 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2023-07-24 16:09:27 +0000

    www/onlyoffice-documentserver: Update to 7.4.0
    
    Changes:
      https://github.com/ONLYOFFICE/DocumentServer/blob/v7.4.0/CHANGELOG.md
---
 www/onlyoffice-documentserver/Makefile             |   55 +-
 www/onlyoffice-documentserver/distinfo             |   54 +-
 .../files/ds-converter.conf                        |    6 +-
 .../files/ds-docservice.conf                       |    6 +-
 .../files/ds-metrics.conf                          |    4 +-
 ...patch-pkg-fetch_patches_node.v16.13.0.cpp.patch |   29 +-
 .../files/patch-build__tools_scripts_base.py       |   10 +-
 ...ild__tools_scripts_core__common_make__common.py |   12 +-
 ...d__tools_scripts_core__common_modules_v8__89.py |   87 +
 .../patch-core_Common_3dParty_openssl_openssl.pri  |   13 +
 ...n_3dParty_v8__89_v8_build_config_clang_BUILD.gn |   11 +
 .../files/patch-core_Common_3dParty_v8_v8_BUILD.gn |    4 +-
 ...core_Common_3dParty_v8_v8_build_config_BUILD.gn |    4 +-
 ...ommon_3dParty_v8_v8_build_config_BUILDCONFIG.gn |    4 +-
 ...on_3dParty_v8_v8_build_config_compiler_BUILD.gn |    4 +-
 ...dParty_v8_v8_build_config_compiler_compiler.gni |    4 +-
 ..._Common_3dParty_v8_v8_build_config_features.gni |    4 +-
 ...dParty_v8_v8_build_config_freetype_freetype.gni |    4 +-
 ...ommon_3dParty_v8_v8_build_config_linux_BUILD.gn |    4 +-
 ..._3dParty_v8_v8_build_config_linux_pkg-config.py |    4 +-
 ...e_Common_3dParty_v8_v8_build_config_sysroot.gni |    4 +-
 ...ommon_3dParty_v8_v8_build_detect__host__arch.py |    4 +-
 ...e_Common_3dParty_v8_v8_build_gn__run__binary.py |    4 +-
 ...ore_Common_3dParty_v8_v8_build_linux_chrome.map |    4 +-
 ...ommon_3dParty_v8_v8_build_linux_libpci_BUILD.gn |    4 +-
 ...on_3dParty_v8_v8_build_linux_unbundle_libusb.gn |    4 +-
 ...8_v8_build_linux_unbundle_replace__gn__files.py |    4 +-
 ...dParty_v8_v8_build_toolchain_gcc__toolchain.gni |    4 +-
 ...v8_v8_build_toolchain_get__concurrent__links.py |    4 +-
 ...y_v8_v8_buildtools_third__party_libc++_BUILD.gn |    4 +-
 ...ch-core_Common_3dParty_v8_v8_include_v8config.h |    4 +-
 .../patch-core_Common_3dParty_v8_v8_src_api_api.cc |    4 +-
 ...patch-core_Common_3dParty_v8_v8_src_base_cpu.cc |    4 +-
 ...rty_v8_v8_src_base_platform_platform-freebsd.cc |    4 +-
 ...Party_v8_v8_src_base_platform_platform-posix.cc |    4 +-
 ...ch-core_Common_3dParty_v8_v8_src_d8_d8-posix.cc |    4 +-
 ...ore_Common_3dParty_v8_v8_testing_gmock_BUILD.gn |    4 +-
 ...Common_3dParty_v8_v8_third__party_zlib_BUILD.gn |    4 +-
 ...3dParty_v8_v8_third__party_zlib_cpu__features.c |    4 +-
 ...ore_DesktopEditor_doctrenderer_doctrenderer.pro |   14 +-
 .../patch-core_DesktopEditor_doctrenderer_hash.cpp |   67 +
 ...atch-core_DesktopEditor_pluginsmanager_main.cpp |   20 +
 ..._test_OpenSSL__gui__test_OpenSSL__gui__test.pro |   13 -
 ...MsBinaryFile_Common_Vml_PPTShape_BinaryReader.h |   11 -
 ...OXML_Binary_Sheets_Reader_ChartFromToBinary.cpp |   11 +
 ..._DrawingConverter_ASCOfficeDrawingConverter.cpp |   16 +
 ...-core_OOXML_XlsxFormat_Chart_ChartSerialize.cpp |   11 +
 ...rver_bin_documentserver-generate-allfonts.sh.m4 |   23 +-
 ...umentserver_bin_documentserver-jwt-status.sh.m4 |   39 +
 ...tserver_bin_documentserver-pluginsmanager.sh.m4 |   50 +
 ...mentserver_bin_documentserver-static-gzip.sh.m4 |   28 +
 ...rver_bin_documentserver-update-securelink.sh.m4 |   65 +
 www/onlyoffice-documentserver/files/pkg-message.in |    5 +-
 www/onlyoffice-documentserver/pkg-plist            | 3389 ++++++++++++++------
 54 files changed, 3102 insertions(+), 1059 deletions(-)

diff --git a/www/onlyoffice-documentserver/Makefile b/www/onlyoffice-documentserver/Makefile
index e8a6c00dde30..6c663109bfd2 100644
--- a/www/onlyoffice-documentserver/Makefile
+++ b/www/onlyoffice-documentserver/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	onlyoffice-documentserver
 DISTVERSIONPREFIX=	v
-DISTVERSION=	7.3.3.49
-PORTREVISION=	4
+DISTVERSION=	7.4.0.163
 CATEGORIES=	www
 MASTER_SITES+=	LOCAL/mikael/v8/:source1 \
 		LOCAL/mikael/onlyoffice/:source2 \
@@ -27,7 +26,8 @@ BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \
 		gn:devel/gn \
 		java:java/openjdk11 \
 		ninja:devel/ninja \
-		npm:www/npm-node16
+		npm:www/npm-node16 \
+		${LOCALBASE}/lib/libcrypto.a:security/openssl30
 LIB_DEPENDS=	libboost_regex.so:devel/boost-libs \
 		libcurl.so:ftp/curl \
 		libharfbuzz.so:print/harfbuzz \
@@ -59,7 +59,7 @@ GH_TUPLE=	ONLYOFFICE:core:v${DISTVERSION}:core/core \
 		ONLYOFFICE:DocumentBuilder:626d1e44db3d06ceb8298215a67ef0475912d89a:document_builder/DocumentBuilder \
 		ONLYOFFICE:onlyoffice.github.io:b26d001664d771df4f663d2d3ba7dd4a188b6cab:sdkjs_plugins_v1/onlyoffice.github.io \
 		ONLYOFFICE:document-server-package:v${DISTVERSION}:dsp/document-server-package \
-		hackers-painters:katana-parser:499118d3:hackers_painters_katana/core/Common/3dParty/html/katana-parser \
+		jasenhuang:katana-parser:be6df45:jasenhuang_katana/core/Common/3dParty/html/katana-parser \
 		google:gumbo-parser:aa91b27:google_gumbo/core/Common/3dParty/html/gumbo-parser
 
 OPTIONS_SINGLE=		DB
@@ -107,7 +107,7 @@ DOS2UNIX_FILES=	document-server-package/common/documentserver/nginx/includes/htt
 CONFLICTS_BUILD=devel/googletest
 
 post-extract:
-	@${MV} ${WRKDIR}/v8 ${WRKSRC}/core/Common/3dParty/v8
+	@${MV} ${WRKDIR}/v8 ${WRKSRC}/core/Common/3dParty/v8_89
 
 	@${MKDIR} ${WRKDIR}/.pkg-cache/node
 	@${CP} ${DISTDIR}/node-v${NODE_VERSION_PKGFETCH}.tar.gz ${WRKDIR}/.pkg-cache/node
@@ -127,13 +127,23 @@ post-extract:
 
 post-patch:
 	@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' \
+		${WRKSRC}/build_tools/tools/freebsd/automate.py \
+		${WRKSRC}/core/Common/3dParty/boost/boost.pri \
 		${WRKSRC}/core/Common/3dParty/icu/icu.pri \
-		${WRKSRC}/core/Common/3dParty/v8/v8/build/toolchain/gcc_toolchain.gni \
-		${WRKSRC}/core/Common/3dParty/v8/v8/buildtools/third_party/libc++/BUILD.gn \
+		${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 \
-		${WRKSRC}/build_tools/tools/freebsd/automate.py
+		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-generate-allfonts.sh.m4 \
+		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-jwt-status.sh.m4 \
+		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-pluginsmanager.sh.m4 \
+		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-static-gzip.sh.m4 \
+		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-update-securelink.sh.m4 \
+		${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-converter.conf \
+		${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-docservice.conf \
+		${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-metrics.conf
 	@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|' -e 's|%%CXX%%|${CXX}|' \
-		${WRKSRC}/core/Common/3dParty/v8/v8/build/toolchain/gcc_toolchain.gni \
+		${WRKSRC}/core/Common/3dParty/v8_89/v8/build/toolchain/gcc_toolchain.gni \
 		${WRKSRC}/core/Common/base.pri
 	@${REINPLACE_CMD} 's|%%WRKDIR%%|${WRKDIR}|' \
 		${WRKSRC}/document-server-package/Makefile
@@ -141,40 +151,20 @@ post-patch:
 		${WRKSRC}/build_tools/scripts/build_js.py \
 		${WRKSRC}/build_tools/scripts/build_server.py \
 		${WRKSRC}/document-server-package/Makefile
-	@${REINPLACE_CMD} -e 's|linux|freebsd|' -e 's|/etc|${LOCALBASE}/etc|' \
-		${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-docservice.conf \
-		${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-converter.conf \
-		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-static-gzip.sh.m4 \
-		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-update-securelink.sh.m4 \
-		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-jwt-status.sh.m4
-	@${REINPLACE_CMD} 's|/var/www|${LOCALBASE}/www|' \
-		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-generate-allfonts.sh.m4 \
-		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-update-securelink.sh.m4 \
-		${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-converter.conf \
-		${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-docservice.conf \
-		${WRKSRC}/document-server-package/common/documentserver/supervisor/ds-metrics.conf \
-		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-static-gzip.sh.m4 \
-		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-jwt-status.sh.m4
 	@${REINPLACE_CMD} -e 's|/var/lib|/var/db|' -e 's|/var/www|${LOCALBASE}/www|' \
 			  -e 's|/usr/share|${LOCALBASE}/share|' -e 's|/etc|${LOCALBASE}/etc|' \
 		${WRKSRC}/server/Common/config/production-freebsd.json \
 		${WRKSRC}/server/Common/config/development-freebsd.json
-	@${REINPLACE_CMD} -e 's|bash|sh|' -e 's|sed|gsed|' \
-		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-static-gzip.sh.m4 \
-		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-update-securelink.sh.m4 \
-		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-jwt-status.sh.m4
 	@${REINPLACE_CMD} 's|%%DISTDIR%%|${DISTDIR}|' \
 		${WRKSRC}/web-apps/build/patches/optipng-bin+5.1.0.patch
 	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' -e 's|%%ETCDIR%%|${ETCDIR}|' \
 		${WRKSRC}/document-server-package/Makefile
-	@${REINPLACE_CMD} 's#ds:ds#${DS_USERNAME}:${DS_GROUPNAME}#' \
-		${WRKSRC}/document-server-package/common/documentserver/bin/documentserver-update-securelink.sh.m4
 	@${RM} ${WRKSRC}/web-apps/build/patches/optipng-bin+5.1.0.patch.orig
 
 	@${FIND} ${WRKSRC}/server -type f -name npm-shrinkwrap.json -delete
 
-	@${ECHO} "# Generated from 'DEPS'" > ${WRKSRC}/core/Common/3dParty/v8/v8/build/config/gclient_args.gni
-	@${ECHO} "checkout_google_benchmark = false" >> ${WRKSRC}/core/Common/3dParty/v8/v8/build/config/gclient_args.gni
+	@${ECHO} "# Generated from 'DEPS'" > ${WRKSRC}/core/Common/3dParty/v8_89/v8/build/config/gclient_args.gni
+	@${ECHO} "checkout_google_benchmark = false" >> ${WRKSRC}/core/Common/3dParty/v8_89/v8/build/config/gclient_args.gni
 
 do-build:
 	${INSTALL_SCRIPT} ${FILESDIR}/npm ${BINARY_LINKDIR}/npm
@@ -204,6 +194,7 @@ do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/document-server-package/common/documentserver/home/server/tools/all* ${STAGEDIR}${WWWDIR}/documentserver/server/tools
 	${INSTALL_PROGRAM} ${WRKSRC}/document-server-package/common/documentserver/home/server/FileConverter/bin/x2t ${STAGEDIR}${WWWDIR}/documentserver/server/FileConverter/bin
 	${INSTALL_PROGRAM} ${WRKSRC}/document-server-package/common/documentserver/home/server/FileConverter/bin/docbuilder ${STAGEDIR}${WWWDIR}/documentserver/server/FileConverter/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/document-server-package/common/documentserver/home/server/tools/pluginsmanager ${STAGEDIR}${WWWDIR}/documentserver/server/tools
 	${INSTALL_DATA} ${WRKSRC}/document-server-package/common/documentserver/home/npm/json ${STAGEDIR}${WWWDIR}/documentserver/npm
 	${INSTALL_LIB} ${WRKSRC}/document-server-package/common/documentserver/home/server/FileConverter/bin/*.so ${STAGEDIR}${PREFIX}/lib
 	${RM} ${STAGEDIR}${PREFIX}/bin/documentserver-letsencrypt.sh
@@ -236,7 +227,7 @@ do-install:
 
 create-caches-tarball:
 	# do some cleanup first
-	${RM} -r  ${WRKDIR}/.npm/_logs ${WRKDIR}/.npm/_update-notifier-last-checked ${WRKDIR}/.cache/yarn/v6/.tmp
+	${RM} -r  ${WRKDIR}/.npm/_logs ${WRKDIR}/.npm/_update-notifier-last-checked ${WRKDIR}/.cache/yarn/v6/.tmp ${WRKDIR}/.cache/node-gyp
 	${FIND} ${WRKDIR}/.cache -type f -perm 755 -exec file {} \; | ${EGREP} "ELF|PE32+|Mach-O" | ${AWK} -F ':' '{print $$1}' | ${XARGS} ${RM}
 	${FIND} ${WRKDIR}/.pkg-cache -type f -perm 755 -exec file {} \; | ${EGREP} "ELF|PE32+|Mach-O" | ${AWK} -F ':' '{print $$1}' | ${XARGS} ${RM}
 
diff --git a/www/onlyoffice-documentserver/distinfo b/www/onlyoffice-documentserver/distinfo
index 3e770cb7429f..ce4d1ecd4af8 100644
--- a/www/onlyoffice-documentserver/distinfo
+++ b/www/onlyoffice-documentserver/distinfo
@@ -1,39 +1,39 @@
-TIMESTAMP = 1689784075
+TIMESTAMP = 1689842471
 SHA256 (v8-8.9.255.25_all.tar.gz) = 54853ef93accc063a82a0dc29457b25c9b6d88315431d62e06ab1f84797c5f80
 SIZE (v8-8.9.255.25_all.tar.gz) = 72818814
 SHA256 (node-v16.13.0.tar.gz) = 9c00e5b6024cfcbc9105f9c58cf160762e78659a345d100c5bd80a7fb38c684f
 SIZE (node-v16.13.0.tar.gz) = 63735070
 SHA256 (optipng-0.7.7.tar.gz) = 4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452
 SIZE (optipng-0.7.7.tar.gz) = 2329555
-SHA256 (onlyoffice-documentserver-7.3.3.49-npm-cache.tar.gz) = e1611fe023c2ac5eacae097c4f9605710f8d5de34b600f6301b282872db3fe1d
-SIZE (onlyoffice-documentserver-7.3.3.49-npm-cache.tar.gz) = 234604012
-SHA256 (ONLYOFFICE-DocumentServer-v7.3.3.49-v7.3.3_GH0.tar.gz) = 7eb5d59aea3211fd56d17379c29bf680939fab88e1eb25d0cd6aa32c64e86a4c
-SIZE (ONLYOFFICE-DocumentServer-v7.3.3.49-v7.3.3_GH0.tar.gz) = 63957
-SHA256 (ONLYOFFICE-core-v7.3.3.49_GH0.tar.gz) = 7cb74cd2027d051ddf66129df9efc78e3d646af189c18d50e33018d50a356904
-SIZE (ONLYOFFICE-core-v7.3.3.49_GH0.tar.gz) = 88430975
-SHA256 (ONLYOFFICE-core-fonts-v7.3.3.49_GH0.tar.gz) = 3f726b0e5344eabf501e22d566554bbfbc343625360699bbe23536a4d02b73fb
-SIZE (ONLYOFFICE-core-fonts-v7.3.3.49_GH0.tar.gz) = 95253256
-SHA256 (ONLYOFFICE-dictionaries-v7.3.3.49_GH0.tar.gz) = 8434d8aad8c7acd571e2d8a751dcbb4e13a750ccf37188455d747f85d2ba4df4
-SIZE (ONLYOFFICE-dictionaries-v7.3.3.49_GH0.tar.gz) = 41115358
-SHA256 (ONLYOFFICE-document-server-integration-v7.3.3.49_GH0.tar.gz) = 9ed80d4f3fba3d98a7cb0e528d856a9ac46ff56233d96f46ce2cd62aa4a17306
-SIZE (ONLYOFFICE-document-server-integration-v7.3.3.49_GH0.tar.gz) = 5344109
-SHA256 (ONLYOFFICE-document-templates-v7.3.3.49_GH0.tar.gz) = e04fdff908953049781c67c74c7d643bd3f2f42f3bd1af4cdcfff45bd4145e8e
-SIZE (ONLYOFFICE-document-templates-v7.3.3.49_GH0.tar.gz) = 2152326
-SHA256 (ONLYOFFICE-sdkjs-v7.3.3.49_GH0.tar.gz) = 4e0b68f43cd3338b25e06bbacf69399fee9d69a1d9e6e073c6d971d35bc96e19
-SIZE (ONLYOFFICE-sdkjs-v7.3.3.49_GH0.tar.gz) = 25674391
-SHA256 (ONLYOFFICE-server-v7.3.3.49_GH0.tar.gz) = 6d54baed81b5723c53e55598a5f0a716c18a2bf78047605a725b51a8d0d312ba
-SIZE (ONLYOFFICE-server-v7.3.3.49_GH0.tar.gz) = 258896
-SHA256 (ONLYOFFICE-web-apps-v7.3.3.49_GH0.tar.gz) = 90ae7a0e27487d503d681bfdfe84d395baa1139385ca40179956baece9eb2abb
-SIZE (ONLYOFFICE-web-apps-v7.3.3.49_GH0.tar.gz) = 281994064
-SHA256 (ONLYOFFICE-build_tools-v7.3.3.49_GH0.tar.gz) = 58607e40cc757d29bfb60bdb1ee687965e812f6219a265ab26ff585f0779b8e8
-SIZE (ONLYOFFICE-build_tools-v7.3.3.49_GH0.tar.gz) = 4588736
+SHA256 (onlyoffice-documentserver-7.4.0.163-npm-cache.tar.gz) = 13c6a5c314a7619473260b2d7fb1161d7d2178e0da3ab6973981b7bfddae82b3
+SIZE (onlyoffice-documentserver-7.4.0.163-npm-cache.tar.gz) = 275714693
+SHA256 (ONLYOFFICE-DocumentServer-v7.4.0.163-v7.4.0_GH0.tar.gz) = ceaa39fcb9373a22f652c02c760f32961d02c49b14af3acb2412b422972fe0bb
+SIZE (ONLYOFFICE-DocumentServer-v7.4.0.163-v7.4.0_GH0.tar.gz) = 65484
+SHA256 (ONLYOFFICE-core-v7.4.0.163_GH0.tar.gz) = d6fbd0acd244cfa3e48afe98942720aed0463afb34d12c257bf233f91e919891
+SIZE (ONLYOFFICE-core-v7.4.0.163_GH0.tar.gz) = 88380222
+SHA256 (ONLYOFFICE-core-fonts-v7.4.0.163_GH0.tar.gz) = dc829e15f7fc7f08be31de53d2eb9842c840a2d5a95afd9d99cd0c482c60d277
+SIZE (ONLYOFFICE-core-fonts-v7.4.0.163_GH0.tar.gz) = 95366415
+SHA256 (ONLYOFFICE-dictionaries-v7.4.0.163_GH0.tar.gz) = a6247152990493aa5cf43d22c11d754ecdc2d9740b60b26cbdb955fa1938dbaa
+SIZE (ONLYOFFICE-dictionaries-v7.4.0.163_GH0.tar.gz) = 41115736
+SHA256 (ONLYOFFICE-document-server-integration-v7.4.0.163_GH0.tar.gz) = d57cda65a2c3aa8468c665cd789cc59ccbd833c8c13de2247e811a665adb0ec5
+SIZE (ONLYOFFICE-document-server-integration-v7.4.0.163_GH0.tar.gz) = 5118132
+SHA256 (ONLYOFFICE-document-templates-v7.4.0.163_GH0.tar.gz) = 41dcff925754f5ac57ac06fa116e3318ac2d6bcb35a38ca866182477caa858eb
+SIZE (ONLYOFFICE-document-templates-v7.4.0.163_GH0.tar.gz) = 2538820
+SHA256 (ONLYOFFICE-sdkjs-v7.4.0.163_GH0.tar.gz) = 411c2b89d46fa3e0af08b4e081ba79366ddc33f5971df8d5963cd36f8046e364
+SIZE (ONLYOFFICE-sdkjs-v7.4.0.163_GH0.tar.gz) = 25997019
+SHA256 (ONLYOFFICE-server-v7.4.0.163_GH0.tar.gz) = cd0df0e1745e0d3944b508d1019669a72f748e7da3b0ff3560d58bd855de9cd4
+SIZE (ONLYOFFICE-server-v7.4.0.163_GH0.tar.gz) = 267471
+SHA256 (ONLYOFFICE-web-apps-v7.4.0.163_GH0.tar.gz) = 74edc2cbeda649251df8f1cf0e34ce48372a1f9a35541abfb70617552a6b18e6
+SIZE (ONLYOFFICE-web-apps-v7.4.0.163_GH0.tar.gz) = 348597216
+SHA256 (ONLYOFFICE-build_tools-v7.4.0.163_GH0.tar.gz) = 048cc71c124dd27a399feb960e540eed555f3935d5272aeb67bdedc030bbdace
+SIZE (ONLYOFFICE-build_tools-v7.4.0.163_GH0.tar.gz) = 6656908
 SHA256 (ONLYOFFICE-DocumentBuilder-626d1e44db3d06ceb8298215a67ef0475912d89a_GH0.tar.gz) = 275c3a8c993528fa56c69aedb11dd74a6fba9c3bd372874004584ae9cbb190b5
 SIZE (ONLYOFFICE-DocumentBuilder-626d1e44db3d06ceb8298215a67ef0475912d89a_GH0.tar.gz) = 31659
 SHA256 (ONLYOFFICE-onlyoffice.github.io-b26d001664d771df4f663d2d3ba7dd4a188b6cab_GH0.tar.gz) = 347b8f1d3c21b1f61a3f1fcae86f402b27ce4f8b826e18158834251046d83cf5
 SIZE (ONLYOFFICE-onlyoffice.github.io-b26d001664d771df4f663d2d3ba7dd4a188b6cab_GH0.tar.gz) = 17009005
-SHA256 (ONLYOFFICE-document-server-package-v7.3.3.49_GH0.tar.gz) = 1d441f347851055356ded52ad038ee3ebe65d03806f9155c6221a3a0c4491a5b
-SIZE (ONLYOFFICE-document-server-package-v7.3.3.49_GH0.tar.gz) = 154588
-SHA256 (hackers-painters-katana-parser-499118d3_GH0.tar.gz) = ed83020cbe07877c7323d475491803797fac12ce4086966011c81023b9852c4b
-SIZE (hackers-painters-katana-parser-499118d3_GH0.tar.gz) = 97209
+SHA256 (ONLYOFFICE-document-server-package-v7.4.0.163_GH0.tar.gz) = d9fb262e19ecbbd9a13bbc9f1e2d40f7fcef1ee1548302f4f09c2410a7abae01
+SIZE (ONLYOFFICE-document-server-package-v7.4.0.163_GH0.tar.gz) = 155522
+SHA256 (jasenhuang-katana-parser-be6df45_GH0.tar.gz) = 363ede45ba6d125fdb7323c43d34acd3d0ae9028ac18aec632eb6a623160f09a
+SIZE (jasenhuang-katana-parser-be6df45_GH0.tar.gz) = 97712
 SHA256 (google-gumbo-parser-aa91b27_GH0.tar.gz) = 1360f85c02fb2573a10f00abcddebc8f1ff277a16f66553439193af93afae335
 SIZE (google-gumbo-parser-aa91b27_GH0.tar.gz) = 2119417
diff --git a/www/onlyoffice-documentserver/files/ds-converter.conf b/www/onlyoffice-documentserver/files/ds-converter.conf
index 84c47283938f..613c3fd7a6a4 100644
--- a/www/onlyoffice-documentserver/files/ds-converter.conf
+++ b/www/onlyoffice-documentserver/files/ds-converter.conf
@@ -1,8 +1,8 @@
 [program:converter]
-command=/var/www/onlyoffice/documentserver/server/FileConverter/converter
-directory=/var/www/onlyoffice/documentserver/server/FileConverter
+command=%%LOCALBASE%%/www/onlyoffice/documentserver/server/FileConverter/converter
+directory=%%LOCALBASE%%/www/onlyoffice/documentserver/server/FileConverter
 user=onlyoffice
-environment=NODE_ENV=production-linux,NODE_CONFIG_DIR=/etc/onlyoffice/documentserver,NODE_DISABLE_COLORS=1,APPLICATION_NAME=M4_COMPANY_NAME
+environment=NODE_ENV=production-freebsd,NODE_CONFIG_DIR=%%LOCALBASE%%/etc/onlyoffice/documentserver,NODE_DISABLE_COLORS=1,APPLICATION_NAME=M4_COMPANY_NAME
 stdout_logfile=/var/log/onlyoffice/documentserver/converter/out.log
 stdout_logfile_backups=0
 stdout_logfile_maxbytes=0
diff --git a/www/onlyoffice-documentserver/files/ds-docservice.conf b/www/onlyoffice-documentserver/files/ds-docservice.conf
index b4e69c14ed67..5eda55c35aab 100644
--- a/www/onlyoffice-documentserver/files/ds-docservice.conf
+++ b/www/onlyoffice-documentserver/files/ds-docservice.conf
@@ -1,8 +1,8 @@
 [program:docservice]
-command=/var/www/onlyoffice/documentserver/server/DocService/docservice
-directory=/var/www/onlyoffice/documentserver/server/DocService
+command=%%LOCALBASE%%/www/onlyoffice/documentserver/server/DocService/docservice
+directory=%%LOCALBASE%%/www/onlyoffice/documentserver/server/DocService
 user=onlyoffice
-environment=NODE_ENV=production-linux,NODE_CONFIG_DIR=/etc/onlyoffice/documentserver,NODE_DISABLE_COLORS=1
+environment=NODE_ENV=production-freebsd,NODE_CONFIG_DIR=%%LOCALBASE%%/etc/onlyoffice/documentserver,NODE_DISABLE_COLORS=1
 stdout_logfile=/var/log/onlyoffice/documentserver/docservice/out.log
 stdout_logfile_backups=0
 stdout_logfile_maxbytes=0
diff --git a/www/onlyoffice-documentserver/files/ds-metrics.conf b/www/onlyoffice-documentserver/files/ds-metrics.conf
index 70716c7c5f44..b6181cc76b31 100644
--- a/www/onlyoffice-documentserver/files/ds-metrics.conf
+++ b/www/onlyoffice-documentserver/files/ds-metrics.conf
@@ -1,6 +1,6 @@
 [program:metrics]
-command=/var/www/onlyoffice/documentserver/server/Metrics/metrics ./config/config.js
-directory=/var/www/onlyoffice/documentserver/server/Metrics
+command=%%LOCALBASE%%/www/onlyoffice/documentserver/server/Metrics/metrics ./config/config.js
+directory=%%LOCALBASE%%/www/onlyoffice/documentserver/server/Metrics
 user=onlyoffice
 environment=NODE_DISABLE_COLORS=1
 stdout_logfile=/var/log/onlyoffice/documentserver/metrics/out.log
diff --git a/www/onlyoffice-documentserver/files/extra-patch-pkg-fetch_patches_node.v16.13.0.cpp.patch b/www/onlyoffice-documentserver/files/extra-patch-pkg-fetch_patches_node.v16.13.0.cpp.patch
index 01ce59579ca7..c380dd286e54 100644
--- a/www/onlyoffice-documentserver/files/extra-patch-pkg-fetch_patches_node.v16.13.0.cpp.patch
+++ b/www/onlyoffice-documentserver/files/extra-patch-pkg-fetch_patches_node.v16.13.0.cpp.patch
@@ -4,7 +4,31 @@ https://github.com/vercel/pkg-fetch/blob/main/patches/node.v16.14.2.cpp.patch
 
 --- server/node_modules/pkg-fetch/patches/node.v16.13.0.cpp.patch.orig	2021-12-30 20:04:18.203959000 +0100
 +++ server/node_modules/pkg-fetch/patches/node.v16.13.0.cpp.patch	2021-12-30 20:09:53.210319000 +0100
-@@ -521,3 +521,171 @@ index 0000000000..fb2d47f52b
+@@ -1,5 +1,5 @@
+---- node/common.gypi
+-+++ node/common.gypi
++--- common.gypi.orig	2021-10-26 14:00:54.000000000 +0200
+++++ common.gypi	2023-07-18 12:52:05.744323000 +0200
+ @@ -171,7 +171,7 @@
+                'MSVC_runtimeType': 2   # MultiThreadedDLL (/MD)
+              }],
+@@ -9,6 +9,15 @@ +              'lto': ' -flto=4 -ffat-lto-objects ', #
+              }, {
+                'lto': ' -flto ', # Clang
+              }],
++@@ -386,7 +386,7 @@
++       }],
++       [ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
++         'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
++-        'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++14' ],
+++        'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++14', '-Wno-error=enum-constexpr-conversion' ],
++         'defines': [ '__STDC_FORMAT_MACROS' ],
++         'ldflags': [ '-rdynamic' ],
++         'target_conditions': [
+ --- node/deps/v8/include/v8.h
+ +++ node/deps/v8/include/v8.h
+ @@ -10092,6 +10092,10 @@ class V8_EXPORT V8 {
+@@ -521,6 +530,174 @@ +            'cflags_cc': [ '-frtti', '-fno-lto' ],
               'cflags_cc!': [ '-fno-rtti' ],
             }],
             [ 'OS == "mac" or OS == "ios"', {
@@ -176,3 +200,6 @@ https://github.com/vercel/pkg-fetch/blob/main/patches/node.v16.14.2.cpp.patch
 + 
 + namespace node {
 + namespace cares_wrap {
+ --- node/deps/openssl/config/archs/linux-elf/no-asm/openssl-cl.gypi.orig	2019-08-06 20:46:23 UTC
+ +++ node/deps/openssl/config/archs/linux-elf/no-asm/openssl-cl.gypi
+ @@ -12,7 +12,7 @@
diff --git a/www/onlyoffice-documentserver/files/patch-build__tools_scripts_base.py b/www/onlyoffice-documentserver/files/patch-build__tools_scripts_base.py
index 33394cc3671d..95b9974cb2c9 100644
--- a/www/onlyoffice-documentserver/files/patch-build__tools_scripts_base.py
+++ b/www/onlyoffice-documentserver/files/patch-build__tools_scripts_base.py
@@ -1,6 +1,6 @@
 --- build_tools/scripts/base.py.orig	2021-11-16 08:07:24 UTC
 +++ build_tools/scripts/base.py
-@@ -1144,9 +1144,15 @@ def support_old_versions_plugins(out_dir):
+@@ -1186,9 +1186,15 @@ def support_old_versions_plugins(out_dir):
  def support_old_versions_plugins(out_dir):
    if is_file(out_dir + "/pluginBase.js"):
      return
@@ -19,12 +19,12 @@
    content_plugin_base = ""
    with open(get_path(out_dir + "/plugins.js"), "r") as file:
      content_plugin_base += file.read()
-@@ -1282,7 +1288,7 @@ def clone_marketplace_plugin(out_dir, is_name_as_guid=
- def clone_marketplace_plugin(out_dir, is_name_as_guid=False):
+@@ -1331,7 +1337,7 @@ def clone_marketplace_plugin(out_dir, is_name_as_guid=
+ def clone_marketplace_plugin(out_dir, is_name_as_guid=False, is_replace_paths=False, is_delete_git_dir=True, git_owner=""):
    old_cur = os.getcwd()
    os.chdir(out_dir)
--  git_update("onlyoffice.github.io", False, True)
-+#  git_update("onlyoffice.github.io", False, True)
+-  git_update("onlyoffice.github.io", False, True, git_owner)
++#  git_update("onlyoffice.github.io", False, True, git_owner)
    os.chdir(old_cur)
  
    dst_dir_name = "marketplace"
diff --git a/www/onlyoffice-documentserver/files/patch-build__tools_scripts_core__common_make__common.py b/www/onlyoffice-documentserver/files/patch-build__tools_scripts_core__common_make__common.py
index 234edc73b5ab..af97b8b3caf8 100644
--- a/www/onlyoffice-documentserver/files/patch-build__tools_scripts_core__common_make__common.py
+++ b/www/onlyoffice-documentserver/files/patch-build__tools_scripts_core__common_make__common.py
@@ -1,6 +1,6 @@
 --- build_tools/scripts/core_common/make_common.py.orig	2021-11-16 07:07:24 UTC
 +++ build_tools/scripts/core_common/make_common.py
-@@ -8,18 +8,18 @@ import glob
+@@ -8,19 +8,19 @@ import glob
  import base
  import glob
  
@@ -21,11 +21,13 @@
  import glew
  import harfbuzz
 -import hyphen
+-import googletest
 +#import hyphen
++#import googletest
  
  def check_android_ndk_macos_arm(dir):
    if base.is_dir(dir + "/darwin-x86_64") and not base.is_dir(dir + "/darwin-arm64"):
-@@ -34,16 +34,16 @@ def make():
+@@ -35,17 +35,17 @@ def make():
        if base.is_dir(toolchain):
          check_android_ndk_macos_arm(toolchain + "/prebuilt")
  
@@ -44,8 +46,10 @@
 +#  hunspell.make(False)
 +#  harfbuzz.make()
    glew.make()
--  hyphen.make()  
-+#  hyphen.make()  
+-  hyphen.make()
+-  googletest.make()
++#  hyphen.make()
++#  googletest.make()
    
    if config.check_option("module", "mobile"):
      if (config.check_option("platform", "android")):
diff --git a/www/onlyoffice-documentserver/files/patch-build__tools_scripts_core__common_modules_v8__89.py b/www/onlyoffice-documentserver/files/patch-build__tools_scripts_core__common_modules_v8__89.py
new file mode 100644
index 000000000000..a81cf69c3fdd
--- /dev/null
+++ b/www/onlyoffice-documentserver/files/patch-build__tools_scripts_core__common_modules_v8__89.py
@@ -0,0 +1,87 @@
+--- build_tools/scripts/core_common/modules/v8_89.py.orig	2023-06-14 09:52:10.504034000 +0200
++++ build_tools/scripts/core_common/modules/v8_89.py	2023-06-14 11:18:31.776490000 +0200
+@@ -83,39 +83,41 @@ def make():
+     base.create_dir(base_dir)
+ 
+   os.chdir(base_dir)
+-  if not base.is_dir("depot_tools"):
+-    base.cmd("git", ["clone", "https://chromium.googlesource.com/chromium/tools/depot_tools.git"])
++#  if not base.is_dir("depot_tools"):
++#    base.cmd("git", ["clone", "https://chromium.googlesource.com/chromium/tools/depot_tools.git"])
++#
++#  os.environ["PATH"] = base_dir + "/depot_tools" + os.pathsep + os.environ["PATH"]
++#
++#  if ("windows" == base.host_platform()):
++#    base.set_env("DEPOT_TOOLS_WIN_TOOLCHAIN", "0")
++#    base.set_env("GYP_MSVS_VERSION", config.option("vs-version"))
++#
++#  if not base.is_dir("v8"):
++#    base.cmd("./depot_tools/fetch", ["v8"], True)
++#    base.copy_dir("./v8/third_party", "./v8/third_party_new")
++#    if ("windows" == base.host_platform()):
++#      os.chdir("v8")
++#      base.cmd("git", ["config", "--system", "core.longpaths", "true"])
++#      os.chdir("../")
++#    v8_branch_version = "remotes/branch-heads/8.9"
++#    if ("mac" == base.host_platform()):
++#      v8_branch_version = "remotes/branch-heads/9.9"
++#    base.cmd("./depot_tools/gclient", ["sync", "-r", v8_branch_version], True)
++#    base.cmd("gclient", ["sync", "--force"], True)
++#    base.copy_dir("./v8/third_party_new/ninja", "./v8/third_party/ninja")
++#
++#  if ("windows" == base.host_platform()):
++#    base.replaceInFile("v8/build/config/win/BUILD.gn", ":static_crt", ":dynamic_crt")
++#
++#    if not base.is_file("v8/src/base/platform/wrappers.cc"):
++#      base.writeFile("v8/src/base/platform/wrappers.cc", "#include \"src/base/platform/wrappers.h\"\n")
++#
++#  if not base.is_file("v8/third_party/jinja2/tests.py.bak"):
++#    base.copy_file("v8/third_party/jinja2/tests.py", "v8/third_party/jinja2/tests.py.bak")
++#    base.replaceInFile("v8/third_party/jinja2/tests.py", "from collections import Mapping", "try:\n    from collections.abc import Mapping\nexcept ImportError:\n    from collections import Mapping")
+ 
+-  os.environ["PATH"] = base_dir + "/depot_tools" + os.pathsep + os.environ["PATH"]
+-
+-  if ("windows" == base.host_platform()):
+-    base.set_env("DEPOT_TOOLS_WIN_TOOLCHAIN", "0")
+-    base.set_env("GYP_MSVS_VERSION", config.option("vs-version"))
+-
+-  if not base.is_dir("v8"):
+-    base.cmd("./depot_tools/fetch", ["v8"], True)
+-    base.copy_dir("./v8/third_party", "./v8/third_party_new")
+-    if ("windows" == base.host_platform()):
+-      os.chdir("v8")
+-      base.cmd("git", ["config", "--system", "core.longpaths", "true"])
+-      os.chdir("../")
+-    v8_branch_version = "remotes/branch-heads/8.9"
+-    if ("mac" == base.host_platform()):
+-      v8_branch_version = "remotes/branch-heads/9.9"
+-    base.cmd("./depot_tools/gclient", ["sync", "-r", v8_branch_version], True)
+-    base.cmd("gclient", ["sync", "--force"], True)
+-    base.copy_dir("./v8/third_party_new/ninja", "./v8/third_party/ninja")
+-
+-  if ("windows" == base.host_platform()):
+-    base.replaceInFile("v8/build/config/win/BUILD.gn", ":static_crt", ":dynamic_crt")
+-
+-    if not base.is_file("v8/src/base/platform/wrappers.cc"):
+-      base.writeFile("v8/src/base/platform/wrappers.cc", "#include \"src/base/platform/wrappers.h\"\n")
+-
+-  if not base.is_file("v8/third_party/jinja2/tests.py.bak"):
+-    base.copy_file("v8/third_party/jinja2/tests.py", "v8/third_party/jinja2/tests.py.bak")
+-    base.replaceInFile("v8/third_party/jinja2/tests.py", "from collections import Mapping", "try:\n    from collections.abc import Mapping\nexcept ImportError:\n    from collections import Mapping")
+-
++# ~/onlyoffice-documentserver-ports/work/DocumentServer-7.4.0/core/Common/3dParty/v8_89_89
++  print(base_dir)
+   os.chdir("v8")
+   
+   gn_args = ["v8_static_library=true",
+@@ -124,6 +126,10 @@ def make():
+              "v8_use_external_startup_data=false",
+              "use_custom_libcxx=false",
+              "treat_warnings_as_errors=false"]
++
++  if config.check_option("platform", "freebsd_64"):
++    base.cmd2("gn", ["gen", "out.gn/freebsd_64", "--args=\"v8_monolithic=true is_debug=false v8_static_library=true is_component_build=false is_clang=true use_sysroot=false treat_warnings_as_errors=false clang_use_chrome_plugins=false  use_lld=true use_custom_libcxx=false v8_use_external_startup_data=false is_component_build=false\""])
++    base.cmd("ninja", ["-C", "out.gn/freebsd_64"])
+ 
+   if config.check_option("platform", "linux_64"):
+     base.cmd2("gn", ["gen", "out.gn/linux_64", make_args(gn_args, "linux")])
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
new file mode 100644
index 000000000000..26a04e4d69b9
--- /dev/null
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_openssl_openssl.pri
@@ -0,0 +1,13 @@
+--- core/Common/3dParty/openssl/openssl.pri.orig	2023-06-14 14:31:26.960051000 +0200
++++ core/Common/3dParty/openssl/openssl.pri	2023-06-14 14:31:00.960232000 +0200
+@@ -41,8 +41,8 @@ core_windows {
+     LIBS += $$OPENSSL_LIBS_DIRECTORY/libssl.lib
+ 	LIBS += $$OPENSSL_LIBS_DIRECTORY/libcrypto.lib
+ } else {
+-    LIBS += $$OPENSSL_LIBS_DIRECTORY/libssl.a
+-	LIBS += $$OPENSSL_LIBS_DIRECTORY/libcrypto.a
++    LIBS +=  %%LOCALBASE%%/lib/libssl.a
++	LIBS +=  %%LOCALBASE%%/lib/libcrypto.a
+ }
+ 
+ INCLUDEPATH += $$OPENSSL_LIBS_DIRECTORY/../include
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8__89_v8_build_config_clang_BUILD.gn b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8__89_v8_build_config_clang_BUILD.gn
new file mode 100644
index 000000000000..179516c183f5
--- /dev/null
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8__89_v8_build_config_clang_BUILD.gn
@@ -0,0 +1,11 @@
+Fix build with llvm16
+
+--- core/Common/3dParty/v8_89/v8/build/config/clang/BUILD.gn.orig	2023-07-17 10:46:22.246271000 +0200
++++ core/Common/3dParty/v8_89/v8/build/config/clang/BUILD.gn	2023-07-17 10:46:59.136940000 +0200
+@@ -38,5 +38,6 @@ config("extra_warnings") {
+     "-Wstring-conversion",
+ 
+     "-Wtautological-overlap-compare",
++    "-Wno-error=enum-constexpr-conversion",
+   ]
+ }
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_BUILD.gn b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_BUILD.gn
index 58cee3e59d4d..38cd088237a0 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_BUILD.gn
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_BUILD.gn
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/BUILD.gn.orig	2022-03-17 10:34:15 UTC
-+++ core/Common/3dParty/v8/v8/BUILD.gn
+--- core/Common/3dParty/v8_89/v8/BUILD.gn.orig	2022-03-17 10:34:15 UTC
++++ core/Common/3dParty/v8_89/v8/BUILD.gn
 @@ -5229,7 +5229,7 @@ v8_component("v8_libbase") {
      }
    }
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_BUILD.gn b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_BUILD.gn
index 8d2680ccd228..68ff5ecaa977 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_BUILD.gn
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_BUILD.gn
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/config/BUILD.gn.orig	2022-04-04 20:12:26 UTC
-+++ core/Common/3dParty/v8/v8/build/config/BUILD.gn
+--- core/Common/3dParty/v8_89/v8/build/config/BUILD.gn.orig	2022-04-04 20:12:26 UTC
++++ core/Common/3dParty/v8_89/v8/build/config/BUILD.gn
 @@ -121,7 +121,7 @@ config("debug") {
        # builds, and we have to tell it to turn it off.
        defines += [ "_HAS_ITERATOR_DEBUGGING=0" ]
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_BUILDCONFIG.gn b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_BUILDCONFIG.gn
index 836b52091431..6ce8277e5879 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_BUILDCONFIG.gn
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_BUILDCONFIG.gn
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/config/BUILDCONFIG.gn.orig	2021-11-15 18:52:18 UTC
-+++ core/Common/3dParty/v8/v8/build/config/BUILDCONFIG.gn
+--- core/Common/3dParty/v8_89/v8/build/config/BUILDCONFIG.gn.orig	2021-11-15 18:52:18 UTC
++++ core/Common/3dParty/v8_89/v8/build/config/BUILDCONFIG.gn
 @@ -130,8 +130,11 @@ declare_args() {
    # separate flags.
    is_official_build = false
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_compiler_BUILD.gn b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_compiler_BUILD.gn
index abe31fa962c0..cf77653a481b 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_compiler_BUILD.gn
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_compiler_BUILD.gn
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/config/compiler/BUILD.gn.orig	2022-04-04 20:12:27 UTC
-+++ core/Common/3dParty/v8/v8/build/config/compiler/BUILD.gn
+--- core/Common/3dParty/v8_89/v8/build/config/compiler/BUILD.gn.orig	2022-04-04 20:12:27 UTC
++++ core/Common/3dParty/v8_89/v8/build/config/compiler/BUILD.gn
 @@ -132,7 +132,7 @@ declare_args() {
    #
    # TODO(crbug.com/977230): Enabling this when 'use_xcode_clang' is true may
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_compiler_compiler.gni b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_compiler_compiler.gni
index 4e5e72619a5c..c30398cb2d33 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_compiler_compiler.gni
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_compiler_compiler.gni
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/config/compiler/compiler.gni.orig	2022-04-04 20:12:27 UTC
-+++ core/Common/3dParty/v8/v8/build/config/compiler/compiler.gni
+--- core/Common/3dParty/v8_89/v8/build/config/compiler/compiler.gni.orig	2022-04-04 20:12:27 UTC
++++ core/Common/3dParty/v8_89/v8/build/config/compiler/compiler.gni
 @@ -225,7 +225,7 @@ declare_args() {
  
  declare_args() {
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_features.gni b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_features.gni
index 160a2db257bb..ab092315e9b7 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_features.gni
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_features.gni
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/config/features.gni.orig	2020-09-19 19:50:44 UTC
-+++ core/Common/3dParty/v8/v8/build/config/features.gni
+--- core/Common/3dParty/v8_89/v8/build/config/features.gni.orig	2020-09-19 19:50:44 UTC
++++ core/Common/3dParty/v8_89/v8/build/config/features.gni
 @@ -26,7 +26,7 @@ declare_args() {
    proprietary_codecs = is_chrome_branded || is_chromecast
  
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_freetype_freetype.gni b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_freetype_freetype.gni
index fcaa76f9522a..7c59aafc8666 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_freetype_freetype.gni
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_freetype_freetype.gni
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/config/freetype/freetype.gni.orig	2019-03-18 08:59:45 UTC
-+++ core/Common/3dParty/v8/v8/build/config/freetype/freetype.gni
+--- core/Common/3dParty/v8_89/v8/build/config/freetype/freetype.gni.orig	2019-03-18 08:59:45 UTC
++++ core/Common/3dParty/v8_89/v8/build/config/freetype/freetype.gni
 @@ -10,5 +10,5 @@ declare_args() {
    # than version 2.7.1 and have color bitmap support compiled in. WARNING:
    # System FreeType configurations other than as described WILL INTRODUCE TEXT
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_linux_BUILD.gn b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_linux_BUILD.gn
index 38f6085039fc..af5f02c36117 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_linux_BUILD.gn
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_linux_BUILD.gn
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/config/linux/BUILD.gn.orig	2022-04-04 20:12:27 UTC
-+++ core/Common/3dParty/v8/v8/build/config/linux/BUILD.gn
+--- core/Common/3dParty/v8_89/v8/build/config/linux/BUILD.gn.orig	2022-04-04 20:12:27 UTC
++++ core/Common/3dParty/v8_89/v8/build/config/linux/BUILD.gn
 @@ -42,7 +42,7 @@ config("runtime_library") {
  
    if ((!(is_chromeos_ash || is_chromeos_lacros) ||
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_linux_pkg-config.py b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_linux_pkg-config.py
index 08a8820cab7c..d0658973c8e5 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_linux_pkg-config.py
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_linux_pkg-config.py
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/config/linux/pkg-config.py.orig	2019-07-24 18:58:02 UTC
-+++ core/Common/3dParty/v8/v8/build/config/linux/pkg-config.py
+--- core/Common/3dParty/v8_89/v8/build/config/linux/pkg-config.py.orig	2019-07-24 18:58:02 UTC
++++ core/Common/3dParty/v8_89/v8/build/config/linux/pkg-config.py
 @@ -59,8 +59,12 @@ def SetConfigPath(options):
      print("You must specify an architecture via -a if using a sysroot.")
      sys.exit(1)
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_sysroot.gni b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_sysroot.gni
index 05ddc510f9ac..6e1831303980 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_sysroot.gni
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_config_sysroot.gni
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/config/sysroot.gni.orig	2020-05-13 18:39:36 UTC
-+++ core/Common/3dParty/v8/v8/build/config/sysroot.gni
+--- core/Common/3dParty/v8_89/v8/build/config/sysroot.gni.orig	2020-05-13 18:39:36 UTC
++++ core/Common/3dParty/v8_89/v8/build/config/sysroot.gni
 @@ -21,9 +21,9 @@ declare_args() {
  
    # Controls default is_linux sysroot. If set to true, and sysroot
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_detect__host__arch.py b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_detect__host__arch.py
index ab53692fd0ad..f72029dd3b48 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_detect__host__arch.py
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_detect__host__arch.py
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/detect_host_arch.py.orig	2019-07-24 18:58:02 UTC
-+++ core/Common/3dParty/v8/v8/build/detect_host_arch.py
+--- core/Common/3dParty/v8_89/v8/build/detect_host_arch.py.orig	2019-07-24 18:58:02 UTC
++++ core/Common/3dParty/v8_89/v8/build/detect_host_arch.py
 @@ -21,6 +21,8 @@ def HostArch():
      host_arch = 'ia32'
    elif host_arch in ['x86_64', 'amd64']:
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_gn__run__binary.py b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_gn__run__binary.py
index 8d1f8b9fbb93..d0f0114b47ca 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_gn__run__binary.py
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_gn__run__binary.py
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/gn_run_binary.py.orig	2019-07-24 18:58:02 UTC
-+++ core/Common/3dParty/v8/v8/build/gn_run_binary.py
+--- core/Common/3dParty/v8_89/v8/build/gn_run_binary.py.orig	2019-07-24 18:58:02 UTC
++++ core/Common/3dParty/v8_89/v8/build/gn_run_binary.py
 @@ -24,7 +24,7 @@ if not os.path.isabs(path):
  # The rest of the arguments are passed directly to the executable.
  args = [path] + sys.argv[2:]
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_chrome.map b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_chrome.map
index 880f15207a36..2cb2da61edb2 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_chrome.map
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_chrome.map
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/linux/chrome.map.orig	2022-04-04 20:12:27 UTC
-+++ core/Common/3dParty/v8/v8/build/linux/chrome.map
+--- core/Common/3dParty/v8_89/v8/build/linux/chrome.map.orig	2022-04-04 20:12:27 UTC
++++ core/Common/3dParty/v8_89/v8/build/linux/chrome.map
 @@ -1,4 +1,7 @@
  {
 +local:
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_libpci_BUILD.gn b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_libpci_BUILD.gn
index d3f3e012600e..4b6cf812764d 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_libpci_BUILD.gn
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_libpci_BUILD.gn
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/linux/libpci/BUILD.gn.orig	2019-03-11 22:00:52 UTC
-+++ core/Common/3dParty/v8/v8/build/linux/libpci/BUILD.gn
+--- core/Common/3dParty/v8_89/v8/build/linux/libpci/BUILD.gn.orig	2019-03-11 22:00:52 UTC
++++ core/Common/3dParty/v8_89/v8/build/linux/libpci/BUILD.gn
 @@ -3,20 +3,36 @@
  # found in the LICENSE file.
  
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_unbundle_libusb.gn b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_unbundle_libusb.gn
index f64c29f463f3..390c8deb9c80 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_unbundle_libusb.gn
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_unbundle_libusb.gn
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/linux/unbundle/libusb.gn.orig	2019-03-17 01:47:13 UTC
-+++ core/Common/3dParty/v8/v8/build/linux/unbundle/libusb.gn
+--- core/Common/3dParty/v8_89/v8/build/linux/unbundle/libusb.gn.orig	2019-03-17 01:47:13 UTC
++++ core/Common/3dParty/v8_89/v8/build/linux/unbundle/libusb.gn
 @@ -0,0 +1,24 @@
 +# Copyright 2016 The Chromium Authors. All rights reserved.
 +# Use of this source code is governed by a BSD-style license that can be
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_unbundle_replace__gn__files.py b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_unbundle_replace__gn__files.py
index 45413173e126..435e558cf1d7 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_unbundle_replace__gn__files.py
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_linux_unbundle_replace__gn__files.py
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/linux/unbundle/replace_gn_files.py.orig	2021-11-15 18:52:18 UTC
-+++ core/Common/3dParty/v8/v8/build/linux/unbundle/replace_gn_files.py
+--- core/Common/3dParty/v8_89/v8/build/linux/unbundle/replace_gn_files.py.orig	2021-11-15 18:52:18 UTC
++++ core/Common/3dParty/v8_89/v8/build/linux/unbundle/replace_gn_files.py
 @@ -25,6 +25,7 @@ REPLACEMENTS = {
    'libevent': 'base/third_party/libevent/BUILD.gn',
    'libjpeg': 'third_party/libjpeg.gni',
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_toolchain_gcc__toolchain.gni b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_toolchain_gcc__toolchain.gni
index 66a13c0198c5..c36f3894d1c2 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_toolchain_gcc__toolchain.gni
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_toolchain_gcc__toolchain.gni
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/toolchain/gcc_toolchain.gni.orig	2022-04-04 20:12:27 UTC
-+++ core/Common/3dParty/v8/v8/build/toolchain/gcc_toolchain.gni
+--- core/Common/3dParty/v8_89/v8/build/toolchain/gcc_toolchain.gni.orig	2022-04-04 20:12:27 UTC
++++ core/Common/3dParty/v8_89/v8/build/toolchain/gcc_toolchain.gni
 @@ -51,6 +51,11 @@ if (enable_resource_allowlist_generation) {
        "enable_resource_allowlist_generation=true does not work for target_os=$target_os")
  }
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_toolchain_get__concurrent__links.py b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_toolchain_get__concurrent__links.py
index d46057628a4c..1d97e76a118c 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_toolchain_get__concurrent__links.py
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_build_toolchain_get__concurrent__links.py
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/build/toolchain/get_concurrent_links.py.orig	2021-05-01 21:15:31 UTC
-+++ core/Common/3dParty/v8/v8/build/toolchain/get_concurrent_links.py
+--- core/Common/3dParty/v8_89/v8/build/toolchain/get_concurrent_links.py.orig	2021-05-01 21:15:31 UTC
++++ core/Common/3dParty/v8_89/v8/build/toolchain/get_concurrent_links.py
 @@ -53,6 +53,14 @@ def _GetTotalMemoryInBytes():
        return int(subprocess.check_output(['sysctl', '-n', 'hw.memsize']))
      except Exception:
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_buildtools_third__party_libc++_BUILD.gn b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_buildtools_third__party_libc++_BUILD.gn
index 0be4fc9ea074..8983a9eed281 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_buildtools_third__party_libc++_BUILD.gn
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_buildtools_third__party_libc++_BUILD.gn
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/buildtools/third_party/libc++/BUILD.gn.orig	2022-04-04 20:12:27 UTC
-+++ core/Common/3dParty/v8/v8/buildtools/third_party/libc++/BUILD.gn
+--- core/Common/3dParty/v8_89/v8/buildtools/third_party/libc++/BUILD.gn.orig	2022-04-04 20:12:27 UTC
++++ core/Common/3dParty/v8_89/v8/buildtools/third_party/libc++/BUILD.gn
 @@ -14,7 +14,7 @@ config("config") {
      # its implementation.
      cflags += [ "-Wno-macro-redefined" ]
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_include_v8config.h b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_include_v8config.h
index 5a8395d7b39d..4159f3861fd4 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_include_v8config.h
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_include_v8config.h
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/include/v8config.h.orig	2022-03-17 10:34:15 UTC
-+++ core/Common/3dParty/v8/v8/include/v8config.h
+--- core/Common/3dParty/v8_89/v8/include/v8config.h.orig	2022-03-17 10:34:15 UTC
++++ core/Common/3dParty/v8_89/v8/include/v8config.h
 @@ -344,7 +344,18 @@ path. Add it with -I<path> to the command line
  # define V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS \
      (V8_HAS_CPP_ATTRIBUTE(no_unique_address))
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_api_api.cc b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_api_api.cc
index ad74151d748b..6936d9b93002 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_api_api.cc
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_api_api.cc
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/src/api/api.cc.orig	2022-03-17 10:34:15 UTC
-+++ core/Common/3dParty/v8/v8/src/api/api.cc
+--- core/Common/3dParty/v8_89/v8/src/api/api.cc.orig	2022-03-17 10:34:15 UTC
++++ core/Common/3dParty/v8_89/v8/src/api/api.cc
 @@ -5894,7 +5894,7 @@ bool v8::V8::Initialize(const int build_config) {
    return true;
  }
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_base_cpu.cc b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_base_cpu.cc
index 648ea31f6aa9..88a1f88fa188 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_base_cpu.cc
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_base_cpu.cc
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/src/base/cpu.cc.orig	2022-03-17 10:34:15 UTC
-+++ core/Common/3dParty/v8/v8/src/base/cpu.cc
+--- core/Common/3dParty/v8_89/v8/src/base/cpu.cc.orig	2022-03-17 10:34:15 UTC
++++ core/Common/3dParty/v8_89/v8/src/base/cpu.cc
 @@ -581,6 +581,7 @@ CPU::CPU()
  
  #if V8_OS_LINUX
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_base_platform_platform-freebsd.cc b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_base_platform_platform-freebsd.cc
index 143f7a670854..c0ad30878025 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_base_platform_platform-freebsd.cc
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_base_platform_platform-freebsd.cc
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/src/base/platform/platform-freebsd.cc.orig	2021-04-22 15:00:28 UTC
-+++ core/Common/3dParty/v8/v8/src/base/platform/platform-freebsd.cc
+--- core/Common/3dParty/v8_89/v8/src/base/platform/platform-freebsd.cc.orig	2021-04-22 15:00:28 UTC
++++ core/Common/3dParty/v8_89/v8/src/base/platform/platform-freebsd.cc
 @@ -82,8 +82,8 @@ std::vector<OS::SharedLibraryAddress> OS::GetSharedLib
              lib_name = std::string(path);
            }
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_base_platform_platform-posix.cc b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_base_platform_platform-posix.cc
index 8f7e20daeee8..818fc45bc818 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_base_platform_platform-posix.cc
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_base_platform_platform-posix.cc
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/src/base/platform/platform-posix.cc.orig	2022-03-17 10:34:15 UTC
-+++ core/Common/3dParty/v8/v8/src/base/platform/platform-posix.cc
+--- core/Common/3dParty/v8_89/v8/src/base/platform/platform-posix.cc.orig	2022-03-17 10:34:15 UTC
++++ core/Common/3dParty/v8_89/v8/src/base/platform/platform-posix.cc
 @@ -464,7 +464,7 @@ bool OS::HasLazyCommits() {
  
  // static
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_d8_d8-posix.cc b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_d8_d8-posix.cc
index c2ac8ec9f248..7c8d23f36bef 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_d8_d8-posix.cc
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_src_d8_d8-posix.cc
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/src/d8/d8-posix.cc.orig	2020-06-13 18:02:18 UTC
-+++ core/Common/3dParty/v8/v8/src/d8/d8-posix.cc
+--- core/Common/3dParty/v8_89/v8/src/d8/d8-posix.cc.orig	2020-06-13 18:02:18 UTC
++++ core/Common/3dParty/v8_89/v8/src/d8/d8-posix.cc
 @@ -4,6 +4,8 @@
  
  #include <errno.h>
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_testing_gmock_BUILD.gn b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_testing_gmock_BUILD.gn
index 4e1a5df727e5..6cc129f1398e 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_testing_gmock_BUILD.gn
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_testing_gmock_BUILD.gn
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/testing/gmock/BUILD.gn.orig	2022-05-13 18:53:22.198863000 +0200
-+++ core/Common/3dParty/v8/v8/testing/gmock/BUILD.gn	2022-05-13 18:53:05.169357000 +0200
+--- core/Common/3dParty/v8_89/v8/testing/gmock/BUILD.gn.orig	2022-05-13 18:53:22.198863000 +0200
++++ core/Common/3dParty/v8_89/v8/testing/gmock/BUILD.gn	2022-05-13 18:53:05.169357000 +0200
 @@ -15,12 +15,13 @@ source_set("gmock") {
      "include/gmock/gmock-matchers.h",
      "include/gmock/gmock.h",
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_third__party_zlib_BUILD.gn b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_third__party_zlib_BUILD.gn
index fbe2eb2138f4..ff98f579fb80 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_third__party_zlib_BUILD.gn
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_third__party_zlib_BUILD.gn
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/third_party/zlib/BUILD.gn.orig	2020-11-16 13:31:04 UTC
-+++ core/Common/3dParty/v8/v8/third_party/zlib/BUILD.gn
+--- core/Common/3dParty/v8_89/v8/third_party/zlib/BUILD.gn.orig	2020-11-16 13:31:04 UTC
++++ core/Common/3dParty/v8_89/v8/third_party/zlib/BUILD.gn
 @@ -108,6 +108,8 @@ if (use_arm_neon_optimizations) {
        defines = [ "CRC32_ARMV8_CRC32" ]
        if (is_android) {
diff --git a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_third__party_zlib_cpu__features.c b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_third__party_zlib_cpu__features.c
index 70ed82e79c34..84d8d25891a7 100644
--- a/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_third__party_zlib_cpu__features.c
+++ b/www/onlyoffice-documentserver/files/patch-core_Common_3dParty_v8_v8_third__party_zlib_cpu__features.c
@@ -1,5 +1,5 @@
---- core/Common/3dParty/v8/v8/third_party/zlib/cpu_features.c.orig	2020-11-16 13:31:04 UTC
-+++ core/Common/3dParty/v8/v8/third_party/zlib/cpu_features.c
+--- core/Common/3dParty/v8_89/v8/third_party/zlib/cpu_features.c.orig	2020-11-16 13:31:04 UTC
++++ core/Common/3dParty/v8_89/v8/third_party/zlib/cpu_features.c
 @@ -31,11 +31,20 @@ int ZLIB_INTERNAL x86_cpu_enable_simd = 0;
  
  #ifndef CPU_NO_SIMD
diff --git a/www/onlyoffice-documentserver/files/patch-core_DesktopEditor_doctrenderer_doctrenderer.pro b/www/onlyoffice-documentserver/files/patch-core_DesktopEditor_doctrenderer_doctrenderer.pro
index 65b767b6f979..a4afbdf65baf 100644
--- a/www/onlyoffice-documentserver/files/patch-core_DesktopEditor_doctrenderer_doctrenderer.pro
+++ b/www/onlyoffice-documentserver/files/patch-core_DesktopEditor_doctrenderer_doctrenderer.pro
@@ -1,13 +1,13 @@
 --- core/DesktopEditor/doctrenderer/doctrenderer.pro.orig	2021-09-30 12:13:32 UTC
-+++ core/DesktopEditor/doctrenderer/doctrenderer.pro
-@@ -65,6 +65,10 @@ SOURCES += \
-     embed/NativeControlEmbed.cpp \
-     embed/NativeBuilderEmbed.cpp
++++ core/DesktopEditor/doctrenderer/doctrenderer.pro	2021-09-30 12:13:32 UTC
+@@ -18,6 +18,10 @@ core_android:DEFINES += DISABLE_MEMORY_LIMITATION
+ #CONFIG += build_xp
+ core_android:DEFINES += DISABLE_MEMORY_LIMITATION
  
 +core_freebsd {
 +    LIBS += -lexecinfo
 +}
 +
- core_mac {
-     !use_v8:CONFIG += use_javascript_core
- }
+ HEADERS += \
+     config.h \
+     doctrenderer.h \
diff --git a/www/onlyoffice-documentserver/files/patch-core_DesktopEditor_doctrenderer_hash.cpp b/www/onlyoffice-documentserver/files/patch-core_DesktopEditor_doctrenderer_hash.cpp
new file mode 100644
index 000000000000..c0d1ba12e105
--- /dev/null
+++ b/www/onlyoffice-documentserver/files/patch-core_DesktopEditor_doctrenderer_hash.cpp
@@ -0,0 +1,67 @@
+--- core/DesktopEditor/doctrenderer/hash.cpp.orig	2023-06-14 12:14:26.656325000 +0200
++++ core/DesktopEditor/doctrenderer/hash.cpp	2023-06-14 14:23:39.149523000 +0200
+@@ -4,12 +4,12 @@
+ #include "../common/Base64.h"
+ #endif
+ 
+-#include "openssl/sha.h"
+-#include "openssl/md2.h"
+-#include "openssl/md4.h"
+-#include "openssl/md5.h"
+-#include "openssl/whrlpool.h"
+-#include "openssl/ripemd.h"
++#include <openssl/sha.h>
++#include <openssl/md2.h>
++#include <openssl/md4.h>
++#include <openssl/md5.h>
++#include <openssl/whrlpool.h>
++#include <openssl/ripemd.h>
+ 
+ #include <cstring>
+ #include <memory>
+@@ -37,6 +37,7 @@ unsigned char* CHash::hash(const unsigned char* data, 
+ 
+ 	switch (alg)
+ 	{
++#if 0
+ 	case haMD2:
+ 	{
+ 		nBufLen = 16;
+@@ -44,6 +45,7 @@ unsigned char* CHash::hash(const unsigned char* data, 
+ 		MD2(data, d, pBufData);
+ 		break;
+ 	}
++#endif
+ 	case haMD4:
+ 	{
+ 		nBufLen = 16;
+@@ -246,11 +248,13 @@ void hash_iteration(unsigned char*& input, int iter, u
+ 
+ 	switch (alg)
+ 	{
++#if 0
+ 	case CHash::haMD2:
+ 	{
+ 		MD2(input, alg_size + 4, tmp);
+ 		break;
+ 	}
++#endif
+ 	case CHash::haMD4:
+ 	{
+ 		MD4(input, alg_size + 4, tmp);
+@@ -319,6 +323,7 @@ unsigned char* CHash::hash2(const char* password, cons
+ 	unsigned char* pBuffer1 = NULL;
+ 	switch (alg)
+ 	{
++#if 0
+ 	case haMD2:
+ 	{
+ 		alg_size = 16;
+@@ -326,6 +331,7 @@ unsigned char* CHash::hash2(const char* password, cons
+ 		MD2(inputData, inputDataLen, pBuffer1);
+ 		break;
*** 4132 LINES SKIPPED ***



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