[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: |
Mon, 28 Jul 2003 05:57:14 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830 |
=================== BUG #4492: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4492&group_id=99
Changes by: Nicola Pero <n.pero@mi.flashnet.it>
Date: Mon 07/28/2003 at 09:57 (GMT)
What | Removed | Added
---------------------------------------------------------------------------
Severity | 5 - Major | 1 - Ordinary
Bug Group | None | Bug
Resolution | None | Fixed
Assigned to | None | nico
Status | Open | Closed
------------------ Additional Follow-up Comments ----------------------------
Thanks Pete - I applied your patch on CVS.
=================== BUG #4492: FULL BUG SNAPSHOT ===================
Submitted by: minusbat Project: GNUstep
Submitted on: Sat 07/26/2003 at 16:03
Category: Makefiles Severity: 1 - Ordinary
Bug Group: Bug Resolution: Fixed
Assigned to: nico Status: Closed
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: Mon 07/28/2003 at 09:57 By: nico
Thanks Pete - I applied your patch on CVS.
-------------------------------------------------------
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/