Thread: ./configure patch needed to build portable SRPMs

./configure patch needed to build portable SRPMs

From
Jean-Michel POURE
Date:
Dear all,

To make a portable SRPM (which would rebuild on any platform) we need the
./configure script to search for  "--with-pgsql-include" variable in
/usr/include and /usr/include/pgsql (without having to specify it).

Otherwise, there will be one SRPM for RedHat and Mandrake and another for SuSE
8.2. Could someone kindly modify the ./configure script?

Cheers,
Jean-Michel Pouré


Re: ./configure patch needed to build portable SRPMs

From
blacknoz@club-internet.fr
Date:
Dear Jean-Michel,

you could also try something like this:
./configure --with-pgsql-include '/usr/include/pgsql -I /usr/include' ...

in your spec file.

Cheers,

Raphaël

----Message d'origine----
>De: Jean-Michel POURE <jm@poure.com>
>A: <pgadmin-hackers@postgresql.org>
>Sujet: [pgadmin-hackers] ./configure patch needed to build portable SRPMs
>Date: Wed, 10 Sep 2003 15:57:40 +0200
>
>Dear all,
>
>To make a portable SRPM (which would rebuild on any platform) we need the
>../configure script to search for  "--with-pgsql-include" variable in
>/usr/include and /usr/include/pgsql (without having to specify it).
>
>Otherwise, there will be one SRPM for RedHat and Mandrake and another for SuSE
>8.2. Could someone kindly modify the ./configure script?
>
>Cheers,
>Jean-Michel Pouré
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 8: explain analyze is your friend
>
>


Re: ./configure patch needed to build portable SRPMs

From
Jean-Michel POURE
Date:
Le Mercredi 10 Septembre 2003 20:51, blacknoz@club-internet.fr a écrit :
> ./configure --with-pgsql-include '/usr/include/pgsql -I /usr/include' ...
Thanks!!!


Re: ./configure patch needed to build portable

From
"Adam H. Pendleton"
Date:
Jean-Michel POURE wrote:
Dear all,

To make a portable SRPM (which would rebuild on any platform) we need the 
./configure script to search for  "--with-pgsql-include" variable in 
/usr/include and /usr/include/pgsql (without having to specify it).

Otherwise, there will be one SRPM for RedHat and Mandrake and another for SuSE 
8.2. Could someone kindly modify the ./configure script?

Cheers,
Jean-Michel Pouré


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
 
Attached is a patch that will do what you ask.  Or you can use Raphaël's solution.  :-)

ahp