Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484420 - dev-python/wxpython: does magic on top of Python script wrapping
Summary: dev-python/wxpython: does magic on top of Python script wrapping
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 484398
  Show dependency tree
 
Reported: 2013-09-09 21:38 UTC by Michał Górny
Modified: 2019-07-05 19:20 UTC (History)
2 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-09-09 21:38:32 UTC
python_install() {
#...
    cd "${ED}"usr/bin || die
    for file in *-"${EPYTHON}"; do
        local wrapper=${file%-${EPYTHON}}

        mv "${file}" "${file/-/-${SLOT}-}" || die

        # wrappers are common to all impls, so a parallel run may
        # move it for us. ln+rm is more failure-proof.
        ln -fs python-exec "${wrapper}-${SLOT}" || die
        rm -f "${wrapper}"
    done
}

Yeah, I know it's my fault. Please keep this open, I'll either try to do it in a less hacky way or just make sure to fix the ebuild if we change wrapping method.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-09-17 20:46:33 UTC
FYI: I've forced python-exec:0 in the ebuild now. We will probably revisit this near python-exec:2 going stable, so please keep the bug open.