@kxxt thanks for checking it out. I have no idea what to do about it either.
Search Criteria
Package Details: onlyoffice 8.3.2-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/onlyoffice.git (read-only, click to copy) |
---|---|
Package Base: | onlyoffice |
Description: | An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents |
Upstream URL: | https://www.onlyoffice.com/desktop.aspx |
Licenses: | AGPL-3.0-only |
Conflicts: | onlyoffice-bin, onlyoffice-git |
Submitter: | kxxt |
Maintainer: | kxxt |
Last Packager: | kxxt |
Votes: | 2 |
Popularity: | 0.024525 |
First Submitted: | 2024-07-26 09:42 (UTC) |
Last Updated: | 2025-03-21 11:07 (UTC) |
Dependencies (34)
- alsa-lib
- curl (curl-gitAUR, curl-c-aresAUR)
- desktop-file-utils (desktop-file-utils-gitAUR)
- gst-plugins-base-libs (gst-plugins-base-libs-gitAUR)
- gst-plugins-ugly (gst-plugins-ugly-gitAUR)
- gstreamer (gstreamer-gitAUR)
- gtk3 (gtk3-no_deadkeys_underlineAUR, gtk3-classic-xfceAUR, gtk3-classicAUR, gtk3-patched-filechooser-icon-viewAUR)
- hicolor-icon-theme (hicolor-icon-theme-gitAUR)
- libpulse (pulseaudio-dummyAUR, libpulse-gitAUR)
- libxss
- nspr (nspr-hgAUR)
- nss (nss-hgAUR)
- qt5-base (qt5-base-gitAUR, qt5-base-headlessAUR)
- qt5-multimedia
- qt5-svg (qt5-svg-gitAUR)
- qt5-x11extras
- ttf-carlito (ttf-google-fonts-gitAUR)
- ttf-dejavu (ttf-dejavu-ibAUR, ttf-dejavu-emojilessAUR)
- ttf-liberation (ttf-defenestrationAUR)
- cmake (cmake-gitAUR, cmake3AUR) (make)
- Show 14 more dependencies...
Required by (0)
Sources (24)
- 0001-Add-update-only-to-avoid-download-and-build-at-once.patch
- 0001-Fix-boost-module-import.patch
- 0002-Add-no-third-party-update-and-update-third-party-onl.patch
- 0003-use-QT_VERSION-env-instead-of-guessing.patch
- 0004-Only-build-tar.patch
- fix-glib-qt-macro-collision.diff
- fix-limits-include.diff
- git+https://chromium.googlesource.com/chromium/tools/depot_tools.git#commit=8dde9800ee2b8326ab11a87abd67d3bd9f8c8773
- git+https://github.com/ONLYOFFICE/DesktopEditors#tag=v8.3.2
- git+https://github.com/unicode-org/icu.git#tag=release-58-3
- git+https://github.com/v8/v8#tag=9.0.257.43
- onlyoffice-build_tools
- onlyoffice-core-fonts
- onlyoffice-core
- onlyoffice-desktop-apps
- onlyoffice-desktop-sdk
- onlyoffice-dictionaries
- onlyoffice-document-templates
- onlyoffice-sdkjs-forms
- onlyoffice-sdkjs
- onlyoffice-web-apps
- onlyoffice.github.io
- use-fpermissive.diff
- v8-89-fix-cstdint.diff
cog commented on 2025-03-08 20:57 (UTC)
kxxt commented on 2025-03-06 14:27 (UTC)
@cog I checked the inspector and that icon is not rendered through CEF. So it might be related to system QT5. But I don't know what to do about it.
cog commented on 2025-03-03 04:52 (UTC)
@kxxt, Your new 0001-Fix-boost-module-import.patch resolved the issue. Thanks.
The only other thing I've noticed with this build is when using any of the "dark" themes the onlyoffice logo dissapears from the upper left hand corner. The "light" themes look normal like the flatpak. I'm guessing it's a system QT5 issue. What do you think? It's purely cosmetic but kind of annoying.
kxxt commented on 2025-03-02 11:49 (UTC)
@cog Thanks. The problem should be in the use of relative path in sys.append, which is not relative to the file itself. Those appends upstream wrote there never worked. Fixed in 8.3.1-2.
cog commented on 2025-03-02 05:36 (UTC)
@kxxt I was getting the same error as @cosmo. The following change to your 0001-Fix-boost-module-import.patch fixed it.
diff --unified --recursive --text a/scripts/core_common/make_common.py b/scripts/core_common/make_common.py
--- a/scripts/core_common/make_common.py 2025-03-01 22:03:18.147448232 -0700
+++ b/scripts/core_common/make_common.py 2025-03-01 22:01:36.040829080 -0700
@@ -1,14 +1,14 @@
#!/usr/bin/env python
import sys
-sys.path.append('modules')
+sys.path.insert(0, 'modules')
sys.path.append('..')
import config
import base
import glob
-import boost
+from modules import boost
import cef
import icu
import openssl
kxxt commented on 2025-03-01 12:31 (UTC)
Hi @cosmo, what version are you building? That problem should have been fixed in 8.1.1-2
cosmo commented on 2025-03-01 11:57 (UTC) (edited on 2025-03-01 11:59 (UTC) by cosmo)
patching file Common/base.pri
Hunk #1 succeeded at 601 (offset 3 lines).
patching file win-linux/src/cthemes.cpp
Traceback (most recent call last):
File "/home/user/.cache/yay/onlyoffice/src/build_tools/./make.py", line 73, in <module>
make_common.make()
~~~~~~~~~~~~~~~~^^
File "/home/user/.cache/yay/onlyoffice/src/build_tools/scripts/core_common/make_common.py", line 40, in make
boost.make()
^^^^^^^^^^
AttributeError: module 'boost' has no attribute 'make'
==> ERROR: A failure occurred in prepare().
Aborting...
-> error making: onlyoffice-exit status 4
-> Failed to install the following packages. Manual intervention is required:
onlyoffice - exit status 4
kxxt commented on 2024-09-29 13:15 (UTC)
@dreieck 8.1.1-2 should fix the issues you found. Thanks again for your report.
kxxt commented on 2024-09-04 01:39 (UTC)
prepare() does throw errors pathspec 'v8.1.1' did not match any file(s) known to git,
I didn't notice this before. It looks like a problem. Thanks for your report! I will look into it.
syntax warnings invalid escape sequence
That's just some bad python code from upstream. They even use semicolons sometimes in python scripts.
error AttributeError: module 'boost' has no attribute 'make', and fails:
Could you try building in a clean chroot(for example, by using extra-x86_64-build)? I always build packages in clean chroot.I suspect this is because onlyoffice's script wants to import a local 'boost' module but it uses the globally installed one in your case.
Also, note, that prepare() still downloads stuff.
Yes, it still clones tons of git repos of boost. Ideally I want to get rid of it. But IMO this is Arch and prepare() is allowed to download stuff.
dreieck commented on 2024-09-03 15:48 (UTC)
prepare()
does throw
- errors
pathspec 'v8.1.1' did not match any file(s) known to git
, - error
AttributeError: module 'boost' has no attribute 'make'
, - syntax warnings
invalid escape sequence
and fails:
==> Starting prepare()...
[...]
patching file scripts/package_branding.py
/var/cache/makepkg/build/onlyoffice/src/build_tools/scripts/base.py:976: SyntaxWarning: invalid escape sequence '\.'
return re.sub("[^a-zA-Z0-9\.\-]", "-", bundle_identifier)
/var/cache/makepkg/build/onlyoffice/src/build_tools/scripts/base.py:1432: SyntaxWarning: invalid escape sequence '\d'
sdks = [re.findall('^MacOSX(1\d\.\d+)\.sdk$', s) for s in os.listdir(sdk_dir)]
/var/cache/makepkg/build/onlyoffice/src/build_tools/scripts/base.py:1630: SyntaxWarning: invalid escape sequence '\$'
new_path = new_path.replace("$ORIGIN", "\$ORIGIN")
/var/cache/makepkg/build/onlyoffice/src/build_tools/scripts/develop/dependence.py:647: SyntaxWarning: invalid escape sequence '\q'
result = os.system(postgreLoginSrt + ' -c "\q"')
/var/cache/makepkg/build/onlyoffice/src/build_tools/scripts/develop/dependence.py:697: SyntaxWarning: invalid escape sequence '\d'
if (base.run_command_in_dir(postgre_path_to_bin, postgreLoginRoot + ' -c "\du ' + dbUser + '"')['stdout'].find(dbUser) != -1):
/var/cache/makepkg/build/onlyoffice/src/build_tools/scripts/develop/dependence.py:699: SyntaxWarning: invalid escape sequence '\q'
if (os.system(postgreLoginDbUser + '-c "\q"') != 0):
/var/cache/makepkg/build/onlyoffice/src/build_tools/scripts/develop/dependence.py:719: SyntaxWarning: invalid escape sequence '\l'
if (base.run_command_in_dir(postgre_path_to_bin, postgreLoginRoot + '-c "\l+ ' + dbName + '"')['stdout'].find(dbUser +'=CTc/' + rootUser) == -1):
[git] update: core
error: pathspec 'v8.1.1' did not match any file(s) known to git
branch does not exist...
switching to master...
Already on 'master'
Your branch is up to date with 'origin/master'.
Already up to date.
[git] update: sdkjs
error: pathspec 'v8.1.1' did not match any file(s) known to git
[...]
[git] update: sdkjs-forms
error: pathspec 'v8.1.1' did not match any file(s) known to git
[...]
[git] update: onlyoffice.github.io
error: pathspec 'v8.1.1' did not match any file(s) known to git
[...]
[git] update: web-apps
error: pathspec 'v8.1.1' did not match any file(s) known to git
[...]
[git] update: dictionaries
error: pathspec 'v8.1.1' did not match any file(s) known to git
[...]
[git] update: core-fonts
error: pathspec 'v8.1.1' did not match any file(s) known to git
[...]
[git] update: desktop-sdk
error: pathspec 'v8.1.1' did not match any file(s) known to git
[...]
[git] update: desktop-apps
error: pathspec 'v8.1.1' did not match any file(s) known to git
[...]
[git] update: document-templates
error: pathspec 'v8.1.1' did not match any file(s) known to git
[...]
patching file win-linux/src/cthemes.cpp
Traceback (most recent call last):
File "/var/cache/makepkg/build/onlyoffice/src/build_tools/./make.py", line 73, in <module>
make_common.make()
File "/var/cache/makepkg/build/onlyoffice/src/build_tools/scripts/core_common/make_common.py", line 39, in make
boost.make()
^^^^^^^^^^
AttributeError: module 'boost' has no attribute 'make'
==> ERROR: A failure occurred in prepare().
Also, note, that prepare()
still downloads stuff.
Regards!
Pinned Comments
kxxt commented on 2024-07-26 09:48 (UTC)
Pull requests are welcome here: https://github.com/kxxt/aur-onlyoffice
You can also report issues at the GitHub repo.