Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313754 - AutotoolsNewMakeGenerator.getConfigurePath doesn't account for ""ed args after configure
Summary: AutotoolsNewMakeGenerator.getConfigurePath doesn't account for ""ed args afte...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Autotools (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.6   Edit
Assignee: Jeff Johnston CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-20 11:48 EDT by Jon Beniston CLA
Modified: 2010-05-21 16:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Beniston CLA 2010-05-20 11:48:28 EDT
Build Identifier: M20090917-0800

If I set the configure/Command option to, something like:

configure CC_FOR_TARGET="my-gcc -opt"

Then the code in AutotoolsNewMakeGenerator.getConfigurePath incorrectly parses the string into three parts:

 - configure
 - CC_FOR_TARGET="my-gcc 
 - -opt"

Rather than:

 - configure
 - CC_FOR_TARGET="my-gcc -opt"

It seems that the code that deals with environment variables before configure, handles "" values ok. E.g.

CC_FOR_TARGET="my-gcc -opt" configure 

Works.

Reproducible: Always
Comment 1 Jeff Johnston CLA 2010-05-21 16:37:15 EDT
(In reply to comment #0)
> Build Identifier: M20090917-0800
> 
> If I set the configure/Command option to, something like:
> 
> configure CC_FOR_TARGET="my-gcc -opt"
> 
> Then the code in AutotoolsNewMakeGenerator.getConfigurePath incorrectly parses
> the string into three parts:
> 
>  - configure
>  - CC_FOR_TARGET="my-gcc 
>  - -opt"
> 
> Rather than:
> 
>  - configure
>  - CC_FOR_TARGET="my-gcc -opt"
> 
> It seems that the code that deals with environment variables before configure,
> handles "" values ok. E.g.
> 
> CC_FOR_TARGET="my-gcc -opt" configure 
> 
> Works.
> 
> Reproducible: Always

Have fixed environment variable scraper to handle env vars that follow the command.  Fix is in trunk and will appear in next new nightly build and next linux tools release: 0.6.