bugGNUstep - Bugs: bug #4492, cpp under OSX breacks .cplists by...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitted by:  Pete French <minusbat>
Submitted on:  Sat 26 Jul 2003 04:03:06 PM UTC  
 
Category: MakefilesSeverity: 1 - Wish
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Nicola Pero <nico>
Open/Closed: Closed

Mon 28 Jul 2003 09:57:14 AM UTC, comment #2:

Thanks Pete - I applied your patch on CVS.

Nicola Pero <nico>
Project MemberIn charge of this item.
Sat 26 Jul 2003 04:04:49 PM UTC, comment #1:

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

Pete French <minusbat>
Sat 26 Jul 2003 04:03:06 PM UTC, 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)

Pete French <minusbat>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 28 Jul 2003 09:57:14 AM UTCnicoSeverity3 - Normal=>(Error - Not Found)
  Item GroupNone=>(Error - Not Found)
  StatusNone=>(Error - Not Found)
  Assigned toNone=>NA
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1