The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / iotop / 0001-Fix-build-error-with-Python-3.patch
1 Status: upstream
2 http://repo.or.cz/w/iotop.git/commit/99c8d7cedce81f17b851954d94bfa73787300599
3
4 Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
5
6 From 99c8d7cedce81f17b851954d94bfa73787300599 Mon Sep 17 00:00:00 2001
7 From: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
8 Date: Fri, 17 Oct 2014 13:49:31 +0200
9 Subject: [PATCH] Fix build error with Python 3 caused by itervalues() in
10  setup.py
11
12 The itervalues() method is not available in Python 3. As a
13 consequence, this patch replaces the call to itervalues() in setup.py
14 with a call to values() which works on both Python 2 and Python 3.
15
16 Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
17 Signed-off-by: Paul Wise <pabs3@bonedaddy.net>
18 ---
19  setup.py | 2 +-
20  1 file changed, 1 insertion(+), 1 deletion(-)
21
22 diff --git a/setup.py b/setup.py
23 index 7150102..9de6068 100755
24 --- a/setup.py
25 +++ b/setup.py
26 @@ -7,7 +7,7 @@ from iotop.version import VERSION
27  # Dirty hack to make setup.py install the iotop script to sbin/ instead of bin/
28  # while still honoring the choice of installing into local/ or not.
29  if hasattr(distutils_install, 'INSTALL_SCHEMES'):
30 -    for d in distutils_install.INSTALL_SCHEMES.itervalues():
31 +    for d in distutils_install.INSTALL_SCHEMES.values():
32          if d.get('scripts', '').endswith('/bin'):
33              d['scripts'] = d['scripts'][:-len('/bin')] + '/sbin'
34  
35 -- 
36 2.1.4
37