Debian Patches

Status for calibre/6.13.0+repack-2+deb12u3

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 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-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
0007-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 2020-11-18
0008-Use-stdint.h-to-support-MIPS64.patch Use <stdint.h> to support MIPS64

stb library doesn't know MIPS 64 architecture.
It makes pointer size to 32 bits.
Use <stdint.h> and "uintptr_t" to tell proper pointer size.

This patch will not forward to upstream because they don't want this fix.

https://github.com/nothings/stb/blob/master/README.md#why-not-c99-stdinth-declare-anywhere-etc
> #### Why not C99? stdint.h, declare-anywhere, etc.
>
> I still use MSVC 6 (1998) as my IDE because it has better human factors
> for me than later versions of MSVC.
YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2021-06-26
0009-Drop-monkey-patch-to-work-with-older-zeroconf-module.patch Drop monkey patch to work with older zeroconf module

This patch adds "15 characters service name limit" as side-effect.
YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2021-07-10
0010-description-tag-can-t-have-lang-attributes.patch "description" tag can't have "lang" attributes YOKOTA Hiroshi <yokota.hgml@gmail.com> no 2021-09-03
0011-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
0012-Debian-uses-pycryptodomex-instead-of-prcryptodome.patch Debian uses "pycryptodomex" instead of "prcryptodome" YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2022-07-11
0013-py7zr-uses-PyCryptodome.patch "py7zr" uses PyCryptodome YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2022-07-11
0014-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
0015-Use-IPv6-address-for-content-server-default-value.patch Use IPv6 address for content server default value YOKOTA Hiroshi <yokota.hgml@gmail.com> no 2022-10-22
0016-IPv6-requires-for-host-port-style-notation.patch IPv6 requires [] for host:port style notation
ex)
IPv4: 127.0.0.1:8080
IPv6: [::1]:8080
YOKOTA Hiroshi <yokota.hgml@gmail.com> no 2022-10-22
0017-Add-for-IPv6-address-in-log-file.patch Add [] for IPv6 address in log file YOKOTA Hiroshi <yokota.hgml@gmail.com> no 2022-10-23
0018-Keep-original-IP-address-if-the-IP-address-is-not-in.patch Keep original IP address if the IP address is not in address map
dict.get() returns None if the key is not in dict.
YOKOTA Hiroshi <yokota.hgml@gmail.com> no 2022-10-22
0019-Return-None-if-IP-address-string-is-None.patch Return None if IP address string is None
"ip_address" parameter is None when content server config value
"listen_on" is blank string.
YOKOTA Hiroshi <yokota.hgml@gmail.com> no 2022-10-23
0020-Sort-object-lists-for-reproducible-build.patch Sort object lists for reproducible build YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2021-11-07
0021-Sort-file-names-for-reproducible-build.patch Sort file names for reproducible build YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2021-11-13
0022-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
0023-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> no 2022-12-15
0024-Use-downloaded-static-file-for-reproducible-build.patch Use downloaded static file for reproducible build YOKOTA Hiroshi <yokota.hgml@gmail.com> no 2023-02-19
0025-Don-t-download-from-CA-certificates.patch Don't download from CA certificates
Use Debian files at /etc/ssl/certs/ca-certificates.crt
YOKOTA Hiroshi <yokota.hgml@gmail.com> no 2023-02-19
0026-Don-t-download-translation-files-from-GitHub.patch Don't download translation files from GitHub YOKOTA Hiroshi <yokota.hgml@gmail.com> no 2023-02-19
0027-Use-text-file-instead-of-BZip2-compressed-file.patch Use text file instead of BZip2 compressed file YOKOTA Hiroshi <yokota.hgml@gmail.com> no 2023-02-20
0028-TypeError-HistoryLineEdit.__init__-got-an-unexpected.patch TypeError: HistoryLineEdit.__init__() got an unexpected keyword argument 'parent' (Closes: #1032095)

Use parameter name "parent" for the function call with named parameters.
Var args call doesn't handle named parameters.
YOKOTA Hiroshi <yokota.hgml@gmail.com> no 2023-02-28
0029-ERROR-Unhandled-exception-when-opening-Settings-Savi.patch "ERROR: Unhandled exception" when opening Settings > Saving Books to disk (Closes: #1041779)


Click "Preferences->Import/Export->Sending Books to disk" to
reproduce the error.

This is mostly same case of Debian bug 1034089 and 1032095.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1034089
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032095
YOKOTA Hiroshi <yokota.hgml@gmail.com> not-needed 2023-04-09
0030-fix-crash-in-Get-Books-when-regenerating-UIC-files-C.patch fix crash in Get Books when regenerating UIC files (Closes: #1053899)


Current versions of PyQt seem to generate code incompatible with our
class definition:

```
Traceback (most recent call last):
File "/home/eschwartz/git/calibre/src/calibre/gui2/actions/store.py", line 49, in do_search
return self.search()
^^^^^^^^^^^^^
File "/home/eschwartz/git/calibre/src/calibre/gui2/actions/store.py", line 55, in search
sd = SearchDialog(self.gui, self.gui, query)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/eschwartz/git/calibre/src/calibre/gui2/store/search/search.py", line 38, in __init__
self.setupUi(self)
File "/home/eschwartz/git/calibre/src/calibre/gui2/store/search/search_ui.py", line 84, in setupUi
self.results_view = ResultsView(parent=self.verticalLayoutWidget)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```

The issue is that arguments forwarded to the PyQt class are now being
generated using keyword arguments rather than non-keyword args. As a
direct wrapper over a class belonging to another project, we really
should forward both types just in case.
Eli Schwartz <eschwartz93@gmail.com> not-needed debian backport, https://github.com/kovidgoyal/calibre/commit/f4fe3f254d3de0dd51722b3b5e08112ae82ebf51 2023-09-27
0031-HTML-Input-Dont-add-resources-that-exist-outside-the.patch HTML Input: Don't add resources that exist outside the folder hierarchy rooted at the parent folder of the input HTML file by default


Fix for CVE-2023-46303
Kovid Goyal <kovid@kovidgoyal.net> not-needed debian backport, https://github.com/kovidgoyal/calibre/commit/bbbddd2bf4ef4ddb467b0aeb0abe8765ed7f8a6b.patch 2023-05-28

All known versions for source package 'calibre'

Links