Re: Include files for SPI are not installed - Mailing list pgsql-hackers

From Lamar Owen
Subject Re: Include files for SPI are not installed
Date
Msg-id 3A804BD2.EFC57933@wgcr.org
Whole thread Raw
In response to Include files for SPI are not installed  ("Oliver Elphick" <olly@lfix.co.uk>)
List pgsql-hackers
Oliver Elphick wrote:
> Certain include files are installed by src/include/Makefile and by
> interfaces/libpq++/Makefile.  However, they in turn include others that
> are not installed, thus obviating the usefulness of the ones that are.
> The missing files are these:
[snip] 
> The list can be regenerated with the attached script.

Or use this one-liner (CWD=the include directory in the source dist):

/lib/cpp -M -I. -I../backend executor/spi.h | \xargs -n 1| \grep \\W| \grep -v ^/| \grep -v spi.o | \grep -v spi.h |
\sort
(There are better ways of doing the regexps, I know).  I use this in the
RPM spec file to pull over the SPI headers, and have had to do so since
6.5.x days.

Bruce, can we add a TODO item for make install to install _all_
necessary headers, including SPI ones?  It is not at all necessary to
have a source tree lying around to do SPI development (or at least it
_shouldn't_ be necessary). A full source tree, configured and built,
according to du, takes about 48MB of space (a pristine tree takes 36MB
or so in comparison). The complete set of headers takes a little less
than 1MB of space.  (1MB of _headers_? Yow!)
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11


pgsql-hackers by date:

Previous
From: Karel Zak
Date:
Subject: Re: 25 March 2001 bug
Next
From: Lamar Owen
Date:
Subject: Re: Include files for SPI are not installed