[package - main-amd64-default][www/onlyoffice-documentserver] Failed for onlyoffice-documentserver-7.3.3.49_3 in package

From: <pkg-fallout_at_FreeBSD.org>
Date: Sun, 16 Apr 2023 16:24:46 UTC
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer:     mikael@FreeBSD.org
Log URL:        https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/p3034bd2d70e6_s214909d669/logs/onlyoffice-documentserver-7.3.3.49_3.log
Build URL:      https://pkg-status.freebsd.org/beefy18/build.html?mastername=main-amd64-default&build=p3034bd2d70e6_s214909d669
Log:

=>> Building www/onlyoffice-documentserver
build started at Sun Apr 16 15:13:25 UTC 2023
port directory: /usr/ports/www/onlyoffice-documentserver
package name: onlyoffice-documentserver-7.3.3.49_3
building for: FreeBSD main-amd64-default-job-04 14.0-CURRENT FreeBSD 14.0-CURRENT 1400086 amd64
maintained by: mikael@FreeBSD.org
Makefile ident: 
Poudriere version: 3.2.8-23-ga7f8d188
Host OSVERSION: 1400073
Jail OSVERSION: 1400086
Job Id: 04




!!! Jail is newer than host. (Jail: 1400086, Host: 1400073) !!!
!!! This is not supported. !!!
!!! Host kernel must be same or newer than jail. !!!
!!! Expect build failures. !!!



---Begin Environment---
SHELL=/bin/sh
OSVERSION=1400086
UNAME_v=FreeBSD 14.0-CURRENT 1400086
UNAME_r=14.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-23-ga7f8d188
MASTERMNT=/usr/local/poudriere/data/.m/main-amd64-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/main-amd64-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=main-amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/main-amd64-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for onlyoffice-documentserver-7.3.3.49_3:
====> Options available for the single DB: you have to select exactly one of them
     MYSQL=off: MySQL database support
     PGSQL=on: PostgreSQL database support
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
mikael@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
MAKE=gmake PKG_CONFIG=pkgconf PYTHON="/usr/local/bin/python3.9" QT_SELECT=qt5 QMAKEMODULES="/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/mkspecs/modules:/usr/local/lib/qt5/mkspecs/modules" XDG_DATA_HOME=/wrkdirs/usr/ports/www/onlyoffice-documentserver/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/www/onlyoffice-documentserver/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/.cache  HOME=/wrkdirs/usr/ports/www/onlyoffice-documentserver/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh DEFAULT_AUTOCONF=2.71 CMAKE_PREFIX_PATH="/usr/local" LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
--End CONFIGURE_ENV--

--MAKE_ENV--
BUILD_NUMBER="8"  PKG_CACHE_PATH=/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/.pkg-cache  PRODUCT_VERSION=7.3.3  BUILD_NUMBER=49 PYTHONDONTWRITEBYTECODE=1 QT_SELECT=qt5 QMAKEMODULES="/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/mkspecs/modules:/usr/local/lib/qt5/mkspecs/modules" XDG_DATA_HOME=/wrkdirs/usr/ports/www/onlyoffice-documentserver/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/www/onlyoffice-documentserver/work  XDG_CACHE_HOME=/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/.cache  HOME=/wrkdirs/usr/ports/www/onlyoffice-documentserver/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES DEFAULT_AUTOCONF=2.71 LANG=
 en_US.UTF-8 LC_ALL=en_US.UTF-8 PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="-DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include"  LDFLAGS=" -L/usr/local/lib -fstack-protector-strong " LIBS="-L/usr/local/lib"  CXX="c++" CXXFLAGS="-O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DLIBICONV_PLUG -isystem /usr/local/include "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
