Debian Patches

Status for calibre/9.6.0+ds+~0.10.5-6

Patch Description Author Forwarded Bugs Origin Last update
0001-only-plugin-update.patch allow for plugin update check, but no calibre version check

allow for plugin update check, but no calibre version check
Norbert Preining <norbert@preining.info> not-needed 2019-12-29
0002-no-detach-in-desktop-files.patch no --detach in .desktop files (Closes: #877774)

do not use --detach in the .desktop files, otherwise
mimetype handling of temporary files is broken as
the tmp files disappear too quickly. See #877774
Norbert Preining <norbert@preining.info> not-needed debian 2017-10-09
0003-disable-unrar-test.patch disable unrar test since the module is not in Debian main

disable unrar test since the module is not in Debian main
Norbert Preining <norbert@preining.info> not-needed 2019-12-26
0004-Extend-timeout-limit.patch Extend timeout limit

Some non-x86 architecture is much slower than x86.
Add some more time to wait test results.
YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2020-04-17
0005-Extend-timeout-limit.patch Extend timeout limit YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2022-07-14
0006-Extend-timeout-limit-to-pass-test_backup-test.patch Extend timeout limit to pass "test_backup" test YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2023-04-07
hardening/0007-Hardening-Qt-code.patch Hardening Qt code

Allow hardening flags from debhelper.
YOKOTA Hiroshi <qykth-git@users.noreply.github.com> not-needed 2019-11-23
0008-Don-t-change-book-file-unless-user-s-consent-Closes-.patch Don't change book file unless user's consent (Closes: #974974)

This fix changes default value and behavior of ebook-viewer(1) preferences
"Miscellaneous"->"Keep a copy of annotations/bookmarks in the e-book file,
for easy sharing".

* Set "False" for "save_annotations_in_ebook".
* Give "False" if askes default value of "save_annotations_in_ebook".
YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed debian 2020-11-18
0009-Add-Debian-specific-SIP-path.patch Add Debian specific SIP path

Debian uses "dist-packages" instead of "site-packages".

https://wiki.debian.org/Python
> dist-packages instead of site-packages. Third party Python software
> installed from Debian packages goes into dist-packages, not
> site-packages. This is to reduce conflict between the system Python,
> and any from-source Python build you might install manually.

https://www.riverbankcomputing.com/static/Docs/sip/directives.html#std-directive-Import
> If this also fails then SIP prepends name with each of the directories,
> in turn, specified by the sip-include-dirs value of the project section
> in pyproject.toml.
YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2021-10-23
0010-Debian-uses-pycryptodomex-instead-of-prcryptodome.patch Debian uses "pycryptodomex" instead of "prcryptodome"

Debian uses Cryptdome class (pycryptodomex) for cipher functions.
Cryptodome class can be replacement for old Crypto class (prcryptodome),
but Debian dose not replace this class yet.

So, this hack is not needed yet.
YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2022-07-11
0011-py7zr-uses-PyCryptodome.patch "py7zr" uses PyCryptodome

This test checks the Cryptodome class was replaced old Crypto class.
py7zr requires Cryptodome's extended features like AES.
YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2022-07-11
hardening/0012-Add-hardening-options-from-CPPFLAGS.patch Add hardening options from CPPFLAGS

cmake(1) accepts CXXFLAGS only for C++ compilations.

Add CPPFLAGS for C++ compilation flags to add hardening flags
like "-D_FORTIFY_SOURCE=2".
YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2022-10-22
reproducible/0013-Sort-file-names-for-reproducible-build.patch Sort file names for reproducible build YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2021-11-13
reproducible/0014-Sort-directory-and-file-names-to-reproducible-build.patch Sort directory and file names to reproducible build YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2022-10-01
reproducible/0015-Sort-files-and-directories-for-reproducible-build.patch Sort files and directories for reproducible build

note:
os.walk() returns generator, not list.
sorted() is not usable here.
YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2022-12-15
0016-calibre-fix-appstream-ID-warning-Closes-1076311.patch calibre: fix appstream ID warning (Closes: #1076311)

<URL: https://appstream.debian.org/sid/main/issues/calibre.html >
contain the following warning about the content of the appstream
metadata file:

* asv-cid-desktopapp-is-not-rdns
calibre-gui.metainfo.xml:3 - calibre-gui.desktop
The component ID is not a reverse domain-name. Please update the ID
to avoid future issues and be compatible with all AppStream
implementations. You may also consider to update the name of the
accompanying .desktop file to follow the latest version of the
Desktop-Entry specification and use a rDNS name for it as well. In
any case, do not forget to mention the new desktop-entry in a
<launchable/> tag for this component to keep the application
launchable from software centers and the .desktop file data
associated with the metainfo data.

I believe the following untested patch will solve the issue. Sadly I
lack the required free disk space available to test this patch.
Petter Reinholdtsen <pere@hungry.com> no 2024-07-14
0017-calibre-Please-announce-supported-hardware-using-App.patch calibre: Please announce supported hardware using AppStream (Closes: #838069)


Hi.

The calibre package is one of the packages in the Debian archive that
should be proposed for installation when a given hardware dongle is
inserted or available. Thanks to the appstream system, this can now be
announced in a way other tools can use and act on. I've written the
isenkram system to ask the current user if hardware specific packages
should be installed when a new dongle is installed or already present on
a machine, and isenkram now uses appstream as one source for hardware to
package mappings.

You can read more about this on my blog,
<URL: http://people.skolelinux.org/pere/blog/Using_appstream_with_isenkram_to_install_hardware_related_packages_in_Debian.html >.

Instructions on how to create the metadata XML file can be found in
<URL: https://wiki.debian.org/AppStream/Guidelines >.

It would be great if you could add an appstream metainfo file to the
calibre package, with content similar to this:

<?xml version="1.0" encoding="UTF-8"?>
<component>
[...]
<provides>
<modalias>usb:v2237p*d*ic08isc*ip*</modalias>
<modalias>usb:v0525pA4A5d*ic08isc*ip*</modalias>
</provides>
</component>

If there are other USB ids also supposed by the package, please add
those too. :)
Petter Reinholdtsen <pere@hungry.com> no 2024-07-14
0018-lrfviewer-doesn-t-has-AppStream-meta-info-file.patch "lrfviewer" doesn't has AppStream meta info file YOKOTA Hiroshi <yokota.hgml@gmail.com> no 2024-07-19
0019-Tweak-link-options-for-embedded-PoDoFo.patch Tweak link options for embedded PoDoFo YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2025-09-22
0020-No-need-to-use-tzdata-module-on-Unix.patch No need to use tzdata module on Unix

Windows uses tzdata module for zoneinfo, but Unix uses system's zoneinfo
data.

See also:
https://docs.python.org/3/library/zoneinfo.html#module-zoneinfo
YOKOTA Hiroshi <yokota.hgml@gmail.com> yes 2025-12-05
0021-Drop-libpostproc.patch Drop libpostproc
FFmpeg 8 drops "libpostproc" and move it to source-plugins.
* https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/fd31df43067fe21cc1e4fabd07ee9d6a26cb7264
YOKOTA Hiroshi <yokota.hgml@gmail.com> no 2026-02-27
upstream/0022-Bump-pygments-from-2.19.2-to-2.20.0.patch Bump pygments from 2.19.2 to 2.20.0

Bumps [pygments](https://github.com/pygments/pygments) from 2.19.2 to 2.20.0.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.19.2...2.20.0)
"dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> not-needed 2026-04-01
0023-Use-system-dictionary-data-for-pykakasi.patch Use system dictionary data for pykakasi
Upstream Calibre uses own path for pykakasi dictionary data.
YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2026-04-06

All known versions for source package 'calibre'

Links