Adding --list-fixes to the 2to3 call reveals only this change. I think it's no longer needed. --- /tmp/portage/sys-process/iotop-0.6/work/iotop-0.6-python3_2/scripts/iotop (original) +++ /tmp/portage/sys-process/iotop-0.6/work/iotop-0.6-python3_2/scripts/iotop (refactored) @@ -3,7 +3,7 @@ # Copyright (c) 2007, 2008 Guillaume Chazarain <guichaz@gmail.com>, GPLv2 # See iotop --help for some help -from __future__ import print_function + import sys try: corresponding NEWS entry 2013-02-04 Paul Wise <pabs3@bonedaddy.net> * sbin/iotop: Fix python3 compatibility for iotop when installed
unfortunately, the setup.py fails with python3, dict.itervalues no longer exists and it should be safe to just call values instead. python2 dict.values is no iterator, but that shouldn't hurt. --- iotop-0.5-r1.ebuild 2013-02-06 21:22:11.000000000 +0100 +++ iotop-0.6.ebuild 2013-06-16 23:35:46.203349062 +0200 @@ -25,9 +25,14 @@ linux-info_pkg_setup } +src_prepare() { + sed -e 's:itervalues:values:' \ + -i setup.py || die +} + python_install() { if [[ ${EPYTHON} == *python3* ]]; then - 2to3 -w -n "${BUILD_DIR}"/scripts/${PN} || die + 2to3 -w -n --list-fixes "${BUILD_DIR}"/scripts/${PN} || die fi distutils-r1_python_install --install-scripts="${EPREFIX}"/usr/sbin }
+*iotop-0.6 (18 Jun 2013) + + 18 Jun 2013; Justin Lecher <jlec@gentoo.org> +iotop-0.6.ebuild, + +files/iotop-0.6-setup.py3.patch: + Version Bump, #473528 +