Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183977 - genshi-0.4.2 build broken w/ python-2.5
Summary: genshi-0.4.2 build broken w/ python-2.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on: 184039
Blocks: python-2.5
  Show dependency tree
 
Reported: 2007-07-02 13:37 UTC by Gergan Penkov
Modified: 2007-07-04 15:56 UTC (History)
0 users

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 Gergan Penkov 2007-07-02 13:37:34 UTC
src_unpack() {
        unpack ${A}
        cd "${S}"

        sed -i \
                -e '/extras_require/, /},/d' \
                setup.py || die "sed failed"
}
breaks genshi on python-2.5 in the following manner:
Genshi-0.4.2-py2.5.egg-info # cat entry_points.txt 

    [babel.extractors]
    genshi = genshi.filters.i18n:extract[i18n]
    
    [python.templating.engines]
    genshi = genshi.template.plugin:MarkupTemplateEnginePlugin[plugin]
    genshi-markup = genshi.template.plugin:MarkupTemplateEnginePlugin[plugin]
    genshi-text = genshi.template.plugin:TextTemplateEnginePlugin[plugin]

with the portage ebuild there is no feature called plugin, because of the sed expression, which removes the requires. This breaks at least turbogears with python-2.5 (tg-admin just spits that the feature plugin does not exists in Genshi). Removing the whole src_unpack leads to a correct requires file:

[i18n]
Babel>=0.8

[plugin]
setuptools>=0.6a2

and tg-admin works. So the question is, is this sed at all needed on python-2.4, and if yes probably stop running it on python-2.5.
Comment 1 Rob Cakebread (RETIRED) gentoo-dev 2007-07-04 15:56:25 UTC
Thanks for the report, Gergan.

The seds are all being removed as they are no longer needed due to a change in setuptools. Fixed in genshi-0.4.2-r1