[Aboriginal] cpp in the native environment

Paul Onyschuk blink at bojary.koba.pl
Mon Feb 13 02:50:32 PST 2012


On Tue, 31 Jan 2012 22:08:02 -0600
Rob Landley wrote:

> 
> I'd appreciate a test case so I know if what I'm implementing works.
> Right now I haven't got anything that actually uses cpp...
>

Apologies for delay, but I was in the wilderness for 2 weeks.

I found that some configure scripts of Xorg parts are calling cpp
directly (usage is pretty much the same): libX11, libXext, libXt,
xorg-server, xf86-video-sis.  You can check configure script around
line 13000 of libX11 version 1.3.5 [1].

I'm not good at reading configure scripts, but I managed to isolate
relevant parts.  I'm attaching 2 small shell scripts: cpp-undef.sh and
cpp-whitespace.sh.

With 'gcc -E "$@"' wrapper it ends up with error "rawcc: no input
files".  Hope this case scenarios will help.

I patched temporarily configure scripts, but I guess I'll hit direct
cpp usage later with other packages.


[1]
http://mi.mirror.garr.it/mirrors/x.org/individual/lib/libX11-1.3.5.tar.gz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpp-undef.sh
Type: application/x-sh
Size: 475 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/aboriginal-landley.net/attachments/20120213/3792a000/attachment-0006.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpp-whitespace.sh
Type: application/x-sh
Size: 425 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/aboriginal-landley.net/attachments/20120213/3792a000/attachment-0007.sh>


More information about the Aboriginal mailing list