Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431056 - sys-apps/pkgcore-0.8 - installation fails with dev-lang/python-3.2 due to use of dict.iteritems and dict.itervalues in setup.py
Summary: sys-apps/pkgcore-0.8 - installation fails with dev-lang/python-3.2 due to use...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Brian Harring (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
: 430130 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-12 09:45 UTC by Arne Babenhauserheide
Modified: 2012-10-18 11:54 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pkgcore-0.8-replace-itervalues-py3.patch (pkgcore-0.8-replace-itervalues-py3.patch,835 bytes, patch)
2012-08-12 09:48 UTC, Arne Babenhauserheide
Details | Diff
pkgcore-0.8-r1.ebuild (pkgcore-0.8-r1.ebuild,1.09 KB, text/plain)
2012-08-12 09:48 UTC, Arne Babenhauserheide
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arne Babenhauserheide 2012-08-12 09:45:21 UTC
Emerging pkgcore during installation on a brand new Gentoo system fails, 
due to python 3.2 being default in 2to3 not converting
dict.iteritems and dict.itervalues to dict.items and dict.values.

The to-be-attached patch and updated ebuild fix installation.
Comment 1 Arne Babenhauserheide 2012-08-12 09:48:43 UTC
Created attachment 321086 [details, diff]
pkgcore-0.8-replace-itervalues-py3.patch

patch setup.py to work with python 3.2.
Comment 2 Arne Babenhauserheide 2012-08-12 09:48:53 UTC
Created attachment 321088 [details]
pkgcore-0.8-r1.ebuild
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-12 15:35:20 UTC
Comment on attachment 321088 [details]
pkgcore-0.8-r1.ebuild

--- pkgcore-0.8.ebuild  2012-08-05 07:49:06.000000000 +0200
+++ -   2012-08-12 17:35:14.625723720 +0200
@@ -30,6 +30,10 @@
        python_pkg_setup
 }
 
+src_prepare() {
+       epatch ${FILESDIR}/${PN}-${PV}-replace-itervalues-py3.patch
+}
+
 src_compile() {
        distutils_src_compile $(use_enable doc html-docs)
 }
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2012-08-18 16:22:24 UTC

*** This bug has been marked as a duplicate of bug 430130 ***
Comment 5 Brian Harring (RETIRED) gentoo-dev 2012-10-15 07:30:56 UTC
*** Bug 430130 has been marked as a duplicate of this bug. ***
Comment 6 ewomer 2012-10-17 02:01:36 UTC
I still get the same error with this patch. It has done nothing to help my situation. Also this bug has nothing to do with a new install or old of gentoo.
Comment 7 Rick Farina (Zero_Chaos) gentoo-dev 2012-10-18 04:19:40 UTC
Would anyone be horribly offended if I added this to the ebuild?

pkg_setup() {
        python_set_active_version 2
        python_pkg_setup
}

It would be awesome if the only versions of pkgcore left in the tree were actually able to install...
Comment 8 Brian Harring (RETIRED) gentoo-dev 2012-10-18 11:54:16 UTC
releasing shortly.