Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415623 - emerge-delta-webrsync-3.5.1-r3 fails when run with python 3 set default
Summary: emerge-delta-webrsync-3.5.1-r3 fails when run with python 3 set default
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2012-05-12 20:44 UTC by ncahill_alt
Modified: 2012-05-15 01:22 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ncahill_alt 2012-05-12 20:44:14 UTC
In python 3, the print statement is now a function.  Emerge-delta-webrsync uses the print statement in line 11, here is the fixed line:

f=$(python3 -c'import portage; print("|".join([portage.settings[x] for x in ("PORTAGE_NICENESS", "FEATURES", "GENTOO_MIRRORS", "PORTDIR", "FETCHCOMMAND", "USERLAND", "DISTDIR", "PORTAGE_TMPDIR")]))')

Currently, it uses the print statement instead and calls "python", which if set to 3 by default, expects the print function.  It is a simple matter of s/python/python3 and one extra pair of ()'s.

Thank you.
Neil.

Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2012-05-15 01:22:24 UTC
I've made the ebuild patch it to use sys.stdout instead of print.