You are not logged in.
Maintainer dropped package https://aur.archlinux.org/packages/only … mentserver for some reasons.
Some time ago new major version was released. I tried to compile it, but seems PKGBUILD need more changes than I did.
Maybe someone have some time to make package?
Offline
... seems PKGBUILD need more changes than I did.
Then share what you did and the errors it resulted in so potential helpers have some idea what they are getting into.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Online
This is PKGBUILD:
pkgname=onlyoffice-documentserver
pkgver=5.5.0
pkgrel=1
pkgdesc="Online office suite comprising viewers and editors for texts, spreadsheets and presentations"
arch=('any')
url="https://github.com/ONLYOFFICE/DocumentServer"
# nodejs-lts-dubnium due to bug with nodehun build fail
depends=('noto-fonts')
#depends=('nodejs-lts-dubnium' 'noto-fonts')
# noto-fonts required due to bug https://github.com/ONLYOFFICE/DocumentServer/issues/377#issuecomment-455782913
makedepends=('grunt-cli' 'qt5-base' 'git' 'wget' 'p7zip' 'clang' 'python2' 'java-runtime' 'svn' 'ncurses5-compat-libs')
#makedepends=('npm' 'nodejs-lts-dubnium' 'grunt-cli' 'qt5-base' 'git' 'wget' 'p7zip' 'clang' 'python2' 'java-runtime' 'svn' 'ncurses5-compat-libs')
# ncurses-5compat-libs required to build v8
optdepends=('rabbitmq' 'redis' 'postgresql')
license=('AGPL')
source=("https://github.com/ONLYOFFICE/DocumentServer/archive/ONLYOFFICE-DocumentServer-5.5.0.tar.gz"
"core-${pkgver}.tar.gz::https://github.com/ONLYOFFICE/core/archive/v5.5.0.167.tar.gz"
"core-fonts-${pkgver}.tar.gz::https://github.com/ONLYOFFICE/core-fonts/archive/v5.5.0.167.tar.gz"
"dictionaries-${pkgver}.tar.gz::https://github.com/ONLYOFFICE/dictionaries/archive/v5.5.0.167.tar.gz"
"sdkjs-${pkgver}.tar.gz::https://github.com/ONLYOFFICE/sdkjs/archive/v5.5.0.167.tar.gz"
"sdkjs-plugins-${pkgver}.tar.gz::https://github.com/ONLYOFFICE/sdkjs-plugins/archive/v5.5.0.167.tar.gz"
"server-${pkgver}.tar.gz::https://github.com/ONLYOFFICE/server/archive/v5.5.0.167.tar.gz"
"web-apps-${pkgver}.tar.gz::https://github.com/ONLYOFFICE/web-apps-pro/archive/v5.5.0.167.tar.gz"
"server_makefile.patch"
"onlyoffice-fileconverter.service"
"onlyoffice-spellchecker.service"
"onlyoffice-docservice.service"
"onlyoffice-documentserver.hook"
"onlyoffice-documentserver.sysusers"
"onlyoffice-documentserver.tmpfiles")
sha512sums=('f7852f27952f755a650d2a4d2f6333564e2787196977acf5b6f0ed8ce4c7d006abc359996199157e4bd658cc59c1cc966ea8cff6c047fabd4461c28892e8c013'
'9bc87e89e33a86b6b1f704a66dddb74226053b5d455dc78e306a35d47d69dfa7401c7a69bc9302f7a484140a8111fb4c74076e407a75e1f446c6c9769010f6cd'
'a8ddb22bf818ae316f489d0d2f53f900b932b654a06edd7cab10e0e6e7320ae36e58ccc4a8d71942016f13459496c697388f3b6eabf7f30f5c1c69bbb5de317f'
'baacf8028bb141c1e72c58ad6b2114c2e3aeda1c62274aa68b639762717ce3e1378ebcb60fabdf86450ef768cb89844ffd233d0262e6a01115c7e2cbfdc64cfd'
'2236eb66be0187d16af6507c2993e73bbfc76792fcd05851002e13f142dfdc66c04c1a78e647d65d45f28d1b1c64f92a3960d5312a875c2040cc01c507d0b9ce'
'551bec2aa74ca70c946e98512cc83208a1eba6baf5893192dabad2c969aedbdc3436307c2fa80faf1f160605f546b27dd25f7e43ff1d083f0c5336ead021f248'
'be4f760294272517e68fcdf349edd0a1271e4a42e2b25f87aba6f94904788c5f1ed0fc9c33568b85a0d398a6d3efde6a23930fa4bb984402464c97a966f09f86'
'c8bc32ecdeecdd7f48d2b33a3fae4118eb9dddb2fde43f0f374d13e76335c08004cb39a809fd851614caa305c6877f98dbe77a48436944e0713aed991e4681e0'
'ee568238de17450ee00013ac5184a46b389b6e1d1de54bddb6b2bfb43c4b6c8ef42e33e49ab8718e849a321c0b903c1d98703117436a58640d863c0bbcd60295'
'f6e888d23d980eb50dcd70c1ce82324f3ee60c666298f77adf7f7abdf524d78bfcd10a8e17180a64596d964d98ae5457645ece6e3d05d93b938f465f2dc3612a'
'8ed8c1301469242cc669a1f0520708ad0fa4f19406541c976cd9287917f573ec3f47902f9021eef5ff82ca20de04234f459e4826320689705772589b1aca0267'
'fafee1aa872786116d5c28c08dbe12edcf0dd60890c40b108bb60c9d321d9a579fc8fe6a8a86c1641b58531388410fb51e09d294b9b998ca9a39373349e889a0'
'707da287c3db6907fcdbf91cfe2ef057c77033713a1b4299a89a684b37fe3c74644e2c0b1fcec2afcd81c6511bb02ac3221d56c8caadb5d0c711d1842f78e780'
'c7c23c5a7014e3251dfd86312d1d1e5c2d88f26ddc5aa967285202fd3ebf62c0a10c009b1cc5ad1b78e13fa0bc2eda515616d8af02325db434c0b2113c5b1ecb'
'e1b8395ab7ef219860aebe9e7709a60cbaea1c28a8378aac3f54ce37b39944a7fd82b7efa8d59977f0891743cdface149b9f95f4b25c1c5322cb327c50d485ed')
backup=('etc/webapps/onlyoffice/documentserver/production-linux.json'
'etc/webapps/onlyoffice/documentserver/default.json')
install="onlyoffice-documentserver.install"
prepare() {
# Unfortunately, v8 depot_tools still requires python2
# Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=942720
mkdir -p path
ln -sf /usr/bin/python2 path/python
cd "${srcdir}"
rm *.tar.gz
cd "${srcdir}/DocumentServer-ONLYOFFICE-DocumentServer-${pkgver}"
rm -r core core-fonts dictionaries sdkjs sdkjs-plugins server web-apps
mv ../core-fonts* core-fonts
mv ../core-* core
mv ../dictionaries-* dictionaries
mv ../sdkjs-plugins-* sdkjs-plugins
mv ../sdkjs-* sdkjs
mv ../server-* server
mv ../web-apps-* web-apps
# Use clang instead of gcc because of compile errors
sed -i 's/is_clang=false/is_clang=true/g' core/Common/3dParty/v8/build.sh
# python2 dependency for gclient
sed -i '12iexport PATH="'${srcdir}'/path:$PATH"' core/Common/3dParty/v8/fetch.sh
sed -i '28iexport PATH="'${srcdir}'/path:$PATH"' core/Common/3dParty/v8/build.sh
# drop back to v8 6.0, not 7.0 - fixes build issues
sed -i 's/v8_version="7.0"/v8_version="6.0"/g' core/Common/3dParty/v8/fetch.sh
# Patching Makefile to include DESTDIR variable
patch -p0 -i ../server_makefile.patch
# Patching configuration file
sed -i 's/\/var\/www\/onlyoffice/\/usr\/share\/webapps\/onlyoffice/g' server/Common/config/production-linux.json
sed -i 's/\/etc\/onlyoffice/\/etc\/webapps\/onlyoffice/g' server/Common/config/production-linux.json
}
build() {
cd "${srcdir}/DocumentServer-ONLYOFFICE-DocumentServer-${pkgver}"
# workaround bug https://github.com/ONLYOFFICE/onlyoffice-owncloud/issues/42
export PRODUCT_VERSION=${pkgver}
# Download & build third party modules
cd core/Common/3dParty
./make.sh
# Building core
cd ../..
make
# Building sdkjs
cd ../sdkjs
make
# Building server
cd ../server
make
}
package() {
cd "${srcdir}/DocumentServer-ONLYOFFICE-DocumentServer-${pkgver}/server"
install -Dm 644 "${srcdir}/onlyoffice-docservice.service" "${pkgdir}/usr/lib/systemd/system/onlyoffice-docservice.service"
install -Dm 644 "${srcdir}/onlyoffice-fileconverter.service" "${pkgdir}/usr/lib/systemd/system/onlyoffice-fileconverter.service"
install -Dm 644 "${srcdir}/onlyoffice-spellchecker.service" "${pkgdir}/usr/lib/systemd/system/onlyoffice-spellchecker.service"
install -D "${srcdir}/onlyoffice-documentserver.hook" "${pkgdir}/usr/share/libalpm/hooks/onlyoffice-documentserver.hook"
install -Dm 644 "${srcdir}/onlyoffice-documentserver.sysusers" "${pkgdir}/usr/lib/sysusers.d/onlyoffice-documentserver.conf"
install -Dm 644 "${srcdir}/onlyoffice-documentserver.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/onlyoffice-documentserver.conf"
make DOCUMENT_ROOT="/usr/share/webapps/onlyoffice/documentserver" DESTDIR=${pkgdir} install
}
This is block before error:
g++ -c -pipe -fvisibility=hidden -D_FORTIFY_SOURCE=2 -march=skylake -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DINTVER=5.5.0.0 -DLINUX -D_LINUX -DXPS_USE_DYNAMIC_LIBRARY -DQT_NO_DEBUG -DQT_PLUGIN -I../../XpsFile -I. -I/usr/lib/qt/mkspecs/linux-g++ -o ../core_build/linux_64/release/obj/ContextState.o ../XpsLib/ContextState.cpp
In file included from ../XpsLib/ContextState.h:38,
from ../XpsLib/ContextState.cpp:32:
../XpsLib/../../DesktopEditor/graphics/IRenderer.h: В функции-члене «virtual HRESULT IRenderer::GetCommandParams(double*, double*, double*, double*, double*, DWORD*)»:
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:43: предупреждение: неиспользуемый параметр «dAngle» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:59: предупреждение: неиспользуемый параметр «dLeft» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:74: предупреждение: неиспользуемый параметр «dTop» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:88: предупреждение: неиспользуемый параметр «dWidth» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:104: предупреждение: неиспользуемый параметр «dHeight» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:120: предупреждение: неиспользуемый параметр «lFlags» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~^~~~~~
In file included from ../XpsLib/ContextState.cpp:33:
../XpsLib/StaticResources.h: В функции-члене «virtual bool XPS::CBrush::SetToRenderer(IRenderer*)»:
../XpsLib/StaticResources.h:80:41: предупреждение: неиспользуемый параметр «pRenderer» [-Wunused-parameter]
80 | virtual bool SetToRenderer(IRenderer* pRenderer) { return false; }
| ~~~~~~~~~~~^~~~~~~~~
../XpsLib/ContextState.cpp: В функции-члене «void XPS::CContextState::GetPathGeometry(const XPS::CWString&, XPS::CWString&, XPS::CWString&)»:
../XpsLib/ContextState.cpp:159:97: предупреждение: неиспользуемый параметр «wsPathTransform» [-Wunused-parameter]
159 | void CContextState::GetPathGeometry(const CWString& _wsKey, CWString& wsPathData, CWString& wsPathTransform)
| ~~~~~~~~~~^~~~~~~~~~~~~~~
g++ -c -pipe -fvisibility=hidden -D_FORTIFY_SOURCE=2 -march=skylake -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DINTVER=5.5.0.0 -DLINUX -D_LINUX -DXPS_USE_DYNAMIC_LIBRARY -DQT_NO_DEBUG -DQT_PLUGIN -I../../XpsFile -I. -I/usr/lib/qt/mkspecs/linux-g++ -o ../core_build/linux_64/release/obj/Document.o ../XpsLib/Document.cpp
In file included from ../XpsLib/Page.h:35,
from ../XpsLib/Document.h:36,
from ../XpsLib/Document.cpp:32:
../XpsLib/../../DesktopEditor/graphics/IRenderer.h: В функции-члене «virtual HRESULT IRenderer::GetCommandParams(double*, double*, double*, double*, double*, DWORD*)»:
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:43: предупреждение: неиспользуемый параметр «dAngle» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:59: предупреждение: неиспользуемый параметр «dLeft» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:74: предупреждение: неиспользуемый параметр «dTop» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:88: предупреждение: неиспользуемый параметр «dWidth» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:104: предупреждение: неиспользуемый параметр «dHeight» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:120: предупреждение: неиспользуемый параметр «lFlags» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~^~~~~~
In file included from ../XpsLib/Document.cpp:33:
../XpsLib/StaticResources.h: В функции-члене «virtual bool XPS::CBrush::SetToRenderer(IRenderer*)»:
../XpsLib/StaticResources.h:80:41: предупреждение: неиспользуемый параметр «pRenderer» [-Wunused-parameter]
80 | virtual bool SetToRenderer(IRenderer* pRenderer) { return false; }
| ~~~~~~~~~~~^~~~~~~~~
g++ -c -pipe -fvisibility=hidden -D_FORTIFY_SOURCE=2 -march=skylake -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DINTVER=5.5.0.0 -DLINUX -D_LINUX -DXPS_USE_DYNAMIC_LIBRARY -DQT_NO_DEBUG -DQT_PLUGIN -I../../XpsFile -I. -I/usr/lib/qt/mkspecs/linux-g++ -o ../core_build/linux_64/release/obj/Page.o ../XpsLib/Page.cpp
In file included from ../XpsLib/Page.h:35,
from ../XpsLib/Page.cpp:32:
../XpsLib/../../DesktopEditor/graphics/IRenderer.h: В функции-члене «virtual HRESULT IRenderer::GetCommandParams(double*, double*, double*, double*, double*, DWORD*)»:
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:43: предупреждение: неиспользуемый параметр «dAngle» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:59: предупреждение: неиспользуемый параметр «dLeft» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:74: предупреждение: неиспользуемый параметр «dTop» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:88: предупреждение: неиспользуемый параметр «dWidth» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:104: предупреждение: неиспользуемый параметр «dHeight» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:120: предупреждение: неиспользуемый параметр «lFlags» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~^~~~~~
In file included from ../XpsLib/../../PdfWriter/PdfRenderer.h:37,
from ../XpsLib/Page.cpp:36:
../XpsLib/../../PdfWriter/../DesktopEditor/graphics/pro/Image.h: В конструкторе «MetaFile::IMetaFile::IMetaFile(NSFonts::IApplicationFonts*)»:
../XpsLib/../../PdfWriter/../DesktopEditor/graphics/pro/Image.h:119:47: предупреждение: неиспользуемый параметр «pAppFonts» [-Wunused-parameter]
119 | IMetaFile(NSFonts::IApplicationFonts *pAppFonts) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from ../XpsLib/Page.cpp:36:
../XpsLib/../../PdfWriter/PdfRenderer.h: В функции-члене «void CPdfRenderer::CPenState::SetDashPattern(const double*, const LONG&)»:
../XpsLib/../../PdfWriter/PdfRenderer.h:470:35: предупреждение: comparison of integer expressions of different signedness: «int» and «size_t» {aka «long unsigned int»} [-Wsign-compare]
470 | for (int nIndex = 0; nIndex < nPatternSize; nIndex++)
| ~~~~~~~^~~~~~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h: В функции-члене «void CPdfRenderer::CBrushState::SetGradientColors(LONG*, double*, const LONG&)»:
../XpsLib/../../PdfWriter/PdfRenderer.h:895:34: предупреждение: comparison of integer expressions of different signedness: «LONG» {aka «long int»} and «size_t» {aka «long unsigned int»} [-Wsign-compare]
895 | for (LONG lIndex = 0; lIndex < lResCount; lIndex++)
| ~~~~~~~^~~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h: В конструкторе «CPdfRenderer::CFontState::CFontState()»:
../XpsLib/../../PdfWriter/PdfRenderer.h:1156:16: предупреждение: «CPdfRenderer::CFontState::m_wsPath» будет инициализирован после [-Wreorder]
1156 | std::wstring m_wsPath;
| ^~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1155:16: предупреждение: «std::wstring CPdfRenderer::CFontState::m_wsName» [-Wreorder]
1155 | std::wstring m_wsName;
| ^~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1049:3: предупреждение: если инициализирован здесь [-Wreorder]
1049 | CFontState() : m_wsPath(L""), m_wsName(L"Arial"), m_lStyle(0), m_bBold(false), m_bItalic(false), m_dCharSpace(0),
| ^~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1163:16: предупреждение: «CPdfRenderer::CFontState::m_dCharSpace» будет инициализирован после [-Wreorder]
1163 | double m_dCharSpace;
| ^~~~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1159:16: предупреждение: «LONG CPdfRenderer::CFontState::m_lFaceIndex» [-Wreorder]
1159 | LONG m_lFaceIndex;
| ^~~~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1049:3: предупреждение: если инициализирован здесь [-Wreorder]
1049 | CFontState() : m_wsPath(L""), m_wsName(L"Arial"), m_lStyle(0), m_bBold(false), m_bItalic(false), m_dCharSpace(0),
| ^~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1159:16: предупреждение: «CPdfRenderer::CFontState::m_lFaceIndex» будет инициализирован после [-Wreorder]
1159 | LONG m_lFaceIndex;
| ^~~~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1157:16: предупреждение: «double CPdfRenderer::CFontState::m_dSize» [-Wreorder]
1157 | double m_dSize;
| ^~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1049:3: предупреждение: если инициализирован здесь [-Wreorder]
1049 | CFontState() : m_wsPath(L""), m_wsName(L"Arial"), m_lStyle(0), m_bBold(false), m_bItalic(false), m_dCharSpace(0),
| ^~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1165:16: предупреждение: «CPdfRenderer::CFontState::m_bNeedDoBold» будет инициализирован после [-Wreorder]
1165 | bool m_bNeedDoBold;
| ^~~~~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1164:16: предупреждение: «bool CPdfRenderer::CFontState::m_bNeedDoItalic» [-Wreorder]
1164 | bool m_bNeedDoItalic;
| ^~~~~~~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1049:3: предупреждение: если инициализирован здесь [-Wreorder]
1049 | CFontState() : m_wsPath(L""), m_wsName(L"Arial"), m_lStyle(0), m_bBold(false), m_bItalic(false), m_dCharSpace(0),
| ^~~~~~~~~~
In file included from ../XpsLib/Page.cpp:39:
../XpsLib/StaticResources.h: В функции-члене «virtual bool XPS::CBrush::SetToRenderer(IRenderer*)»:
../XpsLib/StaticResources.h:80:41: предупреждение: неиспользуемый параметр «pRenderer» [-Wunused-parameter]
80 | virtual bool SetToRenderer(IRenderer* pRenderer) { return false; }
| ~~~~~~~~~~~^~~~~~~~~
../XpsLib/Page.cpp: В функции-члене «bool XPS::Page::ReadResource(XmlUtils::CXmlLiteReader&, IRenderer*, XPS::CContextState*)»:
../XpsLib/Page.cpp:345:72: предупреждение: неиспользуемый параметр «pRenderer» [-Wunused-parameter]
345 | bool Page::ReadResource(XmlUtils::CXmlLiteReader& oReader, IRenderer* pRenderer, CContextState* pState)
| ~~~~~~~~~~~^~~~~~~~~
../XpsLib/Page.cpp: В функции-члене «void XPS::Page::DrawGlyph(XmlUtils::CXmlLiteReader&, IRenderer*, XPS::CContextState*)»:
../XpsLib/Page.cpp:441:30: предупреждение: результат сравнения `беззнаковое выражение >=0' всегда истина [-Wtype-limits]
441 | if (wsFontPath.length() >= 0 && '.' == wsFontPath.at(0))
| ~~~~~~~~~~~~~~~~~~~~^~~~
../XpsLib/Page.cpp:444:30: предупреждение: comparison of integer expressions of different signedness: «const size_type» {aka «const long unsigned int»} and «int» [-Wsign-compare]
444 | if (std::wstring::npos == nSlashPos)
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../XpsLib/Page.cpp:447:57: предупреждение: comparison of integer expressions of different signedness: «const size_type» {aka «const long unsigned int»} and «int» [-Wsign-compare]
447 | std::wstring wsRelativePath = (std::wstring::npos == nSlashPos) ? m_wsPagePath : m_wsPagePath.substr(0, nSlashPos + 1);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../XpsLib/Page.cpp: В функции-члене «void XPS::Page::DrawPath(XmlUtils::CXmlLiteReader&, IRenderer*, XPS::CContextState*)»:
../XpsLib/Page.cpp:799:7: предупреждение: неиспользуемая переменная «nFillBgr» [-Wunused-variable]
799 | int nFillBgr = 0, nFillAlpha = 255, nStrokeBgr = 0, nStrokeAlpha = 255;
| ^~~~~~~~
../XpsLib/Page.cpp:799:21: предупреждение: неиспользуемая переменная «nFillAlpha» [-Wunused-variable]
799 | int nFillBgr = 0, nFillAlpha = 255, nStrokeBgr = 0, nStrokeAlpha = 255;
| ^~~~~~~~~~
In file included from ../XpsLib/Page.cpp:34:
../XpsLib/../../DesktopEditor/common/StringExt.h: На глобальном уровне:
../XpsLib/../../DesktopEditor/common/StringExt.h:179:36: предупреждение: «std::vector<std::__cxx11::basic_string<wchar_t> > NSStringExt::Split(const wstring&, const wstring&, bool)» определена, но не используется [-Wunused-function]
179 | static std::vector<std::wstring> Split(const std::wstring& wsString, const std::wstring& wsDelim, bool bWholeString = true)
| ^~~~~
g++ -c -pipe -fvisibility=hidden -D_FORTIFY_SOURCE=2 -march=skylake -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DINTVER=5.5.0.0 -DLINUX -D_LINUX -DXPS_USE_DYNAMIC_LIBRARY -DQT_NO_DEBUG -DQT_PLUGIN -I../../XpsFile -I. -I/usr/lib/qt/mkspecs/linux-g++ -o ../core_build/linux_64/release/obj/StaticResources.o ../XpsLib/StaticResources.cpp
In file included from ../XpsLib/StaticResources.cpp:32:
../XpsLib/StaticResources.h: В функции-члене «virtual bool XPS::CBrush::SetToRenderer(IRenderer*)»:
../XpsLib/StaticResources.h:80:41: предупреждение: неиспользуемый параметр «pRenderer» [-Wunused-parameter]
80 | virtual bool SetToRenderer(IRenderer* pRenderer) { return false; }
| ~~~~~~~~~~~^~~~~~~~~
In file included from ../XpsLib/StaticResources.cpp:35:
../XpsLib/../../DesktopEditor/graphics/IRenderer.h: В функции-члене «virtual HRESULT IRenderer::GetCommandParams(double*, double*, double*, double*, double*, DWORD*)»:
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:43: предупреждение: неиспользуемый параметр «dAngle» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:59: предупреждение: неиспользуемый параметр «dLeft» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:74: предупреждение: неиспользуемый параметр «dTop» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:88: предупреждение: неиспользуемый параметр «dWidth» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:104: предупреждение: неиспользуемый параметр «dHeight» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:120: предупреждение: неиспользуемый параметр «lFlags» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~^~~~~~
In file included from ../XpsLib/../../PdfWriter/PdfRenderer.h:37,
from ../XpsLib/StaticResources.cpp:37:
../XpsLib/../../PdfWriter/../DesktopEditor/graphics/pro/Image.h: В конструкторе «MetaFile::IMetaFile::IMetaFile(NSFonts::IApplicationFonts*)»:
../XpsLib/../../PdfWriter/../DesktopEditor/graphics/pro/Image.h:119:47: предупреждение: неиспользуемый параметр «pAppFonts» [-Wunused-parameter]
119 | IMetaFile(NSFonts::IApplicationFonts *pAppFonts) {}
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from ../XpsLib/StaticResources.cpp:37:
../XpsLib/../../PdfWriter/PdfRenderer.h: В функции-члене «void CPdfRenderer::CPenState::SetDashPattern(const double*, const LONG&)»:
../XpsLib/../../PdfWriter/PdfRenderer.h:470:35: предупреждение: comparison of integer expressions of different signedness: «int» and «size_t» {aka «long unsigned int»} [-Wsign-compare]
470 | for (int nIndex = 0; nIndex < nPatternSize; nIndex++)
| ~~~~~~~^~~~~~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h: В функции-члене «void CPdfRenderer::CBrushState::SetGradientColors(LONG*, double*, const LONG&)»:
../XpsLib/../../PdfWriter/PdfRenderer.h:895:34: предупреждение: comparison of integer expressions of different signedness: «LONG» {aka «long int»} and «size_t» {aka «long unsigned int»} [-Wsign-compare]
895 | for (LONG lIndex = 0; lIndex < lResCount; lIndex++)
| ~~~~~~~^~~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h: В конструкторе «CPdfRenderer::CFontState::CFontState()»:
../XpsLib/../../PdfWriter/PdfRenderer.h:1156:16: предупреждение: «CPdfRenderer::CFontState::m_wsPath» будет инициализирован после [-Wreorder]
1156 | std::wstring m_wsPath;
| ^~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1155:16: предупреждение: «std::wstring CPdfRenderer::CFontState::m_wsName» [-Wreorder]
1155 | std::wstring m_wsName;
| ^~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1049:3: предупреждение: если инициализирован здесь [-Wreorder]
1049 | CFontState() : m_wsPath(L""), m_wsName(L"Arial"), m_lStyle(0), m_bBold(false), m_bItalic(false), m_dCharSpace(0),
| ^~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1163:16: предупреждение: «CPdfRenderer::CFontState::m_dCharSpace» будет инициализирован после [-Wreorder]
1163 | double m_dCharSpace;
| ^~~~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1159:16: предупреждение: «LONG CPdfRenderer::CFontState::m_lFaceIndex» [-Wreorder]
1159 | LONG m_lFaceIndex;
| ^~~~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1049:3: предупреждение: если инициализирован здесь [-Wreorder]
1049 | CFontState() : m_wsPath(L""), m_wsName(L"Arial"), m_lStyle(0), m_bBold(false), m_bItalic(false), m_dCharSpace(0),
| ^~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1159:16: предупреждение: «CPdfRenderer::CFontState::m_lFaceIndex» будет инициализирован после [-Wreorder]
1159 | LONG m_lFaceIndex;
| ^~~~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1157:16: предупреждение: «double CPdfRenderer::CFontState::m_dSize» [-Wreorder]
1157 | double m_dSize;
| ^~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1049:3: предупреждение: если инициализирован здесь [-Wreorder]
1049 | CFontState() : m_wsPath(L""), m_wsName(L"Arial"), m_lStyle(0), m_bBold(false), m_bItalic(false), m_dCharSpace(0),
| ^~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1165:16: предупреждение: «CPdfRenderer::CFontState::m_bNeedDoBold» будет инициализирован после [-Wreorder]
1165 | bool m_bNeedDoBold;
| ^~~~~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1164:16: предупреждение: «bool CPdfRenderer::CFontState::m_bNeedDoItalic» [-Wreorder]
1164 | bool m_bNeedDoItalic;
| ^~~~~~~~~~~~~~~
../XpsLib/../../PdfWriter/PdfRenderer.h:1049:3: предупреждение: если инициализирован здесь [-Wreorder]
1049 | CFontState() : m_wsPath(L""), m_wsName(L"Arial"), m_lStyle(0), m_bBold(false), m_bItalic(false), m_dCharSpace(0),
| ^~~~~~~~~~
g++ -c -pipe -fvisibility=hidden -D_FORTIFY_SOURCE=2 -march=skylake -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DINTVER=5.5.0.0 -DLINUX -D_LINUX -DXPS_USE_DYNAMIC_LIBRARY -DQT_NO_DEBUG -DQT_PLUGIN -I../../XpsFile -I. -I/usr/lib/qt/mkspecs/linux-g++ -o ../core_build/linux_64/release/obj/Utils.o ../XpsLib/Utils.cpp
In file included from ../XpsLib/Utils.cpp:36:
../XpsLib/../../DesktopEditor/graphics/IRenderer.h: В функции-члене «virtual HRESULT IRenderer::GetCommandParams(double*, double*, double*, double*, double*, DWORD*)»:
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:43: предупреждение: неиспользуемый параметр «dAngle» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:59: предупреждение: неиспользуемый параметр «dLeft» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:74: предупреждение: неиспользуемый параметр «dTop» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:88: предупреждение: неиспользуемый параметр «dWidth» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:104: предупреждение: неиспользуемый параметр «dHeight» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~~^~~~~~~
../XpsLib/../../DesktopEditor/graphics/IRenderer.h:244:120: предупреждение: неиспользуемый параметр «lFlags» [-Wunused-parameter]
244 | virtual HRESULT GetCommandParams(double* dAngle, double* dLeft, double* dTop, double* dWidth, double* dHeight, DWORD* lFlags)
| ~~~~~~~^~~~~~
../XpsLib/Utils.cpp: В функции «void XPSEllipse::EllipseArc3(IRenderer*, Aggplus::CMatrix&, double, double, double, double, double, double, double*, double*, bool)»:
../XpsLib/Utils.cpp:108:10: предупреждение: неиспользуемая переменная «fKoef» [-Wunused-variable]
108 | double fKoef = 1;
| ^~~~~
../XpsLib/Utils.cpp: В функции «void XPSEllipse::EllipseArc2(IRenderer*, Aggplus::CMatrix&, double, double, double, double, double, double, bool)»:
../XpsLib/Utils.cpp:158:10: предупреждение: неиспользуемая переменная «fCurX» [-Wunused-variable]
158 | double fCurX = fStartX, fCurY = fStartY;
| ^~~~~
../XpsLib/Utils.cpp:158:27: предупреждение: неиспользуемая переменная «fCurY» [-Wunused-variable]
158 | double fCurX = fStartX, fCurY = fStartY;
| ^~~~~
../XpsLib/Utils.cpp: В функции «double XPS::GetEllipseAngle(const double&, const double&, const double&, double, const double&, const double&)»:
../XpsLib/Utils.cpp:359:91: предупреждение: неиспользуемый параметр «dRadX» [-Wunused-parameter]
359 | static inline double GetEllipseAngle(const double& dCx, const double& dCy, const double& dRadX, const double dRadY, const double& dX, const double& dY)
| ~~~~~~~~~~~~~~^~~~~
../XpsLib/Utils.cpp:359:111: предупреждение: неиспользуемый параметр «dRadY» [-Wunused-parameter]
359 | static inline double GetEllipseAngle(const double& dCx, const double& dCy, const double& dRadX, const double dRadY, const double& dX, const double& dY)
| ~~~~~~~~~~~~~^~~~~
../XpsLib/Utils.cpp: В функции «std::wstring XPS::GetFileName(const wstring&)»:
../XpsLib/Utils.cpp:836:26: предупреждение: comparison of integer expressions of different signedness: «const size_type» {aka «const long unsigned int»} and «int» [-Wsign-compare]
836 | if (std::wstring::npos == nCommaPos)
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../XpsLib/Utils.cpp:838:26: предупреждение: comparison of integer expressions of different signedness: «const size_type» {aka «const long unsigned int»} and «int» [-Wsign-compare]
838 | if (std::wstring::npos == nSlashPos)
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../XpsLib/Utils.cpp: В функции «std::wstring XPS::GetFileExtension(const wstring&)»:
../XpsLib/Utils.cpp:851:26: предупреждение: comparison of integer expressions of different signedness: «const size_type» {aka «const long unsigned int»} and «int» [-Wsign-compare]
851 | if (std::wstring::npos == nCommaPos)
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../XpsLib/Utils.cpp: В функции «std::wstring XPS::RemoveNamespace(const wstring&)»:
../XpsLib/Utils.cpp:862:26: предупреждение: comparison of integer expressions of different signedness: «const size_type» {aka «const long unsigned int»} and «int» [-Wsign-compare]
862 | if (std::wstring::npos != nPos)
| ~~~~~~~~~~~~~~~~~~~^~~~~~~
../XpsLib/Utils.cpp: В функции «bool XPS::GetNextGlyph(const wchar_t*, int&, const int&, short unsigned int*, int&, const int&, XPS::TIndicesEntry&)»:
../XpsLib/Utils.cpp:1302:69: предупреждение: рекомендуется заключить в скобки арифметические операции в операнде «|» [-Wparentheses]
1302 | pUnicodes[nUnicodesCount++] = (unCode | (ushTraling & 0x3FF) + 0x10000);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
../XpsLib/Utils.cpp: В функции «void XPS::ReadSTPoint(const XPS::CWString&, double&, double&)»:
../XpsLib/Utils.cpp:1652:20: предупреждение: comparison of integer expressions of different signedness: «int» and «unsigned int» [-Wsign-compare]
1652 | while (nCommaPos < wsString.size())
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~
../XpsLib/Utils.cpp:1660:17: предупреждение: comparison of integer expressions of different signedness: «int» and «unsigned int» [-Wsign-compare]
1660 | if (nCommaPos >= wsString.size())
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~
In file included from ../XpsLib/Utils.cpp:33:
../XpsLib/../../DesktopEditor/common/StringExt.h: На глобальном уровне:
../XpsLib/../../DesktopEditor/common/StringExt.h:179:36: предупреждение: «std::vector<std::__cxx11::basic_string<wchar_t> > NSStringExt::Split(const wstring&, const wstring&, bool)» определена, но не используется [-Wunused-function]
179 | static std::vector<std::wstring> Split(const std::wstring& wsString, const std::wstring& wsDelim, bool bWholeString = true)
| ^~~~~
g++ -c -pipe -fvisibility=hidden -D_FORTIFY_SOURCE=2 -march=skylake -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DINTVER=5.5.0.0 -DLINUX -D_LINUX -DXPS_USE_DYNAMIC_LIBRARY -DQT_NO_DEBUG -DQT_PLUGIN -I../../XpsFile -I. -I/usr/lib/qt/mkspecs/linux-g++ -o ../core_build/linux_64/release/obj/WString.o ../XpsLib/WString.cpp
../XpsLib/WString.cpp: В функции-члене «void XPS::CWString::create(const wstring&, bool)»:
../XpsLib/WString.cpp:143:61: предупреждение: неиспользуемый параметр «bCopy» [-Wunused-parameter]
143 | void CWString::create(const std::wstring& sString, bool bCopy)
| ~~~~~^~~~~
../XpsLib/WString.cpp: В функции-члене «std::vector<XPS::CWString> XPS::CWString::split(wchar_t, bool)»:
../XpsLib/WString.cpp:270:7: предупреждение: неиспользуемая переменная «nCharPos» [-Wunused-variable]
270 | int nCharPos = nPos;
| ^~~~~~~~
In file included from ../XpsLib/WString.cpp:35:
../XpsLib/../../DesktopEditor/common/StringExt.h: На глобальном уровне:
../XpsLib/../../DesktopEditor/common/StringExt.h:179:36: предупреждение: «std::vector<std::__cxx11::basic_string<wchar_t> > NSStringExt::Split(const wstring&, const wstring&, bool)» определена, но не используется [-Wunused-function]
179 | static std::vector<std::wstring> Split(const std::wstring& wsString, const std::wstring& wsDelim, bool bWholeString = true)
| ^~~~~
rm -f libXpsFile.so
g++ -static-libstdc++ -static-libgcc -Wl,-O1 -shared -o libXpsFile.so ../core_build/linux_64/release/obj/XpsFile.o ../core_build/linux_64/release/obj/ContextState.o ../core_build/linux_64/release/obj/Document.o ../core_build/linux_64/release/obj/Page.o ../core_build/linux_64/release/obj/StaticResources.o ../core_build/linux_64/release/obj/Utils.o ../core_build/linux_64/release/obj/WString.o -L/home/vvl/aur/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.5.0/core/XpsFile/../build/lib/linux_64 -lgraphics -lkernel -lUnicodeConverter -lPdfWriter -lpthread
mv -f libXpsFile.so ../../build/lib/linux_64/libXpsFile.so
make[1]: выход из каталога «/home/vvl/aur/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.5.0/core/XpsFile/XpsFile.build»
cd /home/vvl/aur/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.5.0/core/X2tConverter/build/Qt/X2tSLN.build/ && make;
make[1]: предупреждение: сервер заданий недоступен: используется -j1. Добавьте «+» к правилу в родительском make.
make[1]: вход в каталог «/home/vvl/aur/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.5.0/core/X2tConverter/build/Qt/X2tSLN.build»
cd ../../../Common/DocxFormat/DocxFormatLib/ && ( test -e Makefile || /usr/bin/qmake -o Makefile /home/vvl/aur/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.5.0/core/Common/DocxFormat/DocxFormatLib/DocxFormatLib.pro ) && make -f Makefile
Info: creating stash file /home/vvl/aur/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.5.0/core/X2tConverter/Common/DocxFormat/DocxFormatLib/.qmake.stash
Project MESSAGE: linux-64
Project MESSAGE: linux_64/release
make[2]: вход в каталог «/home/vvl/aur/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.5.0/core/X2tConverter/Common/DocxFormat/DocxFormatLib»
g++ -c -pipe -Wall -Wno-ignored-qualifiers -D_FORTIFY_SOURCE=2 -march=skylake -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -fPIC -std=gnu++11 -Wall -Wextra -D_REENTRANT -DINTVER=2.5.565.0 -DLINUX -D_LINUX -DCRYPTOPP_DISABLE_ASM -DUNICODE -D_UNICODE -DDONT_WRITE_EMBEDDED_FONTS -DQT_NO_DEBUG -I../../../../Common/DocxFormat/DocxFormatLib -I. -I/home/vvl/aur/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.5.0/core/Common/3dParty/boost/build/linux_64/include -I/usr/lib/qt/mkspecs/linux-g++ -o ../../../../Common/DocxFormat/DocxFormatLib/core_build/linux_64/release/obj/docxformatlib_logic.o ../../../../Common/DocxFormat/DocxFormatLib/docxformatlib_logic.cpp
In file included from ../../../../Common/DocxFormat/DocxFormatLib/../Source/Common/SimpleTypes_Base.h:38,
from ../../../../Common/DocxFormat/DocxFormatLib/../Source/Common/SimpleTypes_Word.h:34,
from ../../../../Common/DocxFormat/DocxFormatLib/../Source/Common/SimpleTypes_Word.cpp:32,
from ../../../../Common/DocxFormat/DocxFormatLib/common_formatlib.cpp:40,
from ../../../../Common/DocxFormat/DocxFormatLib/docxformatlib_logic.cpp:32:
../../../../Common/DocxFormat/DocxFormatLib/../Source/Common/../XML/Utils.h:46:10: фатальная ошибка: boost/lexical_cast.hpp: Нет такого файла или каталога
46 | #include <boost/lexical_cast.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~
компиляция прервана.
make[2]: *** [Makefile:1670: ../../../../Common/DocxFormat/DocxFormatLib/core_build/linux_64/release/obj/docxformatlib_logic.o] Ошибка 1
make[2]: выход из каталога «/home/vvl/aur/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.5.0/core/X2tConverter/Common/DocxFormat/DocxFormatLib»
make[1]: *** [Makefile:57: sub----------Common-DocxFormat-DocxFormatLib-DocxFormatLib-pro-make_first-ordered] Ошибка 2
make[1]: выход из каталога «/home/vvl/aur/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.5.0/core/X2tConverter/build/Qt/X2tSLN.build»
make: *** [Makefile:288: build/bin/linux_64/x2t] Ошибка 2
==> ОШИБКА: Произошел сбой в build().
Прерывание...
Offline
Please post output in English. The one error I translated is pretty clear, you are missing boost headers. Boost should be listed as a dependency (or at least makedepends).
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Online
Please post output in English. The one error I translated is pretty clear, you are missing boost headers. Boost should be listed as a dependency (or at least makedepends).
Yes, seems that was a problem. I've added "boost" to makepdepends block and now all blocks compiled successfully. Thank you.
New problem - block package() exit with fatal error:
#mkdir -pv /home/vvl/aur/onlyoffice-documentserver/pkg//var/www/onlyoffice
#if ! id -u onlyoffice > /dev/null 2>&1; then useradd -m -d /var/www/onlyoffice -r -U onlyoffice; fi
mkdir -p /home/vvl/aur/onlyoffice-documentserver/pkg//usr/share/webapps/onlyoffice/documentserver/fonts
mkdir -p /home/vvl/aur/onlyoffice-documentserver/pkg//var/log/onlyoffice/documentserver
mkdir -p /home/vvl/aur/onlyoffice-documentserver/pkg//var/lib/onlyoffice/documentserver/App_Data
cp -fr -t /home/vvl/aur/onlyoffice-documentserver/pkg//usr/share/webapps/onlyoffice/documentserver build/* ../web-apps/deploy/*
mkdir -p /home/vvl/aur/onlyoffice-documentserver/pkg//etc/webapps/onlyoffice/documentserver
mv /home/vvl/aur/onlyoffice-documentserver/pkg//usr/share/webapps/onlyoffice/documentserver/server/Common/config/* /home/vvl/aur/onlyoffice-documentserver/pkg//etc/webapps/onlyoffice/documentserver
#chown onlyoffice:onlyoffice -R /home/vvl/aur/onlyoffice-documentserver/pkg//var/www/onlyoffice
#chown onlyoffice:onlyoffice -R /home/vvl/aur/onlyoffice-documentserver/pkg//var/log/onlyoffice
#chown onlyoffice:onlyoffice -R /home/vvl/aur/onlyoffice-documentserver/pkg//var/lib/onlyoffice
# Make symlinks for shared libs
find \
/home/vvl/aur/onlyoffice-documentserver/pkg//usr/share/webapps/onlyoffice/documentserver/server/FileConverter/bin \
-maxdepth 1 \
-name *.so* \
-exec sh -c 'ln -sf /usr/share/webapps/onlyoffice/documentserver/server/FileConverter/bin/$(basename {}) /home/vvl/aur/onlyoffice-documentserver/pkg//usr/lib/$(basename {})' \;
find: ‘/home/vvl/aur/onlyoffice-documentserver/pkg//usr/share/webapps/onlyoffice/documentserver/server/FileConverter/bin’: No such file or directory
make: *** [Makefile:147: install] Error 1
Offline
What is the full output from makepkg? See the tip box from pastebin if the output will not fit in code tags.
Why is a package for arch any creating softlinks for shared objects?
Offline
What is the full output from makepkg?
I'll try to recompile it tomorrow, it takes some hours...
Why is a package for arch any creating softlinks for shared objects?
This is not PKGBUILD's idea. Makefile from developers make that.
Offline
loqs wrote:Why is a package for arch any creating softlinks for shared objects?
This is not PKGBUILD's idea. Makefile from developers make that.
It is the PKGBUILD that specifies
arch=('any')
If a package is shipping shared objects which will be architecture dependent it should be marked for that architecture i.e.
arch=('x86_64')
Last edited by loqs (2020-04-03 19:20:28)
Offline
If a package is shipping shared objects which will be architecture dependent it should be marked for that architecture i.e.
No problem. Before it will be published, need to compile, assembly, install and test it
Offline
I solved some errors while compiling 5.5.0, and 5.5.1 was released... It broking PKGBUILD
pkgname=onlyoffice-documentserver
pkgver=5.5.1
pkgrel=1
pkgdesc="Online office suite comprising viewers and editors for texts, spreadsheets and presentations"
arch=('x86_64')
url="https://github.com/ONLYOFFICE/DocumentServer"
# nodejs-lts-dubnium due to bug with nodehun build fail
depends=('nodejs-lts-dubnium' 'noto-fonts')
# noto-fonts required due to bug https://github.com/ONLYOFFICE/DocumentServer/issues/377#issuecomment-455782913
makedepends=('npm' 'nodejs-lts-dubnium' 'grunt-cli' 'qt5-base' 'git' 'wget' 'p7zip' 'clang' 'python2' 'java-runtime' 'svn' 'ncurses5-compat-libs' 'boost')
# ncurses-5compat-libs required to build v8
optdepends=('rabbitmq' 'redis' 'postgresql')
license=('AGPL')
source=("https://github.com/ONLYOFFICE/DocumentServer/archive/ONLYOFFICE-DocumentServer-5.5.1.tar.gz"
"core-${pkgver}.tar.gz::https://github.com/ONLYOFFICE/core/archive/v5.5.1.79.tar.gz"
"core-fonts-${pkgver}.tar.gz::https://github.com/ONLYOFFICE/core-fonts/archive/v5.5.1.79.tar.gz"
"dictionaries-${pkgver}.tar.gz::https://github.com/ONLYOFFICE/dictionaries/archive/v5.5.1.79.tar.gz"
"sdkjs-${pkgver}.tar.gz::https://github.com/ONLYOFFICE/sdkjs/archive/v5.5.1.79.tar.gz"
"sdkjs-plugins-${pkgver}.tar.gz::https://github.com/ONLYOFFICE/sdkjs-plugins/archive/v5.5.1.79.tar.gz"
"server-${pkgver}.tar.gz::https://github.com/ONLYOFFICE/server/archive/v5.5.1.79.tar.gz"
"web-apps-${pkgver}.tar.gz::https://github.com/ONLYOFFICE/web-apps-pro/archive/v5.5.1.79.tar.gz"
"server_makefile.patch"
"onlyoffice-fileconverter.service"
"onlyoffice-spellchecker.service"
"onlyoffice-docservice.service"
"onlyoffice-documentserver.hook"
"onlyoffice-documentserver.sysusers"
"onlyoffice-documentserver.tmpfiles")
sha512sums=('590a1f63b1dbfcf4d3325f636df004fe25d117cda90710d1d2e032dd8319c6686f93c45d3abf2f91e94d39ff940e61015953213a60bbd8d5002218e23afa8b93'
'9dece0094fa5113249ddba659279218fd617a7ab816a2a7e4ffcbed7ff663f93a03dab57c9252cd38bc22b84fc30628f7d37d1599dc90d57ace546ad8ddaf0bc'
'4b28c4fbd10353f62f6a79e8f7a5bc68f1420c8265c0c445439af46beb47a459e0bc889170164bdb13840fba8633bbaccbc0da7b749a62f665f25d7fce0716a6'
'40c1306c4146a2f5e5296ffad5a6103e7809963f877a7790482ef954ab1c48d657578c3c79a3bdebfbb892a0eb941c3f77b1dbe0a8b2dcae71d71af793dd6bb1'
'f892d50505690b752d960b3efdf8a33c6ca521e363302e4f9ccd1bccbbd37dfdf55460d4fbd26a7444206bbf1050641a35b1788f38895bed058014df8cf68464'
'307da7e0626e30c949d50478eea3cdc427a5621c94a0e16a7a91e3396a5b14f1fee865a6d4810662651a5cb860657aa3a8c9e877842d2ec3c234f6322afc4f22'
'905d6947cd44371167d1e468622acfe5a4c15713f970e72eb590891c82fa8c0aac01bdf1c019556531a526dc96444de82e9b1e002fcd936b5c0530a3b3979929'
'36734e1a8cb5c752fd5c1e78ef353463dc024af77e65de96468e4f88ecadf56a731dec21f9fb9f8abcdfa95fe0dfdf7788410b59b30a449b82fc16c6f1f1cc16'
'ee568238de17450ee00013ac5184a46b389b6e1d1de54bddb6b2bfb43c4b6c8ef42e33e49ab8718e849a321c0b903c1d98703117436a58640d863c0bbcd60295'
'f6e888d23d980eb50dcd70c1ce82324f3ee60c666298f77adf7f7abdf524d78bfcd10a8e17180a64596d964d98ae5457645ece6e3d05d93b938f465f2dc3612a'
'8ed8c1301469242cc669a1f0520708ad0fa4f19406541c976cd9287917f573ec3f47902f9021eef5ff82ca20de04234f459e4826320689705772589b1aca0267'
'fafee1aa872786116d5c28c08dbe12edcf0dd60890c40b108bb60c9d321d9a579fc8fe6a8a86c1641b58531388410fb51e09d294b9b998ca9a39373349e889a0'
'707da287c3db6907fcdbf91cfe2ef057c77033713a1b4299a89a684b37fe3c74644e2c0b1fcec2afcd81c6511bb02ac3221d56c8caadb5d0c711d1842f78e780'
'c7c23c5a7014e3251dfd86312d1d1e5c2d88f26ddc5aa967285202fd3ebf62c0a10c009b1cc5ad1b78e13fa0bc2eda515616d8af02325db434c0b2113c5b1ecb'
'e1b8395ab7ef219860aebe9e7709a60cbaea1c28a8378aac3f54ce37b39944a7fd82b7efa8d59977f0891743cdface149b9f95f4b25c1c5322cb327c50d485ed')
backup=('etc/webapps/onlyoffice/documentserver/production-linux.json'
'etc/webapps/onlyoffice/documentserver/default.json')
install="onlyoffice-documentserver.install"
prepare() {
# Unfortunately, v8 depot_tools still requires python2
# Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=942720
mkdir -p path
ln -sf /usr/bin/python2 path/python
cd "${srcdir}"
rm *.tar.gz
cd "${srcdir}/DocumentServer-ONLYOFFICE-DocumentServer-${pkgver}"
rm -r core core-fonts dictionaries sdkjs sdkjs-plugins server web-apps
mv ../core-fonts* core-fonts
mv ../core-* core
mv ../dictionaries-* dictionaries
mv ../sdkjs-plugins-* sdkjs-plugins
mv ../sdkjs-* sdkjs
mv ../server-* server
mv ../web-apps-* web-apps
# Use clang instead of gcc because of compile errors
sed -i 's/is_clang=false/is_clang=true/g' core/Common/3dParty/v8/build.sh
# python2 dependency for gclient
sed -i '12iexport PATH="'${srcdir}'/path:$PATH"' core/Common/3dParty/v8/fetch.sh
sed -i '28iexport PATH="'${srcdir}'/path:$PATH"' core/Common/3dParty/v8/build.sh
# drop back to v8 6.0, not 7.0 - fixes build issues
sed -i 's/v8_version="7.0"/v8_version="6.0"/g' core/Common/3dParty/v8/fetch.sh
# Patching Makefile to include DESTDIR variable
patch -p0 -i ../server_makefile.patch
# Patching configuration file
sed -i 's/\/var\/www\/onlyoffice/\/usr\/share\/webapps\/onlyoffice/g' server/Common/config/production-linux.json
sed -i 's/\/etc\/onlyoffice/\/etc\/webapps\/onlyoffice/g' server/Common/config/production-linux.json
}
build() {
cd "${srcdir}/DocumentServer-ONLYOFFICE-DocumentServer-${pkgver}"
# workaround bug https://github.com/ONLYOFFICE/onlyoffice-owncloud/issues/42
export PRODUCT_VERSION=${pkgver}
# Download & build third party modules
cd core/Common/3dParty
./make.sh
# Building core
cd ../..
make -j8
# Building sdkjs
cd ../sdkjs
make -j8
# Building server
cd ../server
make -j8
}
package() {
cd "${srcdir}/DocumentServer-ONLYOFFICE-DocumentServer-${pkgver}/server"
install -Dm 644 "${srcdir}/onlyoffice-docservice.service" "${pkgdir}/usr/lib/systemd/system/onlyoffice-docservice.service"
install -Dm 644 "${srcdir}/onlyoffice-fileconverter.service" "${pkgdir}/usr/lib/systemd/system/onlyoffice-fileconverter.service"
install -Dm 644 "${srcdir}/onlyoffice-spellchecker.service" "${pkgdir}/usr/lib/systemd/system/onlyoffice-spellchecker.service"
install -D "${srcdir}/onlyoffice-documentserver.hook" "${pkgdir}/usr/share/libalpm/hooks/onlyoffice-documentserver.hook"
install -Dm 644 "${srcdir}/onlyoffice-documentserver.sysusers" "${pkgdir}/usr/lib/sysusers.d/onlyoffice-documentserver.conf"
install -Dm 644 "${srcdir}/onlyoffice-documentserver.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/onlyoffice-documentserver.conf"
make DOCUMENT_ROOT="/usr/share/webapps/onlyoffice/documentserver" DESTDIR=${pkgdir} install
}
and makes new errors
g++: error: onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.5.1/core/Common/3dParty/icu/linux_64/build/libicuuc.so.58: No such file or directory
g++: error: onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.5.1/core/Common/3dParty/icu/linux_64/build/libicudata.so.58: No such file or directory
manual at developer's site:
Please note
This article is outdated and can be used for Document Server v. 5.4 only. Document Server v. 5.5 cannot be compiled using this instruction.
Offline
The full output from makepkg?
Offline
ONLYOFFICE-DocumentServer-5.5.1.tar.gz ... Passed
core-5.5.1.tar.gz ... Passed
core-fonts-5.5.1.tar.gz ... Passed
dictionaries-5.5.1.tar.gz ... Passed
sdkjs-5.5.1.tar.gz ... Passed
sdkjs-plugins-5.5.1.tar.gz ... Passed
server-5.5.1.tar.gz ... Passed
web-apps-5.5.1.tar.gz ... Passed
server_makefile.patch ... Passed
onlyoffice-fileconverter.service ... Passed
onlyoffice-spellchecker.service ... Passed
onlyoffice-docservice.service ... Passed
onlyoffice-documentserver.hook ... Passed
onlyoffice-documentserver.sysusers ... Passed
onlyoffice-documentserver.tmpfiles ... Passed
Project MESSAGE: linux-64
Project MESSAGE: linux_64/release
Project MESSAGE: linux-64
Project MESSAGE: linux_64/release
Project MESSAGE: linux-64
Project MESSAGE: linux_64/release
Project MESSAGE: core_static_link_libstd
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
../UnicodeConverter.cpp: In member function 'std::wstring NSUnicodeConverter::CUnicodeConverter_Private::toUnicode(const char*, const unsigned int&, int, bool)':
../UnicodeConverter.cpp:202:21: warning: unused variable 'iii' [-Wunused-variable]
202 | int iii = ucnv_getCCSID(conv, &status);
| ^~~
../UnicodeConverter.cpp: In member function 'std::wstring NSUnicodeConverter::CUnicodeConverter_Private::toUnicode(const char*, const unsigned int&, const char*, bool)':
../UnicodeConverter.cpp:256:21: warning: unused variable 'iii' [-Wunused-variable]
256 | int iii = ucnv_getCCSID(conv, &status);
| ^~~
g++: error: /home/vvl/aur/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.5.1/core/Common/3dParty/icu/linux_64/build/libicuuc.so.58: No such file or directory
g++: error: /home/vvl/aur/onlyoffice-documentserver/src/DocumentServer-ONLYOFFICE-DocumentServer-5.5.1/core/Common/3dParty/icu/linux_64/build/libicudata.so.58: No such file or directory
make[1]: *** [Makefile:368: ../../build/lib/linux_64/libUnicodeConverter.so] Error 1
make: *** [Makefile:288: build/lib/linux_64/libUnicodeConverter.so*] Error 2
==> ERROR: A failure occurred in build().
Offline
==> Retrieving sources...
-> Downloading ONLYOFFICE-DocumentServer-5.5.1.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 158 100 158 0 0 454 0 --:--:-- --:--:-- --:--:-- 454
100 42235 0 42235 0 0 45219 0 --:--:-- --:--:-- --:--:-- 328k
-> Downloading core-5.5.1.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 126 100 126 0 0 361 0 --:--:-- --:--:-- --:--:-- 361
100 56.3M 0 56.3M 0 0 3960k 0 --:--:-- 0:00:14 --:--:-- 4143k
-> Downloading core-fonts-5.5.1.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 132 0 132 0 0 397 0 --:--:-- --:--:-- --:--:-- 396
100 72.3M 0 72.3M 0 0 7969k 0 --:--:-- 0:00:09 --:--:-- 9000k
-> Downloading dictionaries-5.5.1.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 134 100 134 0 0 417 0 --:--:-- --:--:-- --:--:-- 417
100 36.9M 0 36.9M 0 0 3638k 0 --:--:-- 0:00:10 --:--:-- 3871k
-> Downloading sdkjs-5.5.1.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 127 100 127 0 0 369 0 --:--:-- --:--:-- --:--:-- 369
100 10.0M 0 10.0M 0 0 3501k 0 --:--:-- 0:00:02 --:--:-- 4216k
-> Downloading sdkjs-plugins-5.5.1.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 135 100 135 0 0 358 0 --:--:-- --:--:-- --:--:-- 358
100 3068k 0 3068k 0 0 1733k 0 --:--:-- 0:00:01 --:--:-- 2583k
-> Downloading server-5.5.1.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 128 100 128 0 0 368 0 --:--:-- --:--:-- --:--:-- 368
100 198k 0 198k 0 0 166k 0 --:--:-- 0:00:01 --:--:-- 534k
-> Downloading web-apps-5.5.1.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 129 0 129 0 0 462 0 --:--:-- --:--:-- --:--:-- 462
100 130 100 130 0 0 257 0 --:--:-- --:--:-- --:--:-- 257
100 52.2M 0 52.2M 0 0 8570k 0 --:--:-- 0:00:06 --:--:-- 10.8M
-> Found server_makefile.patch
-> Found onlyoffice-fileconverter.service
-> Found onlyoffice-spellchecker.service
-> Found onlyoffice-docservice.service
-> Found onlyoffice-documentserver.hook
-> Found onlyoffice-documentserver.sysusers
-> Found onlyoffice-documentserver.tmpfiles
==> Validating source files with sha512sums...
ONLYOFFICE-DocumentServer-5.5.1.tar.gz ... Passed
core-5.5.1.tar.gz ... Passed
core-fonts-5.5.1.tar.gz ... Passed
dictionaries-5.5.1.tar.gz ... Passed
sdkjs-5.5.1.tar.gz ... Passed
sdkjs-plugins-5.5.1.tar.gz ... Passed
server-5.5.1.tar.gz ... Passed
web-apps-5.5.1.tar.gz ... Passed
server_makefile.patch ... FAILED
onlyoffice-fileconverter.service ... Passed
onlyoffice-spellchecker.service ... Passed
onlyoffice-docservice.service ... Passed
onlyoffice-documentserver.hook ... Passed
onlyoffice-documentserver.sysusers ... Passed
onlyoffice-documentserver.tmpfiles ... Passed
==> ERROR: One or more files did not pass the validity check!
==> ERROR: Could not download sources.
Please post the server_makefile.patch you are using.
Offline
Please post the server_makefile.patch you are using.
I'm using default one...
--- server/Makefile.orig 2019-09-03 16:38:51.661456344 +0000
+++ server/Makefile 2019-09-03 16:35:39.414889096 +0000
@@ -173,41 +173,42 @@
rm -rf $(CORE_FONTS) $(OUTPUT) $(GRUNT_FILES)
install:
- mkdir -pv ${DESTDIR}/var/www/onlyoffice
- if ! id -u onlyoffice > /dev/null 2>&1; then useradd -m -d /var/www/onlyoffice -r -U onlyoffice; fi
+ #mkdir -pv ${DESTDIR}/var/www/onlyoffice
+ #if ! id -u onlyoffice > /dev/null 2>&1; then useradd -m -d /var/www/onlyoffice -r -U onlyoffice; fi
mkdir -p ${DESTDIR}${DOCUMENT_ROOT}/fonts
mkdir -p ${DESTDIR}/var/log/onlyoffice/documentserver
mkdir -p ${DESTDIR}/var/lib/onlyoffice/documentserver/App_Data
cp -fr -t ${DESTDIR}${DOCUMENT_ROOT} build/* ../web-apps/deploy/*
- mkdir -p ${DESTDIR}/etc/onlyoffice/documentserver
- mv ${DESTDIR}${DOCUMENT_ROOT}/server/Common/config/* ${DESTDIR}/etc/onlyoffice/documentserver
+ mkdir -p ${DESTDIR}/etc/webapps/onlyoffice/documentserver
+ mv ${DESTDIR}${DOCUMENT_ROOT}/server/Common/config/* ${DESTDIR}/etc/webapps/onlyoffice/documentserver
- chown onlyoffice:onlyoffice -R ${DESTDIR}/var/www/onlyoffice
- chown onlyoffice:onlyoffice -R ${DESTDIR}/var/log/onlyoffice
- chown onlyoffice:onlyoffice -R ${DESTDIR}/var/lib/onlyoffice
+
+ #chown onlyoffice:onlyoffice -R ${DESTDIR}/var/www/onlyoffice
+ #chown onlyoffice:onlyoffice -R ${DESTDIR}/var/log/onlyoffice
+ #chown onlyoffice:onlyoffice -R ${DESTDIR}/var/lib/onlyoffice
# Make symlinks for shared libs
find \
${DESTDIR}${DOCUMENT_ROOT}/server/FileConverter/bin \
-maxdepth 1 \
-name *$(SHARED_EXT) \
- -exec sh -c 'ln -sf {} ${DESTDIR}/lib/$$(basename {})' \;
+ -exec sh -c 'ln -sf ${DOCUMENT_ROOT}/server/FileConverter/bin/$$(basename {}) ${DESTDIR}/usr/lib/$$(basename {})' \;
- sudo -u onlyoffice "${DESTDIR}${DOCUMENT_ROOT}/server/tools/allfontsgen"\
- --input="${DESTDIR}${DOCUMENT_ROOT}/core-fonts"\
- --allfonts-web="${DESTDIR}${DOCUMENT_ROOT}/sdkjs/common/AllFonts.js"\
- --allfonts="${DESTDIR}${DOCUMENT_ROOT}/server/FileConverter/bin/AllFonts.js"\
- --images="${DESTDIR}${DOCUMENT_ROOT}/sdkjs/common/Images"\
- --selection="${DESTDIR}${DOCUMENT_ROOT}/server/FileConverter/bin/font_selection.bin"\
- --output-web="${DESTDIR}${DOCUMENT_ROOT}/fonts"\
- --use-system="true"
-
- sudo -u onlyoffice "${DESTDIR}${DOCUMENT_ROOT}/server/tools/allthemesgen"\
- --converter-dir="${DESTDIR}${DOCUMENT_ROOT}/server/FileConverter/bin"\
- --src="${DESTDIR}${DOCUMENT_ROOT}/sdkjs/slide/themes"\
- --output="${DESTDIR}${DOCUMENT_ROOT}/sdkjs/common/Images"
+ #sudo -u onlyoffice "${DESTDIR}${DOCUMENT_ROOT}/server/tools/allfontsgen"\
+ # --input="${DESTDIR}${DOCUMENT_ROOT}/core-fonts"\
+ # --allfonts-web="${DESTDIR}${DOCUMENT_ROOT}/sdkjs/common/AllFonts.js"\
+ # --allfonts="${DESTDIR}${DOCUMENT_ROOT}/server/FileConverter/bin/AllFonts.js"\
+ # --images="${DESTDIR}${DOCUMENT_ROOT}/sdkjs/common/Images"\
+ # --selection="${DESTDIR}${DOCUMENT_ROOT}/server/FileConverter/bin/font_selection.bin"\
+ # --output-web="${DESTDIR}${DOCUMENT_ROOT}/fonts"\
+ # --use-system="true"
+
+ #sudo -u onlyoffice "${DESTDIR}${DOCUMENT_ROOT}/server/tools/allthemesgen"\
+ # --converter-dir="${DESTDIR}${DOCUMENT_ROOT}/server/FileConverter/bin"\
+ # --src="${DESTDIR}${DOCUMENT_ROOT}/sdkjs/slide/themes"\
+ # --output="${DESTDIR}${DOCUMENT_ROOT}/sdkjs/common/Images"
uninstall:
userdel onlyoffice
Offline
diff against server_makefile.patch from AUR
diff --git a/server_makefile.patch b/server_makefile.patch
index dc0a4e6..7277ad6 100644
--- a/server_makefile.patch
+++ b/server_makefile.patch
@@ -13,7 +13,7 @@
mkdir -p ${DESTDIR}/var/log/onlyoffice/documentserver
mkdir -p ${DESTDIR}/var/lib/onlyoffice/documentserver/App_Data
- cp -fr -t ${DESTDIR}${DOCUMENT_ROOT} build/* ../web-apps-pro/deploy/*
+ cp -fr -t ${DESTDIR}${DOCUMENT_ROOT} build/* ../web-apps/deploy/*
- mkdir -p ${DESTDIR}/etc/onlyoffice/documentserver
- mv ${DESTDIR}${DOCUMENT_ROOT}/server/Common/config/* ${DESTDIR}/etc/onlyoffice/documentserver
+ mkdir -p ${DESTDIR}/etc/webapps/onlyoffice/documentserver
Offline
==> Retrieving sources...
-> Found ONLYOFFICE-DocumentServer-5.5.1.tar.gz
-> Found core-5.5.1.tar.gz
-> Found core-fonts-5.5.1.tar.gz
-> Found dictionaries-5.5.1.tar.gz
-> Found sdkjs-5.5.1.tar.gz
-> Found sdkjs-plugins-5.5.1.tar.gz
-> Found server-5.5.1.tar.gz
-> Found web-apps-5.5.1.tar.gz
-> Found server_makefile.patch
-> Found onlyoffice-fileconverter.service
-> Found onlyoffice-spellchecker.service
-> Found onlyoffice-docservice.service
-> Found onlyoffice-documentserver.hook
-> Found onlyoffice-documentserver.sysusers
-> Found onlyoffice-documentserver.tmpfiles
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
-> Extracting ONLYOFFICE-DocumentServer-5.5.1.tar.gz with bsdtar
-> Extracting core-5.5.1.tar.gz with bsdtar
-> Extracting core-fonts-5.5.1.tar.gz with bsdtar
-> Extracting dictionaries-5.5.1.tar.gz with bsdtar
-> Extracting sdkjs-5.5.1.tar.gz with bsdtar
-> Extracting sdkjs-plugins-5.5.1.tar.gz with bsdtar
-> Extracting server-5.5.1.tar.gz with bsdtar
-> Extracting web-apps-5.5.1.tar.gz with bsdtar
==> Starting prepare()...
sed: can't read core/Common/3dParty/v8/build.sh: No such file or directory
==> ERROR: A failure occurred in prepare().
Aborting...
Last edited by loqs (2020-04-10 10:24:12)
Offline