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

Bug 658172

Summary: sys-apps/portage: FEATURES='network-sandbox' (on client) prevents distcc compilation with python2.7 (FEATURES=network-sandbox-proxy socks5-server.py requires python3.4)
Product: Portage Development Reporter: Daniel M. Weeks <dan>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=604474
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 658182    

Description Daniel M. Weeks 2018-06-15 15:22:51 UTC
/usr/lib/portage/python2.7/socks5-server.py /tmp/testing-socket
  File "/usr/lib/portage/python2.7/socks5-server.py", line 40
    data = yield from reader.readexactly(2)
                    ^
SyntaxError: invalid syntax

Reproducible: Always
Comment 1 Daniel M. Weeks 2018-06-15 15:23:29 UTC
Version 2.3.40-r1
Comment 2 Zac Medico gentoo-dev 2018-06-15 18:25:07 UTC
For now you have to use python3 if you want network-sandbox-proxy and distcc features to work with network-sandbox. You can use a setting like this in /etc/portage/package.use:

sys-apps/portage -python_targets_python2_7
Comment 3 Zac Medico gentoo-dev 2020-04-01 23:31:31 UTC
The bug has been referenced in the following commit(s):

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

commit 0a2c520e735f285a11e2486cb7b4fe1c8e4d0dac
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-03-19 09:52:09 +0100
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-03-19 10:41:00 +0100

    sys-apps/portage: Drop py2
    
    Signed-off-by: Michał Górny <mgorny@gentoo.org>