nextcloud / documentserver_community

Document server for onlyoffice
https://apps.nextcloud.com/apps/documentserver_community
131 stars 29 forks source link

Make error : /bin/sh: line 1: warning: command substitution: ignored null byte in input #197

Open kikislater opened 3 years ago

kikislater commented 3 years ago

Error building from make :

make
mkdir -p 3rdparty/onlyoffice
docker create --name oo-extract onlyoffice/documentserver:5.6.5.3
Unable to find image 'onlyoffice/documentserver:5.6.5.3' locally
5.6.5.3: Pulling from onlyoffice/documentserver
23884877105a: Pull complete 
bc38caa0f5b9: Pull complete 
2910811b6c42: Pull complete 
36505266dcc6: Pull complete 
73f11410c785: Pull complete 
0b794493f513: Pull complete 
6b7649cc114e: Pull complete 
5b4ac218a686: Pull complete 
Digest: sha256:39a5de21e24feeabb0cba00534f24c39a029842884c8dc13f024ed124255d9a4
Status: Downloaded newer image for onlyoffice/documentserver:5.6.5.3
5670ab838b32c6e6a2ba7fb9736e41fc92bfd5f4a6a7ce955cb5e5b1516ae8b1
docker cp oo-extract:/var/www/onlyoffice/documentserver 3rdparty/onlyoffice
docker rm oo-extract
oo-extract
rm -r 3rdparty/onlyoffice/documentserver/server/{SpellChecker,Common,DocService}
cd 3rdparty/onlyoffice/documentserver/server/FileConverter/bin && \
    ../../tools/allfontsgen \
    --input="../../../core-fonts" \
    --allfonts-web="../../../sdkjs/common/AllFonts.js" \
    --allfonts="AllFonts.js" \
    --images="../../../sdkjs/common/Images" \
    --output-web="../../../fonts" \
    --selection="font_selection.bin"
sed -i 's/if(yb===d\[a\].ka)/if(d[a]\&\&yb===d[a].ka)/' 3rdparty/onlyoffice/documentserver/sdkjs/*/sdk-all.js
VERSION=$(grep -ozP "DocsAPI\.DocEditor\.version\s*=\s*function\(\) *\{\n\s+return\s\'\K(\d+.\d+.\d+)" 3rdparty/onlyoffice/documentserver/web-apps/apps/api/documents/api.js) ;\
    sed -i "s/return '[0-9.]*'/return '$VERSION'/" lib/OnlyOffice/WebVersion.php
/bin/sh: line 1: warning: command substitution: ignored null byte in input
github-actions[bot] commented 1 month ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 60 days. Thank you for your contribution!

Retaking repo management include inheritance of old, not treated, and probablty obsolete issues, this is why it was decided to mark issues as stale.