Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 567084 - eclass/python-utils-r1.eclass - latest changes break dev-lang/python-2.7: die "python_do* and python_new* helpers are banned in EAPIs older than 5."
Summary: eclass/python-utils-r1.eclass - latest changes break dev-lang/python-2.7: die...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 567088 567106 567150 570744 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-11-29 07:59 UTC by Matthias Maier
Modified: 2016-01-03 19:53 UTC (History)
8 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Maier gentoo-dev 2015-11-29 07:59:18 UTC
commit a2c3f26426b435b090b19057d52ceec5364b19ed
Author: Michał Górny <mgorny@gentoo.org>
Date:   Wed Nov 18 20:41:29 2015 +0100

    python-utils-r1.eclass: Ban installation helpers in EAPIs < 5
    
    Ban python_do* and python_new* helpers in EAPIs older than 5. We should
    ban them in python-any-r1 uses, actually but that would break
    dev-python/pypy* ebuilds as they are written now.


breaks currently stable dev-lang/python-2.7 - this ebuild is EAPI=4 and uses said functions:


 * ERROR: dev-lang/python-2.7.10-r1::gentoo failed (install phase):
 *   python_do* and python_new* helpers are banned in EAPIs older than 5.
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 4163:  Called python_domodule 'epython.py'
 *   environment, line 3337:  Called die
 * The specific snippet of code:
 *           die "python_do* and python_new* helpers are banned in EAPIs older than 5.";
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-11-29 08:20:24 UTC
My thinko. That was supposed to be '< 4'.
Comment 2 Rafał Mużyło 2015-11-29 13:48:56 UTC
*** Bug 567088 has been marked as a duplicate of this bug. ***
Comment 3 Mike DeSimone 2015-11-29 15:05:44 UTC
I'm having the same install failure while attempting to update dev-lang/python-2.7.10-r1. If a fix has been distributed, it's probably being blocked by bug #567074 which I'm also seeing.
Comment 4 Mike Gilbert gentoo-dev 2015-11-30 00:45:36 UTC
*** Bug 567106 has been marked as a duplicate of this bug. ***
Comment 5 Tomáš Mózes 2015-11-30 11:34:07 UTC
*** Bug 567150 has been marked as a duplicate of this bug. ***
Comment 6 thanasis 2015-12-02 18:33:47 UTC
So, what's the fix, since Status is marked as "SOLVED FIXED" ?
Comment 7 Mike Gilbert gentoo-dev 2015-12-02 19:01:40 UTC
(In reply to thanasis from comment #6)
> So, what's the fix, since Status is marked as "SOLVED FIXED" ?

You can look at the commit log for python-utils-r1.eclass to determine that.
Comment 8 thanasis 2015-12-02 19:39:02 UTC
Where do I find the commit log for python-utils-r1.eclass ?
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-12-02 20:00:51 UTC
(In reply to thanasis from comment #6)
> So, what's the fix, since Status is marked as "SOLVED FIXED" ?

  rm -r /usr/portage/.git
  emerge --sync

Most likely.
Comment 10 Mike Gilbert gentoo-dev 2015-12-02 20:01:11 UTC
(In reply to thanasis from comment #8)
> Where do I find the commit log for python-utils-r1.eclass ?

In git.

https://gitweb.gentoo.org/repo/gentoo.git/log/eclass/python-utils-r1.eclass
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-01-03 19:53:21 UTC
*** Bug 570744 has been marked as a duplicate of this bug. ***