Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385201 - sys-devel/auto{conf,make}-wrapper: fails when called from Eclipse with autotools support
Summary: sys-devel/auto{conf,make}-wrapper: fails when called from Eclipse with autoto...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-01 15:16 UTC by Florian Philipp
Modified: 2011-10-02 19:51 UTC (History)
0 users

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


Attachments
Patch for ac-wrapper.sh (ac-wrapper_scriptname.patch,2.27 KB, patch)
2011-10-01 15:16 UTC, Florian Philipp
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Philipp 2011-10-01 15:16:10 UTC
The autotools support from Eclipse does not work in Gentoo due to the way it calls external tools. It executes for example `sh autoconf`. By doing this, the $0 variable within the ac-wrapper.sh script is not set to /usr/bin/autoconf, as expected, but simply reads "autoconf". The script is not able to handle this.


Reproducible: Always

Steps to Reproduce:
1. Use Eclipse CDT with Eclipse Linux Tools
2. Create a new project from the Hello "World C++ Autotools Project" template
3. Try to build it.
Actual Results:  
Invoking autoconf in /home/lars/workspace/testAutotools

sh autoconf
ac-wrapper: Unable to locate any usuable version of autoconf.
    I tried these versions: 2.99:2.5 2.98:2.5 2.97:2.5 2.96:2.5 2.95:2.5 2.94:2.5 2.93:2.5 2.92:2.5 2.91:2.5 2.90:2.5 2.89:2.5 2.88:2.5 2.87:2.5 2.86:2.5 2.85:2.5 2.84:2.5 2.83:2.5 2.82:2.5 2.81:2.5 2.80:2.5 2.79:2.5 2.78:2.5 2.77:2.5 2.76:2.5 2.75:2.5 2.74:2.5 2.73:2.5 2.72:2.5 2.71:2.5 2.70:2.5 2.69:2.5 2.68:2.5 2.67:2.5 2.66:2.5 2.65:2.5 2.64:2.5 2.63:2.5 2.62:2.5 2.61:2.5 2.60:2.5 2.59:2.5  2.13:2.1
    With a base name of 'autoconf'.
Comment 1 Florian Philipp 2011-10-01 15:16:57 UTC
Created attachment 288447 [details, diff]
Patch for ac-wrapper.sh
Comment 2 SpanKY gentoo-dev 2011-10-02 19:39:21 UTC
should be all set now in the tree; thanks for the report!

Commit message: Optimize version lookup a bit, and handle the case where $0 is not a full path
http://sources.gentoo.org/sys-devel/autoconf-wrapper/autoconf-wrapper-12.ebuild?rev=1.1
http://sources.gentoo.org/sys-devel/autoconf-wrapper/files/ac-wrapper-12.sh?rev=1.1
Comment 3 SpanKY gentoo-dev 2011-10-02 19:51:31 UTC
should be all set now in the tree; thanks for the report!

Commit message: Optimize version lookup a bit, and handle the case where $0 is not a full path
http://sources.gentoo.org/sys-devel/automake-wrapper/automake-wrapper-6.ebuild?rev=1.1
http://sources.gentoo.org/sys-devel/automake-wrapper/files/am-wrapper-6.sh?rev=1.1