Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72360 - autoconfig doesnt always work
Summary: autoconfig doesnt always work
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-11-24 09:12 UTC by SpanKY
Modified: 2005-03-22 20:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild.sh.autoconfig.patch (ebuild.sh.autoconfig.patch,874 bytes, patch)
2004-11-24 09:14 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2004-11-24 09:12:29 UTC
the current code in econf is this:
for x in $(find ${S} -type f -name config.guess -o -name config.sub) ; do
    einfo "econf: updating $x with /usr/share/gnuconfig/$(/bin/basename ${x})"
    cp /usr/share/gnuconfig/$(/bin/basename ${x}) ${x}
done

that should run find on ${WORKDIR} instead of ${S}

also, as a graphical nitpick, it should do 'updating ${x/${WORKDIR}\/}' instead of 'updating $x'
that way you dont get things like:
 * econf: updating /var/tmp/portage/module-init-tools-3.1/work/module-init-tools-3.1/config.guess with /usr/share/gnuconfig/config.guess
it'd look like this instead:
 * econf: updating module-init-tools-3.1/config.guess with /usr/share/gnuconfig/config.guess
Comment 1 SpanKY gentoo-dev 2004-11-24 09:14:11 UTC
Created attachment 44649 [details, diff]
ebuild.sh.autoconfig.patch

i think this should do it (didnt test though :P)
Comment 2 solar (RETIRED) gentoo-dev 2004-12-12 09:20:57 UTC
We should probably make the 'einfo' in this area of code use 'echo' something like

+ echo ">>> autoconfig: updating ${x/${WORKDIR}\/} with /usr/share/gnuconfig/$(/bin/basename ${x})"
Comment 3 SpanKY gentoo-dev 2005-03-22 20:49:34 UTC
this has been released