DS_GROUPNAME=onlyoffice  DS_USERNAME=onlyoffice PYTHON_INCLUDEDIR=include/python3.9  PYTHON_LIBDIR=lib/python3.9  PYTHON_PLATFORM=freebsd14  PYTHON_SITELIBDIR=lib/python3.9/site-packages  PYTHON_SUFFIX=39  PYTHON_EXT_SUFFIX=.cpython-39  PYTHON_VER=3.9  PYTHON_VERSION=python3.9 PYTHON2="@comment " PYTHON3="" QT_BINDIR="lib/qt5/bin" QT_INCDIR="include/qt5" QT_LIBDIR="lib/qt5" QT_ARCHDIR="lib/qt5" QT_PLUGINDIR="lib/qt5/plugins" QT_LIBEXECDIR="libexec/qt5" QT_IMPORTDIR="lib/qt5/imports" QT_QMLDIR="lib/qt5/qml" QT_DATADIR="share/qt5" QT_DOCDIR="share/doc/qt5" QT_L10NDIR="share/qt5/translations" QT_EXAMPLEDIR="share/examples/qt5" QT_TESTDIR="share/qt5/tests" QT_MKSPECDIR="lib/qt5/mkspecs" QT_TOOLDIR="lib/qt5/bin" OSREL=14.0 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/onlyoffice-documentserver"  EXAMPLESDIR="share/examples/onlyoffice-documentserver"  DATADIR="share/onlyoffice-documentserver"  WWWDIR="www/onlyoffice"  ETCDIR="etc/onlyoffice"
--End PLIST_SUB--

