Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489716 - dev-python/python-exec-2.0-r2 ebuild tampers with the VDB
Summary: dev-python/python-exec-2.0-r2 ebuild tampers with the VDB
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-29 08:22 UTC by Ulrich Müller
Modified: 2013-10-30 19:25 UTC (History)
3 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 Ulrich Müller gentoo-dev 2013-10-29 08:22:26 UTC
From the ebuild:

    local f files=()
    for f in "${EROOT%/}"/var/db/pkg/*/*/*DEPEND; do
        if grep -q 'dev-python/python-exec\[' "${f}"; then
            files+=( "${f}" )
        fi
    done

    if [[ ${files[@]} ]]; then
        ebegin "Fixing unslotted python-exec dependencies in installed packages"
        sed -i -e 's,dev-python/python-exec\[,dev-python/python-exec:0[,g' \
            "${files[@]}"
        eend ${?}

        # touch packages, categories and vardb. suggested by Arfrever.
        touch "${files[@]%/*}" "${files[@]%/*/*}" "${EROOT%/}"/var/db/pkg
    fi

Accessing the VDB from an ebuild is explicitly forbidden by PMS.
Comment 1 Ulrich Müller gentoo-dev 2013-10-29 08:46:17 UTC
And apparently, this "fix" doesn't even work. See bug 489440.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-10-30 19:25:07 UTC
dev-lang/python-exec no longer uses this hack.