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

Bug 343879

Summary: PWD env variable breaks configure
Product: [Tools] CDT Reporter: Doug Schaefer <cdtdoug>
Component: cdt-autotoolsAssignee: Jeff Johnston <jjohnstn>
Status: CLOSED FIXED QA Contact: Jeff Johnston <jjohnstn>
Severity: normal    
Priority: P3 CC: akurtakov, cdtdoug
Version: 8.1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Proposed fix. none

Description Doug Schaefer CLA 2011-04-26 11:55:46 EDT
For some reason, $PWD (and CWD) is defined automatically for new build configurations. This confuses the hell out of configure which declares the build environment insane. By undefining PWD in the settings, things are fine.

There is probably a way to undefine this env var in your config. I'll also pursue turning off these by default in the cdt-dev list. I can't remember why they are there to begin with other than some old version of make that needed them, or something.
Comment 1 Doug Schaefer CLA 2011-05-26 14:21:40 EDT
From other bug:

(In reply to comment #5)
> (In reply to comment #4)
> > Ah, there we go. I did a pull and have the updated source.
> > 
> > The only thing left is to filter out the PWD environment variable when calling
> > the script. configure still fails because of that.
> 
> Do you have a patch for this?  Is it simply to filter out PWD in the
> environment list loop when the tests that you added for using the runScript are
> true?  It's cutting it close for Indigo as RC2 is already out.  You have
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=343879 open for the PWD issue

Ah, too many things going on at once :). Yes it is as simple as filtering out in the loop. And we'll look to post Indigo to turn it off for everyone.

I think it is pretty important to get this fix into Indigo. Configure is run when you create the project and it spits out an error. Not a good experience.

Thanks, Jeff!
Comment 2 Jeff Johnston CLA 2011-05-26 14:57:24 EDT
Created attachment 196697 [details]
Proposed fix.

I have attached a proposed fix for this problem.  Please try it out ASAP and let me know.  Please try using some of the autotools commands from the Project menu to ensure they aren't busted by the change.  If all works, I'll check it in right away.
Comment 3 Doug Schaefer CLA 2011-05-26 19:44:57 EDT
Looks good. And works! Thanks, Jeff.
Comment 4 Jeff Johnston CLA 2012-07-19 17:31:02 EDT
Closing.