Bug#1041854: bookworm-pu: package calibre/6.13.0+repack-2+deb12u1

2023-07-24 Thread yokota
> Please go ahead.

Thank you, I uploaded the fixed package.

--
YOKOTA Hiroshi



Bug#1041854: bookworm-pu: package calibre/6.13.0+repack-2+deb12u1

2023-07-24 Thread Jonathan Wiltshire
Control: tag -1 confirmed

On Mon, Jul 24, 2023 at 10:19:20PM +0900, YOKOTA Hiroshi wrote:
> [ Impact ]
> Preferences dialog won't work

Please go ahead.

Thanks,

-- 
Jonathan Wiltshire  j...@debian.org
Debian Developer http://people.debian.org/~jmw

4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC  74C3 5394 479D D352 4C51
ed25519/0x196418AAEB74C8A1: CA619D65A72A7BADFC96D280196418AAEB74C8A1



Bug#1041854: bookworm-pu: package calibre/6.13.0+repack-2+deb12u1

2023-07-24 Thread YOKOTA Hiroshi
Package: release.debian.org
Severity: normal
Tags: bookworm
User: release.debian@packages.debian.org
Usertags: pu
X-Debbugs-Cc: cali...@packages.debian.org, yokota.h...@gmail.com
Control: affects -1 + src:calibre

[ Reason ]
To fix Debian bug 1041779
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1041779

[ Impact ]
Preferences dialog won't work

[ Tests ]
Manually reproduces this bug, and confirm to fixed the bug with this patch.

[ Risks ]
The fix is trivial.
This bug is already fixed in calibre/6.15.1-4 (Debian bug 1034089).

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

[ Changes ]
Fixes Python syntax mismatch.

[ Other info ]
The patch is taken from Debian unstable code.
  https://github.com/debian-
calibre/calibre/blob/debian/6.15.1-4/debian/patches/0027-TypeError-on-opening-
Preferences-Closes-1034089.patch

See also Debian bug 1034089.
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1034089

Attached debdiff can be examine from online.
  https://github.com/debian-
calibre/calibre/compare/debian/6.13.0+repack-2...debian/6.13.0+repack-2+deb12u1
diff --git a/debian/changelog b/debian/changelog
index e484562458..f758dc7971 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+calibre (6.13.0+repack-2+deb12u1) bookworm; urgency=medium
+
+  * "ERROR: Unhandled exception" when opening Settings > Saving Books to disk 
(Closes: #1041779)
+  * Rediff patches.
+Add reproduced error messages
+
+ -- YOKOTA Hiroshi   Mon, 24 Jul 2023 20:35:33 +0900
+
 calibre (6.13.0+repack-2) unstable; urgency=medium
 
   * Update lintian overrides
diff --git 
a/debian/patches/0029-ERROR-Unhandled-exception-when-opening-Settings-Savi.patch
 
b/debian/patches/0029-ERROR-Unhandled-exception-when-opening-Settings-Savi.patch
new file mode 100644
index 00..b942c4aff5
--- /dev/null
+++ 
b/debian/patches/0029-ERROR-Unhandled-exception-when-opening-Settings-Savi.patch
@@ -0,0 +1,57 @@
+From: YOKOTA Hiroshi 
+Date: Sun, 9 Apr 2023 14:50:50 +0900
+Subject: "ERROR: Unhandled exception" when opening Settings > Saving Books to
+ disk (Closes: #1041779)
+
+Forwarded: not-needed
+
+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
+
+
+calibre, version 6.13.0
+ERROR: Unhandled exception: TypeError:SaveTemplate.__init__() got an 
unexpected keyword argument 'parent'
+
+calibre 6.13  embedded-python: False
+Linux-6.3.0-2-amd64-x86_64-with-glibc2.37 Linux ('64bit', 'ELF')
+('Linux', '6.3.0-2-amd64', '#1 SMP PREEMPT_DYNAMIC Debian 6.3.11-1 
(2023-07-01)')
+Python 3.11.4
+Interface language: None
+Traceback (most recent call last):
+  File "/usr/lib/calibre/calibre/gui2/preferences/main.py", line 308, in 
show_plugin
+self.showing_widget = plugin.create_widget(self.scroll_area)
+  ^^
+  File "/usr/lib/calibre/calibre/customize/__init__.py", line 675, in 
create_widget
+return widget(parent)
+   ^^
+  File "/usr/lib/calibre/calibre/gui2/preferences/__init__.py", line 267, in 
__init__
+self.setupUi(self)
+  File "/usr/lib/calibre/calibre/gui2/preferences/saving_ui.py", line 46, in 
setupUi
+self.save_template = SaveTemplate(parent=Form)
+ ^
+TypeError: SaveTemplate.__init__() got an unexpected keyword argument 'parent'
+
+(the Preferences dialog does not open)
+---
+ src/calibre/gui2/preferences/save_template.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/calibre/gui2/preferences/save_template.py 
b/src/calibre/gui2/preferences/save_template.py
+index 82cf951..47d4510 100644
+--- a/src/calibre/gui2/preferences/save_template.py
 b/src/calibre/gui2/preferences/save_template.py
+@@ -18,8 +18,8 @@ class SaveTemplate(QWidget, Ui_Form):
+ 
+ changed_signal = pyqtSignal()
+ 
+-def __init__(self, *args):
+-QWidget.__init__(self, *args)
++def __init__(self, parent=None):
++QWidget.__init__(self, parent)
+ Ui_Form.__init__(self)
+ self.setupUi(self)
+ self.orig_help_text = self.help_label.text()
diff --git a/debian/patches/series b/debian/patches/series
index 651a3ce7be..ba0e98e8d3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -26,3 +26,4 @@
 0026-Don-t-download-translation-files-from-GitHub.patch
 0027-Use-text-file-instead-of-BZip2-compressed-file.patch
 0028-TypeError-HistoryLineEdit.__init__-got-an-unexpected.patch
+0029-ERROR-Unhandled-exception-when-opening-Settings-Savi.patch