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

Bug 602936

Summary: net-misc/openvswitch-2.6.0 fails on Python 3.4
Product: Gentoo Linux Reporter: Yaroslav Isakov <yaroslav.isakov>
Component: Current packagesAssignee: Tiziano Müller (RETIRED) <dev-zero>
Status: RESOLVED DUPLICATE    
Severity: normal CC: prometheanfire, virtualization
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Yaroslav Isakov 2016-12-17 16:34:13 UTC
OVS 2.6.0 cannot be build if system python is of version 3. It looks like ovsdb/ovsdb-idlc.in is not python3-ready, because it's using print statements instead of e.g. six.print_:
PYTHONPATH=./python":"$PYTHONPATH PYTHONDONTWRITEBYTECODE=yes /bin/sh /var/tmp/portage/net-misc/openvswitch-2.6.0/work/openvswitch-2.6.0/build-aux/missing python ./ovsdb/ovsdb-idlc.in annotate ./ovn/ovn-nb.ovsschema ./ovn/lib/ovn-nb-idl.ann > ovn/lib/ovn-nb-idl.ovsidl.tmp && \
mv ovn/lib/ovn-nb-idl.ovsidl.tmp ovn/lib/ovn-nb-idl.ovsidl
  File "./ovsdb/ovsdb-idlc.in", line 135
    #include "uuid.h"''' % {'prefix': prefix.upper()}
                       ^
SyntaxError: invalid syntax
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2016-12-22 16:14:35 UTC
I assume this fails in 2.6.0-r2 as well?
Comment 2 Yaroslav Isakov 2016-12-31 03:59:59 UTC
Sorry, I cannot install 2.6.0-r2 because of new dependencies (I do not want to build whole Qt4), but I've checked the differences between two ebuilds and found bug #596206, which is pretty the same as mine. So, closing this one as a duplicate. Shame that I tried to find similar bugs before but failed...

*** This bug has been marked as a duplicate of bug 596206 ***