
























Sorry @alllexx88. Just saw this comment after the flag...
@jessidhia This would work for packages that just need calibre executable binaries. However, with plugins it wouldn't, since calibre-bin doesn't look into /usr/lib/calibre/calibre (or /usr/share/calibre/system-plugins or anything in /usr) for plugins -- it uses /opt/calibre/plugins for system-wide plugins instead. Hence, any plugin you install in /usr/... just won't be discovered.
This probably should have provides=("${pkgname%-bin}=$pkgver") to satisfy calibre dependencies in other calibre-related AUR packages like plugins and drivers.
@alllexx88 9.3.1-4 worked perfectly for me, thank you!
@INeedTogepi thanks for the report. After building in a clean chroot, I discovered that a bunch of dependencies is missing. They're pretty common ones, so I haven't discovered it before. Please try again with 9.3.1-4
I get the following error on the latest PKGBUILD:
==> Starting build()...
-> Building man pages using calibre-debug + sphinx...
Running Sphinx v8.2.3
loading translations [en]... done
Failed to import PyQt module: PyQt6.QtWidgets with error: libfontconfig.so.1: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "/build/calibre-bin/src/calibre-9.3.1/manual/custom.py", line 327, in get_cli_docs
documented_cmds.append((cmd, getattr(module, 'option_parser')()))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
TypeError: option_parser() missing 1 required positional argument: 'basename'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "runpy.py", line 198, in _run_module_as_main
File "runpy.py", line 88, in _run_code
File "site.py", line 47, in <module>
File "site.py", line 43, in main
File "calibre/debug.py", line 319, in main
File "calibre/debug.py", line 218, in run_script
File "polyglot/builtins.py", line 110, in exec_path
File "/build/calibre-bin/src/_build_man.py", line 30, in <module>
app = Sphinx(srcdir=manual_dir, confdir=manual_dir, outdir=destdir,
doctreedir=doctreedir, buildername='man', freshenv=True,
confoverrides={'language': 'en'})
File "/usr/lib/python3.14/site-packages/sphinx/application.py", line 291, in __init__
self.setup_extension(extension)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/lib/python3.14/site-packages/sphinx/application.py", line 489, in setup_extension
self.registry.load_extension(self, extname)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/site-packages/sphinx/registry.py", line 560, in load_extension
metadata = setup(app)
File "/build/calibre-bin/src/calibre-9.3.1/manual/custom.py", line 417, in setup
setup_man_pages(app)
~~~~~~~~~~~~~~~^^^^^
File "/build/calibre-bin/src/calibre-9.3.1/manual/custom.py", line 405, in setup_man_pages
documented_cmds = get_cli_docs()[0]
~~~~~~~~~~~~^^
File "/build/calibre-bin/src/calibre-9.3.1/manual/custom.py", line 329, in get_cli_docs
documented_cmds.append((cmd, getattr(module, 'option_parser')(cmd)))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
File "calibre/gui_launch.py", line 175, in option_parser
File "bypy-importer.py", line 279, in exec_module
File "calibre/gui2/__init__.py", line 16, in <module>
ImportError: cannot import name 'QApplication' from 'qt.core' (/build/calibre-bin/src/calibre-release/lib/calibre-extensions/python-lib.bypy.frozen/qt/core.pyc)
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Building package [calibre-bin] failed.
Cleaning up.
EDIT: I apologize for posting this twice. The lack of word-wrapping made me think I posted the wrong error code, since I tried building once in a clean chroot, and then retried building again in the same chroot. Turns out the errors were identical... 🤦♀️
@un_pogaz reproduced it and pushed a similar fix, thanks :) figured it out right before your last clarification
@alllexx88 Oh right, my bad for the url. I was fooled by the text name, but the real url behind is good, on the github release, their is a second source archive that also use the basename calibre-9.3.1.tar.gz. (and this one is not stable to use)
And yes, I tryed the PKGBUILD, and it not work for me. You need to define the env variable before run calibre-debug, at the same time than QT_QPA_PLATFORM and CALIBRE_SRC, not in the "python script" because is too late: calibre-debug already load the translated string, and overide them here do nothing.
At least, is more consisten for me.
+ CALIBRE_OVERRIDE_LANG='en' \
+ ALL_USER_MANUAL_LANGUAGES='en' \
+ CALIBRE_BUILD_MAN_PAGES='1' \
QT_QPA_PLATFORM=offscreen \
CALIBRE_SRC="$srcdir/calibre-${pkgver}" \
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
I like this piece of software and I use to catalog my ebooks. It’s mature enough that the last versions don’t add anything useful to me. Therefore I installed the official Arch repositories version which surprisingly is almost one year old, but takes less space and has fewer dependencies.