Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492970 - Prevent infinite recursion using distutils-r1 eclass
Summary: Prevent infinite recursion using distutils-r1 eclass
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-30 19:03 UTC by Steev Klimaszewski (RETIRED)
Modified: 2018-02-27 10:20 UTC (History)
1 user (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 Steev Klimaszewski (RETIRED) gentoo-dev 2013-11-30 19:03:26 UTC
When using distutils-r1 I had accidentally done

python_install() {
  distutils-r1_src_install
  ..
}

this should be

python_install() {
  distutils-r1_python_install
  ..
}

When you do src_install it will cause infinite recursion and you will eventually OOM.

Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2013-11-30 19:15:05 UTC
As discussed in IRC, it should be simple enough to add some guard variables in some of the distutils-r1 functions.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-02-27 10:20:59 UTC
I still don't think this is worth the effort, and nobody has done any work on this for 4+ years.