Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 758812 - app-text/calibre-5.6.0 emerge fails at install stage
Summary: app-text/calibre-5.6.0 emerge fails at install stage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ian Stakenvicius (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-06 17:26 UTC by FlyingWaffle
Modified: 2020-12-06 20:51 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info (calibre-5.6.0-emerge.info,8.33 KB, application/x-info)
2020-12-06 17:26 UTC, FlyingWaffle
Details
build.log (calibre-5.6.0-build.log,3.11 KB, text/x-log)
2020-12-06 17:26 UTC, FlyingWaffle
Details

Note You need to log in before you can comment on or make changes to this bug.
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(-)