Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 676664

Summary: app-text/calibre does not show cover images and can't obtain them
Product: Gentoo Linux Reporter: Paweł Ciechomski <ciechomke>
Component: Current packagesAssignee: Ian Stakenvicius <axs>
Status: UNCONFIRMED ---    
Severity: normal CC: zmedico
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: Point no 1 and 2
Log from built in cover lookup tool
emerge --info

Description Paweł Ciechomski 2019-01-28 21:15:35 UTC
Created attachment 563140 [details]
Point no 1 and 2

Calibre in every available version has some problems with displaying covers.
1. It show generic Calibre cover in main window instead of the one used in book, cover is even without title and author.
2. Generating cover in calibre does nothing - new cover is not generated, always shows generic one.
3. Obtaining covers also does not work. Log says that it found covers and download them but it does not show them.

For me looks like some missing image processing related dependency since same versions works perfecly for me on other distros.
Comment 1 Paweł Ciechomski 2019-01-28 21:17:11 UTC
Created attachment 563142 [details]
Log from built in cover lookup tool
Comment 2 Paweł Ciechomski 2019-01-28 21:18:11 UTC
Created attachment 563144 [details]
emerge --info
Comment 3 Paweł Ciechomski 2019-02-02 09:01:54 UTC
Spend some time analyzing Calibre code and finally found a solution.
Calibre uses PyQt5 with USE=gui necessary to install. This flag pulls dev-qt/qtgui but Calibre ebuild does not enforce user to set USE=jpeg to dev-qt/qtgui which is needed to display and generate images, because Calibre uses QtImageWriter class and internally operates on jpeg images.

Adding USE=jpeg to dev-qt/qtgui solves the problem, tested on stable and newest version available in official overlay.

Proposed fix: require USE=jpeg for dev-qt/qtgui in Calibre ebuild