Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313754

Summary: AutotoolsNewMakeGenerator.getConfigurePath doesn't account for ""ed args after configure
Product: z_Archived Reporter: Jon Beniston <jon>
Component: AutotoolsAssignee: Jeff Johnston <jjohnstn>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 0.6   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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.