Skip to content

Commit

Permalink
www/onlyoffice-documentserver: Fix build
Browse files Browse the repository at this point in the history
Fix nodejs version in USES and regen yao-pkg patch
  • Loading branch information
MikaelUrankar committed Feb 2, 2024
1 parent 06dbf1d commit 81ddc72
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
3 changes: 1 addition & 2 deletions www/onlyoffice-documentserver/Makefile
@@ -1,4 +1,3 @@
# hyphen
PORTNAME= onlyoffice-documentserver
DISTVERSIONPREFIX= v
DISTVERSION= 7.5.1.23
Expand Down Expand Up @@ -41,7 +40,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}supervisor>0:sysutils/py-supervisor@${PY_FLA
rabbitmq>0:net/rabbitmq \
webfonts>=0:x11-fonts/webfonts

USES= autoreconf:build dos2unix fakeroot gmake gnome iconv localbase nodejs:16,build pkgconfig \
USES= autoreconf:build dos2unix fakeroot gmake gnome iconv localbase nodejs:18,build pkgconfig \
python:3.9+,build qt:5 trigger
USE_QT= qmake:build
USE_GITHUB= yes
Expand Down
@@ -1,6 +1,6 @@
--- server/node_modules/pkg-fetch/lib-es5/build.js.orig 2021-12-31 17:50:57.174508000 +0100
+++ server/node_modules/pkg-fetch/lib-es5/build.js 2021-12-31 17:50:42.893063000 +0100
@@ -98,18 +98,14 @@ function getConfigureArgs(major, targetPlatform) {
--- server/node_modules/@yao-pkg/pkg-fetch/lib-es5/build.js.orig 2024-01-25 21:40:25.773587000 +0100
+++ server/node_modules/@yao-pkg/pkg-fetch/lib-es5/build.js 2024-01-25 21:41:12.907517000 +0100
@@ -99,12 +99,6 @@ function getConfigureArgs(major, targetPlatform) {
if (targetPlatform === 'linuxstatic') {
args.push('--fully-static');
}
Expand All @@ -10,8 +10,10 @@
- args.push('--enable-lto');
- }
- }
// DTrace
args.push('--without-dtrace');
// production binaries do NOT take NODE_OPTIONS from end-users
args.push('--without-node-options');
// The dtrace and etw support was removed in https://github.com/nodejs/node/commit/aa3a572e6bee116cde69508dc29478b40f40551a
@@ -115,7 +109,9 @@ function getConfigureArgs(major, targetPlatform) {
// bundled npm package manager
args.push('--without-npm');
// Small ICU
Expand All @@ -22,3 +24,10 @@
// Workaround for nodejs/node#39313
// All supported macOS versions have zlib as a system library
if (targetPlatform === 'macos') {
@@ -433,4 +429,4 @@ exports.default = build;
});
}
exports.default = build;
-//# sourceMappingURL=build.js.map
\ No newline at end of file
+//# sourceMappingURL=build.js.map
@@ -1,9 +1,9 @@
https://github.com/vercel/pkg-fetch/blob/main/patches/node.v18.5.0.cpp.patch
https://github.com/yao-pkg/pkg-fetch/blob/main/patches/node.v18.18.2.cpp.patch
+ local FreeBSD patches


--- server/node_modules/pkg-fetch/patches/node.v18.5.0.cpp.patch.orig 2021-12-30 20:04:18.203959000 +0100
+++ server/node_modules/pkg-fetch/patches/node.v18.5.0.cpp.patch 2021-12-30 20:09:53.210319000 +0100
--- server/node_modules/@yao-pkg/pkg-fetch/patches/node.v18.18.2.cpp.patch 2021-12-30 20:04:18.203959000 +0100
+++ server/node_modules/@yao-pkg/pkg-fetch/patches/node.v18.18.2.cpp.patch
@@ -11,6 +11,15 @@ + 'lto': ' -flto=4 -ffat-lto-objects ', #
}, {
'lto': ' -flto ', # Clang
Expand Down

0 comments on commit 81ddc72

Please sign in to comment.