patchGNU Autoconf Archive - Patches: patch #7673, AX_BOOST_PYTHON should use quotes...

 
 

patch #7673: AX_BOOST_PYTHON should use quotes when setting CPPFLAGS

Submitter:  None
Submitted:  Mon 21 Nov 2011 04:06:16 PM UTC
   
 
Priority:  5 - Normal Status:  Done
Assigned to:  simons Originator Email:  -email is unavailable-
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 21 Nov 2011 06:39:32 PM UTC, comment #1: 

Your patch has been pushed to the Git repository in commit 2fca6b72c6a18efd00712c185f22efb4d61c725c. Thank you very much for the bug fix!

Peter Simons <simons>
Group administrator
Mon 21 Nov 2011 04:06:16 PM UTC, original submission:  

Hello!  AX_BOOST_PYTHON does not use quotes when setting CPPFLAGS, which can cause problems if CPPFLAGS is already defined to something.  For example:

1) Imagine CPPFLAGS starts as "-DTEST=1 -DTEST=2"
2) "CPPFLAGS_SAVE=$CPPFLAGS" will expand to "CPPFLAGS_SAVE=-DTEST=1 -DTEST=2" which will try to run the program "-DTEST=2" with a temporary CPPFLAG_SAVE environment variable.

1) Imagine CPPFLAGS starts as "-DTEST=1"
2) You'll get past the previous problem because CPPFLAGS is only one word.
3) But "CPPFLAGS=-I$PYTHON_INCLUDE_DIR $CPPFLAGS" will expand to something like "CPPFLAGS=-I/usr/include/python2.7 -DTEST=1" and you hit the same issue again.  The program "-DTEST=1" will not be found.

The attached patch fixes AX_BOOST_PYTHON for me.  A quick grep showed that some other macros might be affected too, so you might want to do a general check.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #24414:  ax_boost_python.diff added by None (848B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by simons (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-12-02 simons StatusReady For Test Done
        Open/ClosedOpen Closed
    2011-11-21 simons StatusNone Ready For Test
        Assigned toNone simons
    2011-11-21 None Attached File- Added ax_boost_python.diff, #24414

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code