[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: postgresql
From: |
John Darrington |
Subject: |
Re: postgresql |
Date: |
Fri, 18 Mar 2016 21:23:12 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Fri, Mar 18, 2016 at 08:53:09PM +0100, Harry Thijssen wrote:
Hi
It seems to me that the test for Postgresql in configure is not correct.
I think it is testing if Postgresql is installed in the host environment
instead of the target environment.
There are several things one needs to be carefull of in such discussions.
Firstly, the terms "host", "target" and "build" have been used to mean different
things over the years. The most common usage today I think is as follows:
The "build" platform means the platform on which the software is being built -
that is to say the platform on which the compiler is running.
The "host" platform is the platform on which the built software is intented
to run.
The term "target" today is relevant only for compilers and similar tools. It
means
the platform on which software produced by the compiler currently being built is
intended to run. It is probably not relevant for our discussion.
As far as Postgresql and PSPP is concerned :
The libpq library needs to be available *on* the build platform, cross compiled
so
that it can run on the host platform.
For the purposes of running the tests, a postgresql server needs to be
available on
the build platform.
Complicating matters further, Postgresql has a binary called pg_config - which
performs
a similar role to pkg-config - We use it to try and find the relevant postgres
bits.
pg_config needs to be installed on and for the build platform.
Hopefully the above doesn't confuse you too much.
J'
--
Avoid eavesdropping. Send strong encryted email.
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.
signature.asc
Description: Digital signature
- postgresql, Harry Thijssen, 2016/03/18
- Re: postgresql,
John Darrington <=