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

Bug 607280

Summary: net-misc/openvswitch-2.6.1 : make[2]: *** [Makefile:5633: flake8-check] Error 1
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Tiziano Müller (RETIRED) <dev-zero>
Status: RESOLVED FIXED    
Severity: normal CC: prometheanfire, virtualization
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
config.log
emerge-history.txt
environment
etc.portage.tbz2
net-misc:openvswitch-2.6.1:20170126-085547.log

Description Toralf Förster gentoo-dev 2017-01-26 09:05:33 UTC
python/ovs/unixctl/__init__.py:89:1: E305 expected 2 blank lines after class or function definition, found 1
vtep/ovs-vtep:755:1: E305 expected 2 blank lines after class or function definition, found 1
make[2]: *** [Makefile:5633: flake8-check] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-misc/openvswitch-2.6.1/work/openvswitch-2.6.1'

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named desktop-unstable_20170121-000413) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *
llvm-config --version:
3.9.1
Available Java Virtual Machines:
  [1]   icedtea-7 
  [2]   icedtea-bin-7 
  [3]   icedtea-bin-8  system-vm
Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 7.2.6.8 [icedtea-7]
2)	IcedTea JDK 7.2.6.8 [icedtea-bin-7]
*)	IcedTea JDK 3.2.0 [icedtea-bin-8]
  -----------------------------------------------------------------
Comment 1 Toralf Förster gentoo-dev 2017-01-26 09:05:36 UTC
Created attachment 461486 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-01-26 09:05:40 UTC
Created attachment 461488 [details]
config.log
Comment 3 Toralf Förster gentoo-dev 2017-01-26 09:05:45 UTC
Created attachment 461490 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-01-26 09:05:48 UTC
Created attachment 461492 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-01-26 09:05:51 UTC
Created attachment 461494 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-01-26 09:05:54 UTC
Created attachment 461496 [details]
net-misc:openvswitch-2.6.1:20170126-085547.log
Comment 7 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2017-01-26 17:29:52 UTC
I can't reproduce this.

:|

but I think I know what may help, can you test this change?

in the src_configure section, after the 'export ovs_cv_pyuic4="no"' line, add this

if ! use test; then
  export ovs_cv_flake8="no"
fi
Comment 8 Toralf Förster gentoo-dev 2017-01-26 19:17:44 UTC
(In reply to Matthew Thode ( prometheanfire ) from comment #7)
that and adding "test" to IUSE solved the configure problem :-)

(till this ofc :
checking for kernel version... 4.9.6
configure: error: Linux kernel in /lib/modules/4.9.6-gentoo/build is version 4.9.6, but version newer than 4.8.x is not supported (please refer to the FAQ for advice)
)
Comment 9 Larry the Git Cow gentoo-dev 2019-04-13 17:08:20 UTC
The bug has been closed via the following commit(s):

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

commit c3a6916d243821f098999d78ba14c1b515226fd0
Author:     Tiziano Müller <dev-zero@gentoo.org>
AuthorDate: 2019-04-13 17:07:58 +0000
Commit:     Tiziano Müller <dev-zero@gentoo.org>
CommitDate: 2019-04-13 17:07:58 +0000

    net-misc/openvswitch: never run flake8
    
    Closes: https://bugs.gentoo.org/607280
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Tiziano Müller <dev-zero@gentoo.org>

 net-misc/openvswitch/openvswitch-2.10.1-r1.ebuild | 4 ++++
 1 file changed, 4 insertions(+)