Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106997 - check_license from eutils.eclass fails to find the license
Summary: check_license from eutils.eclass fails to find the license
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-23 07:09 UTC by Vasudeva Martin
Modified: 2005-09-23 13:44 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 Vasudeva Martin 2005-09-23 07:09:52 UTC
I'm using Portage 2.0.51.22-r2
The check_license function failed to find the license.
After changing something in the eutils file it works fine.
Here is the corrected part of the check_license() function:
<check_license()>
if [ -z "${lic}" ] ; then
        lic="${PORTDIR}/licenses/${LICENSE}"
    else
        if [ -e "${PORTDIR}/licenses/${lic}" ] ; then
            lic="${PORTDIR}/licenses/${lic}"
        elif [ -e "${PWD}/${lic}" ] ; then
            lic="${PWD}/${lic}"
        elif [ -e "${lic}" ] ; then
            lic="${lic}"
        fi
    fi
    [ ! -f "${lic}" ] && die "Could not find requested license ${lic}"
</check_license()>
In the original sourcecode there is instead of ${lic} ${src} in many places.
I don't know if all my replacement's are neccesary, but I know that
check_license can find the license with this version.
Comment 1 Brian Harring (RETIRED) gentoo-dev 2005-09-23 11:42:25 UTC
Not a portage bug, goes to the eclass authors
Comment 2 SpanKY gentoo-dev 2005-09-23 13:19:45 UTC
the code you posted is already in eutils.eclass

no real info here though as to what the bug is
Comment 3 SpanKY gentoo-dev 2005-09-23 13:21:00 UTC
err, the die message is different (you correctly use $lic instead of $src), but
otherwise the code appears to be the same
Comment 4 SpanKY gentoo-dev 2005-09-23 13:22:19 UTC
actually i see your point

in the future, post a diff, otherwise it's hard to figure out what's changed
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2005-09-23 13:44:59 UTC
Fixed in CVS... guess I missed one when I changed them...