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

Bug 758812

Summary: app-text/calibre-5.6.0 emerge fails at install stage
Product: Gentoo Linux Reporter: FlyingWaffle <flyingwaffle>
Component: Current packagesAssignee: Ian Stakenvicius (RETIRED) <axs>
Status: RESOLVED FIXED    
Severity: normal CC: flyingwaffle, jstein, zmedico
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge info
build.log

Description FlyingWaffle 2020-12-06 17:26:17 UTC
Created attachment 677080 [details]
emerge info

The latest version of Calibre fails emerging at the install phase.

Emerge info and build.log are attached.
Comment 1 FlyingWaffle 2020-12-06 17:26:46 UTC
Created attachment 677083 [details]
build.log
Comment 2 Zac Medico gentoo-dev 2020-12-06 20:36:29 UTC
In translations.py there's a format string that uses syntax which is apparently not supported by python3.7. Test case:

$ python3.8 -c 'slug = "foo"; print(f"{slug=}")'
slug='foo'
$ python3.7 -c 'slug = "foo"; print(f"{slug=}")'
  File "<fstring>", line 1
    (slug=)
         ^
SyntaxError: invalid syntax
Comment 3 Zac Medico gentoo-dev 2020-12-06 20:48:06 UTC
In src/calibre/utils/formatter.py it's also using the walrus := operator which is new in python3.8.
Comment 4 Larry the Git Cow gentoo-dev 2020-12-06 20:51:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cdcc33e0836d87f15073935a5268da1d27d4ac5

commit 0cdcc33e0836d87f15073935a5268da1d27d4ac5
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2020-12-06 20:50:27 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2020-12-06 20:51:12 +0000

    app-text/calibre: 5.6.0 requires at least python3.8
    
    Closes: https://bugs.gentoo.org/758812
    Package-Manager: Portage-3.0.11, Repoman-3.0.2
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 app-text/calibre/calibre-5.6.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)