bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #4492] cpp under OSX breacks .cplists by inserting #pragma at the s


From: nobody
Subject: [bug #4492] cpp under OSX breacks .cplists by inserting #pragma at the start
Date: Sat, 26 Jul 2003 12:04:49 -0400
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/85 (KHTML, like Gecko) Safari/85

=================== BUG #4492: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4492&group_id=99

Changes by: Pete French <pete@twisted.org.uk>
Date: Sat 07/26/2003 at 16:04 (GMT)

------------------ Additional Follow-up Comments ----------------------------
Arse - obviously the web submit has removed the indent tabs in the
last part of that! Please commit with appropriate tabs, thanks!



=================== BUG #4492: FULL BUG SNAPSHOT ===================


Submitted by: minusbat                Project: GNUstep                      
Submitted on: Sat 07/26/2003 at 16:03
Category:  Makefiles                  Severity:  5 - Major                  
Bug Group:  None                      Resolution:  None                     
Assigned to:  None                    Status:  Open                         

Summary:  cpp under OSX breacks .cplists by inserting #pragma at the start

Original Submission:  Processing of .cplist into .plist files on OSX is done 
using a line thus:

gcc -E -P -x c -traditional -DAPPLE xxx.cplist -o xxx.plist

The lateest version of cpp on OSX (gnu 3.3 based) inserts a #pragma
at the start of the resulting file. This looks liek:

#pragma GCC set_debug_pwd "/Users/pete/testapp"

The breaks the assumption made in the makefiles that the .plist file
will start with a single line '{' - which is then deleted using the 'sed 1d'
command. Thus the resulting .plist file in the application is invalid.

I cannt find an option to disable the insertion of the #pragma (nor any
reference as to why it is being inserted), so disabling the generation is
not that straightforward. It is, however, an easy matter to add a second
line of sed which will delete all #pragma lines from the output, and this
works as a solution. This can be accomplished by changing the cplist
rule in rules.make to:

%.plist : %.cplist
        $(ECHO_PREPROCESSING)$(CPP) 
                  $(filter-out $($<_FILE_FILTER_OUT_FLAGS),$(ALL_CPLISTFLAGS))
                  $($<_FILE_FLAGS) $< | sed '/^#pragma/d' > $@$(END_ECHO)



Follow-up Comments
*******************

-------------------------------------------------------
Date: Sat 07/26/2003 at 16:04       By: minusbat
Arse - obviously the web submit has removed the indent tabs in the
last part of that! Please commit with appropriate tabs, thanks!


CC list is empty


No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4492&group_id=99

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]