After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 87835 - idl include checks require gnu sed?
idl include checks require gnu sed?
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: [obsolete] Builds
0.x.x [obsolete]
Other Mac OS
: High major
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks: 80435
 
 
Reported: 2002-07-10 14:10 UTC by jacob berkman
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch sed syntax (381 bytes, patch)
2003-09-15 05:00 UTC, Jerry Talkington
none Details | Review

Description jacob berkman 2002-07-10 14:10:26 UTC
i've seen this happen on solaris and os x:

the sed command that generates the orbit-idl include line does not work,
and you just get the two paths w/o the -I:

jacob@localhost:nautilus$ grep IDL_INCLUDES config.status
s,@LIBNAUTILUS_IDL_INCLUDES@, /gnome2/share/idl/bonobo-activation-2.0
/gnome2/share/idl/bonobo-2.0,;t t
s,@CORE_IDL_INCLUDES@, /gnome2/share/idl/bonobo-activation-2.0
/gnome2/share/idl/bonobo-2.0,;t t

i don't know enough about sed to know how to fix this, however... i'd
rather see orbit-idl use something more like cflags rather than this weird
thing, but that's just me.

the workaround i've been using is to hand-edit config.status...
Comment 1 jacob berkman 2002-09-09 21:40:06 UTC
this seems to fix it (to add-include-prefix):

-sed -e 's/^/ /' -e 's/ \+$//' -e 's/ \+/ -I /g' -e 's/^ \+//'
+sed -e 's/^/ /' -e 's/  *$//' -e 's/  */ -I /g' -e 's/^  *//'
Comment 2 Julio Merino 2003-02-16 11:49:57 UTC
The same problem arises in NetBSD. The following change fixes it:

-sed -e 's/^/ /' -e 's/ \+$//' -e 's/ \+/ -I /g' -e 's/^ \+//'
+sed -e 's/ +/ /g' -e 's/^/ /' -e 's/ / -I /g' -e 's/ -I $//'

That is, suppress all contiguous spaces, then add one at the very beginning, substitute spaces with -I and at last remove any -I that may have been appened at the end.
Comment 3 Kjartan Maraas 2003-05-03 17:05:57 UTC
Is this ok?
Comment 4 Murray Cumming 2003-07-25 14:48:53 UTC
If this problem still exists then I suggest someone ubmits a real patch.
Comment 5 Jerry Talkington 2003-09-15 05:00:17 UTC
Created attachment 19937 [details] [review]
patch sed syntax
Comment 6 Jerry Talkington 2003-09-15 05:02:45 UTC
This is a real patch.  It works with both traditional sed (checked on
MacOS X 10.2.6) and GNU sed (version 4.0.5).  This is still an issue
as of 2.4.0
Comment 7 Kjartan Maraas 2003-09-16 20:36:07 UTC
Adding keyword and pri because of patch.
Comment 8 Alexander Larsson 2003-09-19 09:03:55 UTC
The + operator doesn't work in osx sed, so this patch is broken.
Instead i checked in:
-sed -e 's/^/ /' -e 's/ \+$//' -e 's/ \+/ -I /g' -e 's/^ \+//'
+sed -e 's/^/ /' -e 's/  */ /g' -e 's/ / -I /g' -e 's/ -I $//'

which should work.