--SUB_LIST--
ETCDIR=/usr/local/etc/onlyoffice  PREFIX=/usr/local  WWWDIR=/usr/local/www/onlyoffice PYTHON_INCLUDEDIR=/usr/local/include/python3.9  PYTHON_LIBDIR=/usr/local/lib/python3.9  PYTHON_PLATFORM=freebsd14  PYTHON_SITELIBDIR=/usr/local/lib/python3.9/site-packages  PYTHON_SUFFIX=39  PYTHON_EXT_SUFFIX=.cpython-39  PYTHON_VER=3.9  PYTHON_VERSION=python3.9 PYTHON2="@comment " PYTHON3="" PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/onlyoffice-documentserver DOCSDIR=/usr/local/share/doc/onlyoffice-documentserver EXAMPLESDIR=/usr/local/share/examples/onlyoffice-documentserver  WWWDIR=/usr/local/www/onlyoffice ETCDIR=/usr/local/etc/onlyoffice
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
#### /usr/local/etc/poudriere.d/make.conf ####
# XXX: We really need this but cannot use it while 'make checksum' does not
# try the next mirror on checksum failure.  It currently retries the same
# failed mirror and then fails rather then trying another.  It *does*
# try the next if the size is mismatched though.
#MASTER_SITE_FREEBSD=yes
# Build ALLOW_MAKE_JOBS_PACKAGES with 2 jobs
MAKE_JOBS_NUMBER=2
#### /usr/ports/Mk/Scripts/ports_env.sh ####
_CCVERSION_921dbbb2=FreeBSD clang version 15.0.7 (https://github.com/llvm/llvm-project.git llvmorg-15.0.7-0-g8dfdcc7b7bf6) Target: x86_64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin
_ALTCCVERSION_921dbbb2=none
_CXXINTERNAL_acaad9ca=FreeBSD clang version 15.0.7 (https://github.com/llvm/llvm-project.git llvmorg-15.0.7-0-g8dfdcc7b7bf6) Target: x86_64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--hash-style=both" "--enable-new-dtags" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
CC_OUTPUT_921dbbb2_58173849=yes
CC_OUTPUT_921dbbb2_9bdba57c=yes
CC_OUTPUT_921dbbb2_6a4fe7f5=yes
CC_OUTPUT_921dbbb2_6bcac02b=yes
CC_OUTPUT_921dbbb2_67d20829=yes
CC_OUTPUT_921dbbb2_bfa62e83=yes
CC_OUTPUT_921dbbb2_f0b4d593=yes
CC_OUTPUT_921dbbb2_308abb44=yes
CC_OUTPUT_921dbbb2_f00456e5=yes
CC_OUTPUT_921dbbb2_65ad290d=yes
CC_OUTPUT_921dbbb2_f2776b26=yes
CC_OUTPUT_921dbbb2_53255a77=yes
CC_OUTPUT_921dbbb2_911cfe02=yes
CC_OUTPUT_921dbbb2_b2657cc3=yes
CC_OUTPUT_921dbbb2_380987f7=yes
CC_OUTPUT_921dbbb2_160933ec=yes
CC_OUTPUT_921dbbb2_fb62803b=yes
CC_OUTPUT_921dbbb2_af59ad06=yes
CC_OUTPUT_921dbbb2_a15f3fcf=yes
_OBJC_CCVERSION_921dbbb2=FreeBSD clang version 15.0.7 (https://github.com/llvm/llvm-project.git llvmorg-15.0.7-0-g8dfdcc7b7bf6) Target: x86_64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/bin
_OBJC_ALTCCVERSION_921dbbb2=none
ARCH=amd64
OPSYS=FreeBSD
_OSRELEASE=14.0-CURRENT
OSREL=14.0
OSVERSION=1400086
PYTHONBASE=/usr/local
HAVE_COMPAT_IA32_KERN=YES
CONFIGURE_MAX_CMD_LEN=524288
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
GID=0
UID=0
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  524288
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  89999
open files                      (-n)  1024
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===>  License AGPLv3 accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   onlyoffice-documentserver-7.3.3.49_3 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.19.1_1.pkg
[main-amd64-default-job-04] Installing pkg-1.19.1_1...
[main-amd64-default-job-04] Extracting pkg-1.19.1_1: .......... done
===>   onlyoffice-documentserver-7.3.3.49_3 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of onlyoffice-documentserver-7.3.3.49_3
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License AGPLv3 accepted by the user
===> Fetching all distfiles required by onlyoffice-documentserver-7.3.3.49_3 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License AGPLv3 accepted by the user
===> Fetching all distfiles required by onlyoffice-documentserver-7.3.3.49_3 for building
=> SHA256 Checksum OK for v8-8.9.255.25_all.tar.gz.
=> SHA256 Checksum OK for node-v16.13.0.tar.gz.
=> SHA256 Checksum OK for node-v16.20.0.tar.gz.
=> SHA256 Checksum OK for optipng-0.7.7.tar.gz.
=> SHA256 Checksum OK for onlyoffice-documentserver-7.3.3.49-npm-cache.tar.gz.
=> SHA256 Checksum OK for node-v16.20.0-headers.tar.gz.
=> SHA256 Checksum OK for ONLYOFFICE-DocumentServer-v7.3.3.49-v7.3.3_GH0.tar.gz.
=> SHA256 Checksum OK for ONLYOFFICE-core-v7.3.3.49_GH0.tar.gz.
=> SHA256 Checksum OK for ONLYOFFICE-core-fonts-v7.3.3.49_GH0.tar.gz.
=> SHA256 Checksum OK for ONLYOFFICE-dictionaries-v7.3.3.49_GH0.tar.gz.
=> SHA256 Checksum OK for ONLYOFFICE-document-server-integration-v7.3.3.49_GH0.tar.gz.
=> SHA256 Checksum OK for ONLYOFFICE-document-templates-v7.3.3.49_GH0.tar.gz.
=> SHA256 Checksum OK for ONLYOFFICE-sdkjs-v7.3.3.49_GH0.tar.gz.
=> SHA256 Checksum OK for ONLYOFFICE-server-v7.3.3.49_GH0.tar.gz.
=> SHA256 Checksum OK for ONLYOFFICE-web-apps-v7.3.3.49_GH0.tar.gz.
=> SHA256 Checksum OK for ONLYOFFICE-build_tools-v7.3.3.49_GH0.tar.gz.
<snip>
m4 -I"./branding" -D M4_COMPANY_NAME=ONLYOFFICE -D M4_PACKAGE_NAME=onlyoffice-documentserver -D M4_PRODUCT_NAME=DocumentServer -D M4_PACKAGE_VERSION=7.3.3-49 -D M4_PUBLISHER_NAME='Ascensio System SIA' -D M4_PUBLISHER_URL='http://onlyoffice.com' -D M4_SUPPORT_MAIL='support@onlyoffice.com' -D M4_SUPPORT_URL='http://support.onlyoffice.com' -D M4_BRANDING_DIR='/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/branding' -D M4_ONLYOFFICE_VALUE=onlyoffice -D M4_PLATFORM=freebsd -D M4_DEB_ARCH='' -D M4_NGINX_CONF='/usr/local/etc/onlyoffice/documentserver/nginx/includes' -D M4_NGINX_LOG='/var/log/onlyoffice/documentserver' -D M4_DS_PREFIX='onlyoffice/documentserver' -D M4_DS_ROOT='/usr/local/www/onlyoffice/documentserver' -D M4_DS_FILES='/var/db/onlyoffice/documentserver' -D M4_DS_EXAMLE='/usr/local/www/onlyoffice/documentserver-example' -D M4_DEV_NULL='/dev/null' -D M4_PACKAGE_SERVICES='ds-docservice ds-converter ds-metrics' -D M4_DS_EXAMPLE_E
 NABLE=1 rpm/package.spec.m4 > rpm/package.spec
mv -f rpm/package.spec rpm/onlyoffice-documentserver.spec
m4 -I"./branding" -D M4_COMPANY_NAME=ONLYOFFICE -D M4_PACKAGE_NAME=onlyoffice-documentserver -D M4_PRODUCT_NAME=DocumentServer -D M4_PACKAGE_VERSION=7.3.3-49 -D M4_PUBLISHER_NAME='Ascensio System SIA' -D M4_PUBLISHER_URL='http://onlyoffice.com' -D M4_SUPPORT_MAIL='support@onlyoffice.com' -D M4_SUPPORT_URL='http://support.onlyoffice.com' -D M4_BRANDING_DIR='/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/branding' -D M4_ONLYOFFICE_VALUE=onlyoffice -D M4_PLATFORM=freebsd -D M4_DEB_ARCH='' -D M4_NGINX_CONF='/usr/local/etc/onlyoffice/documentserver/nginx/includes' -D M4_NGINX_LOG='/var/log/onlyoffice/documentserver' -D M4_DS_PREFIX='onlyoffice/documentserver' -D M4_DS_ROOT='/usr/local/www/onlyoffice/documentserver' -D M4_DS_FILES='/var/db/onlyoffice/documentserver' -D M4_DS_EXAMLE='/usr/local/www/onlyoffice/documentserver-example' -D M4_DEV_NULL='/dev/null' -D M4_PACKAGE_SERVICES='ds-docservice ds-converter ds-metrics' -D M4_DS_EXAMPLE_E
 NABLE=1 apt-rpm/package.spec.m4 > apt-rpm/package.spec
mv -f apt-rpm/package.spec apt-rpm/onlyoffice-documentserver.spec
m4 -I"./branding" -D M4_COMPANY_NAME=ONLYOFFICE -D M4_PACKAGE_NAME=onlyoffice-documentserver -D M4_PRODUCT_NAME=DocumentServer -D M4_PACKAGE_VERSION=7.3.3-49 -D M4_PUBLISHER_NAME='Ascensio System SIA' -D M4_PUBLISHER_URL='http://onlyoffice.com' -D M4_SUPPORT_MAIL='support@onlyoffice.com' -D M4_SUPPORT_URL='http://support.onlyoffice.com' -D M4_BRANDING_DIR='/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/branding' -D M4_ONLYOFFICE_VALUE=onlyoffice -D M4_PLATFORM=freebsd -D M4_DEB_ARCH='' -D M4_NGINX_CONF='/usr/local/etc/onlyoffice/documentserver/nginx/includes' -D M4_NGINX_LOG='/var/log/onlyoffice/documentserver' -D M4_DS_PREFIX='onlyoffice/documentserver' -D M4_DS_ROOT='/usr/local/www/onlyoffice/documentserver' -D M4_DS_FILES='/var/db/onlyoffice/documentserver' -D M4_DS_EXAMLE='/usr/local/www/onlyoffice/documentserver-example' -D M4_DEV_NULL='/dev/null' -D M4_PACKAGE_SERVICES='ds-docservice ds-converter ds-metrics' -D M4_DS_EXAMPLE_E
 NABLE=1 rpm/bin/documentserver-configure.sh.m4 > rpm/bin/documentserver-configure.sh
chmod u+x rpm/bin/documentserver-configure.sh
m4 -I"./branding" -D M4_COMPANY_NAME=ONLYOFFICE -D M4_PACKAGE_NAME=onlyoffice-documentserver -D M4_PRODUCT_NAME=DocumentServer -D M4_PACKAGE_VERSION=7.3.3-49 -D M4_PUBLISHER_NAME='Ascensio System SIA' -D M4_PUBLISHER_URL='http://onlyoffice.com' -D M4_SUPPORT_MAIL='support@onlyoffice.com' -D M4_SUPPORT_URL='http://support.onlyoffice.com' -D M4_BRANDING_DIR='/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/branding' -D M4_ONLYOFFICE_VALUE=onlyoffice -D M4_PLATFORM=freebsd -D M4_DEB_ARCH='' -D M4_NGINX_CONF='/usr/local/etc/onlyoffice/documentserver/nginx/includes' -D M4_NGINX_LOG='/var/log/onlyoffice/documentserver' -D M4_DS_PREFIX='onlyoffice/documentserver' -D M4_DS_ROOT='/usr/local/www/onlyoffice/documentserver' -D M4_DS_FILES='/var/db/onlyoffice/documentserver' -D M4_DS_EXAMLE='/usr/local/www/onlyoffice/documentserver-example' -D M4_DEV_NULL='/dev/null' -D M4_PACKAGE_SERVICES='ds-docservice ds-converter ds-metrics' -D M4_DS_EXAMPLE_E
 NABLE=1 apt-rpm/bin/documentserver-configure.sh.m4 > apt-rpm/bin/documentserver-configure.sh
chmod u+x apt-rpm/bin/documentserver-configure.sh
mkdir -p common/documentserver/home/core-fonts common/documentserver/home/license common/documentserver/home/web-apps common/documentserver/home/server common/documentserver/home/sdkjs common/documentserver/home/sdkjs-plugins
cp -rf ../build_tools/out/freebsd_64/onlyoffice/documentserver/* common/documentserver/home
mkdir -p common/documentserver/config
mkdir -p common/documentserver/config/log4js
mv -f common/documentserver/home/server/Common/config/*.json common/documentserver/config
mv -f common/documentserver/home/server/Common/config/log4js/*.json common/documentserver/config/log4js/
# rename product specific folders
sed -i '' "s|onlyoffice\/documentserver|"onlyoffice/documentserver"|" common/documentserver/config/*.json
# rename db account params
sed -i '' 's|\("db.*": "\)onlyoffice\("\)|\1'onlyoffice'\2|' common/documentserver/config/*.json
# rename db schema name
sed -i '' 's|onlyoffice|'onlyoffice'|' common/documentserver/home/server/schema/**/*.sql
# ignore CREATE DATABASE commands in MySQL
sed -i '' -r "s/^(CREATE DATABASE|USE)/-- \1/" common/documentserver/home/server/schema/mysql/*.sql
# rename product in license
sed -i '' 's|ONLYOFFICE|'ONLYOFFICE'|' common/documentserver/home/server/3rd-Party.txt
sed -i '' 's|DocumentServer|'DocumentServer'|' common/documentserver/home/server/3rd-Party.txt
# Prevent for modification original config
chmod ug=r common/documentserver/config/*.json
cp -fr common/documentserver/home/server/LICENSE.txt  common/documentserver/home/server/3rd-Party.txt  common/documentserver/home/server/license common/documentserver/home
rm -fr common/documentserver/home/server/LICENSE.txt  common/documentserver/home/server/3rd-Party.txt  common/documentserver/home/server/license
[ -f ./branding/common/documentserver/license/onlyoffice-documentserver/LICENSE.txt ] && cp -fr common/documentserver/home ./branding/common/documentserver/license/onlyoffice-documentserver/LICENSE.txt || true
cp: ./branding/common/documentserver/license/onlyoffice-documentserver/LICENSE.txt: Not a directory
chmod u+x common/documentserver/home/server/FileConverter/bin/x2t
#chmod u+x common/documentserver/home/server/FileConverter/bin/docbuilder
[ -f common/documentserver/home/server/FileConverter/bin/HtmlFileInternal/HtmlFileInternal ] && chmod u+x common/documentserver/home/server/FileConverter/bin/HtmlFileInternal/HtmlFileInternal || true
chmod u+x common/documentserver/home/server/tools/allfontsgen
sed -i '' "s|\(_dc=\)0|\1"7.3.3-49"|" common/documentserver/home/web-apps/apps/api/documents/api.js
sed -i '' 's|\("packageType": \)[0-9]\+\(.*\)|\10\2|' common/documentserver/config/*.json
sed -i '' 's|\("editorDataStorage": "\).\+\(".*\)|\1editorDataMemory\2|' common/documentserver/config/*.json
cd common/documentserver/home/npm && \
	npm install && \
	env PKG_CACHE_PATH=/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/.pkg-cache "/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/server/node_modules/.bin/pkg" ./node_modules/json  -o json

added 39 packages, and audited 40 packages in 461ms

2 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
> pkg@5.5.1
> Targets not specified. Assuming:
  node16-freebsd-x64
rm -r \
	common/documentserver/home/npm/node_modules \
	common/documentserver/home/npm/package-lock.json
echo "Done" > documentserver
gmake[1]: Leaving directory '/wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package'
===========================================================================
=======================<phase: run-depends    >============================
===>   onlyoffice-documentserver-7.3.3.49_3 depends on package: py39-supervisor>0 - not found
===>   Installing existing package /packages/All/py39-supervisor-4.2.4,1.pkg
[main-amd64-default-job-04] Installing py39-supervisor-4.2.4,1...
[main-amd64-default-job-04] Extracting py39-supervisor-4.2.4,1: .......... done
===>   onlyoffice-documentserver-7.3.3.49_3 depends on package: py39-supervisor>0 - found
===>   Returning to build of onlyoffice-documentserver-7.3.3.49_3
===>   onlyoffice-documentserver-7.3.3.49_3 depends on executable: gsed - not found
===>   Installing existing package /packages/All/gsed-4.9.pkg
[main-amd64-default-job-04] Installing gsed-4.9...
[main-amd64-default-job-04] Extracting gsed-4.9: .......... done
===>   onlyoffice-documentserver-7.3.3.49_3 depends on executable: gsed - found
===>   Returning to build of onlyoffice-documentserver-7.3.3.49_3
===>   onlyoffice-documentserver-7.3.3.49_3 depends on executable: nginx - not found
===>   Installing existing package /packages/All/nginx-1.22.1_5,3.pkg
[main-amd64-default-job-04] Installing nginx-1.22.1_5,3...
[main-amd64-default-job-04] `-- Installing pcre-8.45_3...
[main-amd64-default-job-04] `-- Extracting pcre-8.45_3: .......... done
===> Creating groups.
Using existing group 'www'.
===> Creating users
Using existing user 'www'.
[main-amd64-default-job-04] Extracting nginx-1.22.1_5,3: .......... done
=====
Message from nginx-1.22.1_5,3:

--
Recent version of the NGINX introduces dynamic modules support.  In
FreeBSD ports tree this feature was enabled by default with the DSO
knob.  Several vendor's and third-party modules have been converted
to dynamic modules.  Unset the DSO knob builds an NGINX without
dynamic modules support.

To load a module at runtime, include the new `load_module'
directive in the main context, specifying the path to the shared
object file for the module, enclosed in quotation marks.  When you
reload the configuration or restart NGINX, the module is loaded in.
It is possible to specify a path relative to the source directory,
or a full path, please see
https://www.nginx.com/blog/dynamic-modules-nginx-1-9-11/ and
http://nginx.org/en/docs/ngx_core_module.html#load_module for
details.

Default path for the NGINX dynamic modules is

/usr/local/libexec/nginx.
===>   onlyoffice-documentserver-7.3.3.49_3 depends on executable: nginx - found
===>   Returning to build of onlyoffice-documentserver-7.3.3.49_3
===>   onlyoffice-documentserver-7.3.3.49_3 depends on executable: pwgen - not found
===>   Installing existing package /packages/All/pwgen-2.08,2.pkg
[main-amd64-default-job-04] Installing pwgen-2.08,2...
[main-amd64-default-job-04] Extracting pwgen-2.08,2: ..... done
===>   onlyoffice-documentserver-7.3.3.49_3 depends on executable: pwgen - found
===>   Returning to build of onlyoffice-documentserver-7.3.3.49_3
===>   onlyoffice-documentserver-7.3.3.49_3 depends on package: rabbitmq>0 - not found
===>   Installing existing package /packages/All/rabbitmq-3.11.10.pkg
[main-amd64-default-job-04] Installing rabbitmq-3.11.10...
[main-amd64-default-job-04] `-- Installing erlang-runtime25-25.3...
[main-amd64-default-job-04] `-- Extracting erlang-runtime25-25.3: .......... done
===> Creating groups.
Creating group 'rabbitmq' with gid '135'.
===> Creating users
Creating user 'rabbitmq' with uid '135'.
===> Creating homedir(s)
[main-amd64-default-job-04] Extracting rabbitmq-3.11.10: .......... done
=====
Message from erlang-runtime25-25.3:

--
To use this runtime port for development or testing, just prepend
its binary path ("/usr/local/lib/erlang25/bin") to your PATH variable.
===>   onlyoffice-documentserver-7.3.3.49_3 depends on package: rabbitmq>0 - found
===>   Returning to build of onlyoffice-documentserver-7.3.3.49_3
===>   onlyoffice-documentserver-7.3.3.49_3 depends on package: webfonts>=0 - not found
===>   Installing existing package /packages/All/webfonts-0.30_14.pkg
[main-amd64-default-job-04] Installing webfonts-0.30_14...
[main-amd64-default-job-04] Extracting webfonts-0.30_14: .......... done
=====
Message from webfonts-0.30_14:

--
IMPORTANT - READ CAREFULLY: You may not use these fonts if you do not agree to
the terms of the Microsoft End-User License Agreement ("EULA").  You will find
the EULA at /usr/local/share/doc/webfonts/LICENSE.  If you read and agree
to the EULA, you can start using the fonts by following these instructions:

Make sure that the freetype module is loaded.  If it is not, add the following
line to the "Modules" section of xorg.conf or XF86Config:

	Load "freetype"

Add the following line to the "Files" section of xorg.conf or XF86Config:

	FontPath "/usr/local/share/fonts/webfonts/"

NOTE: Due to known freetype bug some glyphs (N, W) of y2006 Verdana Bold
      font are not rendered correctly in anti-aliased mode within the range
      9-16 ppem
===>   onlyoffice-documentserver-7.3.3.49_3 depends on package: webfonts>=0 - found
===>   Returning to build of onlyoffice-documentserver-7.3.3.49_3
===>   onlyoffice-documentserver-7.3.3.49_3 depends on executable: psql - found
===========================================================================
=======================<phase: stage          >============================
===>  Staging for onlyoffice-documentserver-7.3.3.49_3
===>   Generating temporary packing list
===> Creating groups.
===> Creating users
cd /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/home && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) &&  /usr/bin/find -Ed $1 $3 \(   -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} +  -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE . /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/www/onlyoffice/documentserver
install  -m 555 /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/bin/*.sh /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/bin
install  -s -m 555 /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/home/server/tools/all* /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/www/onlyoffice/documentserver/server/tools
install  -s -m 555 /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/home/server/FileConverter/bin/x2t /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/www/onlyoffice/documentserver/server/FileConverter/bin
install  -s -m 555 /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/home/server/FileConverter/bin/docbuilder /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/www/onlyoffice/documentserver/server/FileConverter/bin
install  -m 0644 /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/home/npm/json /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/www/onlyoffice/documentserver/npm
install  -s -m 0644 /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/home/server/FileConverter/bin/*.so /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/lib
/bin/rm -f /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/bin/documentserver-letsencrypt.sh
/bin/mkdir -p /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/etc/onlyoffice/documentserver/supervisor  /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/etc/onlyoffice/documentserver/nginx/includes  /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/etc/onlyoffice/documentserver/logrotate
/bin/rm -f /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/config/*-mac.json /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/config/*-windows.json
cd /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/supervisor && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) &&  /usr/bin/find -Ed $1 $3 \(   -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} +  -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE . /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/etc/onlyoffice/documentserver/supervisor "-name *\.conf"
cd /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/logrotate && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) &&  /usr/bin/find -Ed $1 $3 \(   -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} +  -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE . /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/etc/onlyoffice/documentserver/logrotate "-name *\.conf"
install  -m 0644 /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/nginx/ds.conf /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/etc/onlyoffice/documentserver/nginx/ds.conf.sample
install  -m 0644 /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/nginx/ds-ssl.conf /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/etc/onlyoffice/documentserver/nginx/ds-ssl.conf.sample
install  -m 0644 /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/nginx/includes/http-common.conf /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/etc/onlyoffice/documentserver/nginx/includes/http-common.conf.sample
install  -m 0644 /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/nginx/includes/ds-common.conf /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/etc/onlyoffice/documentserver/nginx/includes/ds-common.conf.sample
install  -m 0644 /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/nginx/includes/ds-docservice.conf /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/etc/onlyoffice/documentserver/nginx/includes/ds-docservice.conf.sample
install  -m 0644 /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/nginx/includes/ds-letsencrypt.conf /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/etc/onlyoffice/documentserver/nginx/includes/ds-letsencrypt.conf.sample
install  -m 0644 /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/nginx/includes/ds-mime.types.conf /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/etc/onlyoffice/documentserver/nginx/includes/ds-mime.types.conf.sample
cd /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/nginx/includes && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) &&  /usr/bin/find -Ed $1 $3 \(   -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} +  -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE . /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/etc/onlyoffice/documentserver/nginx/includes "-name *\.conf"
cd /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/DocumentServer-7.3.3/document-server-package/common/documentserver/config && /bin/sh -c '(/usr/bin/find -Ed $1 $3 | /usr/bin/cpio -dumpl $2 >/dev/null 2>&1) &&  /usr/bin/find -Ed $1 $3 \(   -type d -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 755 "$@"'\'' . {} +  -o -type f -exec /bin/sh -c '\''cd '\''$2'\'' && chmod 0644 "$@"'\'' . {} + \)' COPYTREE_SHARE . /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/etc/onlyoffice/documentserver
install  -m 0644 /usr/ports/www/onlyoffice-documentserver/files/local.json.sample /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/etc/onlyoffice/documentserver
/bin/mkdir -p /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage//usr/local/etc/onlyoffice/documentserver/newsyslog.conf.d
install  -m 0644 /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/onlyoffice.newsyslog.sample /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage//usr/local/etc/onlyoffice/documentserver/newsyslog.conf.d
/bin/mkdir -p /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/var/log/onlyoffice/documentserver/docservice  /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/var/log/onlyoffice/documentserver/converter  /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/var/log/onlyoffice/documentserver/metrics  /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/var/db/onlyoffice/documentserver/App_Data/cache/files  /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/var/db/onlyoffice/documentserver/App_Data/docbuilder  /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/www/onlyoffice/Data  /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/www/onlyoffice/documentserver/fonts
/bin/mkdir -p /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/share/pkg/triggers
install  -m 0644 /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/onlyoffice-documentserver.ucl /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/share/pkg/triggers/
====> Compressing man pages (compress-man)
===========================================================================
=======================<phase: package        >============================
===>  Building package for onlyoffice-documentserver-7.3.3.49_3
pkg-static: Unable to access file /wrkdirs/usr/ports/www/onlyoffice-documentserver/work/stage/usr/local/www/onlyoffice/documentserver/server/Metrics/node_modules/modern-syslog/build/Release/core.node:No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/ports/www/onlyoffice-documentserver