From: Christoph Berg <myon@debian.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@anarazel.de>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Daniel Golle <daniel@makrotopia.org>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14033: cross-compilation to ARM fails
Date: Fri, 15 Apr 2016 17:01:12 +0200
Message-ID: <20160415150111.GH11804@msg.df7cb.de> (raw)
In-Reply-To: <6344.1460728679@sss.pgh.pa.us>
References: <20160319165321.GB1744@makrotopia.org>
<20160319223826.GA333151@alvherre.pgsql>
<20160414094243.GC11804@msg.df7cb.de>
<17999.1460693282@sss.pgh.pa.us>
<20160415041314.tboagai3x2r74omq@alap3.anarazel.de>
<6344.1460728679@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Re: Tom Lane 2016-04-15 <6344.1460728679@sss.pgh.pa.us>
> Could we insist that for a cross-compilation, the appropriate instance
> of pg_config has to be found first in the PATH under the name pg_config?
> That turns it into a matter of preparing the build environment.
The "compile twice" idea sounds very fragile, and I'm not sure if
compiling things for the local machine is even feasible in a
cross-compilation environment without relying on non-standard things.
Couldn't we simply (?) have two implementations? Keep the current C
implementation for Windows, and supply a sh implementation for all
other systems? Of course maintaining two implementations of the same
thing causes a maintenance burden, but pg_config is small.
> A different line of thought is to expose the data as data rather than
> an executable. For example, as a makefile fragment containing variable
> assignments, which would be include'd by extension makefiles. There
> are a lot of problems to be solved with this idea too, of course:
> what do you do to make it play in non-make-based build systems? And
> where would this file live? The lack of a PATH mechanism makes it
> far harder for would-be users to find the file. Still, maybe we could
> make something out of that approach.
As Peter said in the Debian bug I was citing, people should actually
be using pkg-config. I agree with that, but we don't even have
a .pc interface yet for retrieving server variables, and until that or
the pgxs-as-Makefile idea (which is nice too) are implemented,
pg_config will still be used for years in existing code out there.
Christoph
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: myon@debian.org, tgl@sss.pgh.pa.us, andres@anarazel.de, alvherre@2ndquadrant.com, daniel@makrotopia.org
Subject: Re: BUG #14033: cross-compilation to ARM fails
In-Reply-To: <20160415150111.GH11804@msg.df7cb.de>
References: <20160319165321.GB1744@makrotopia.org> <20160319223826.GA333151@alvherre.pgsql> <20160414094243.GC11804@msg.df7cb.de> <17999.1460693282@sss.pgh.pa.us> <20160415041314.tboagai3x2r74omq@alap3.anarazel.de> <6344.1460728679@sss.pgh.pa.us> <20160415150111.GH11804@msg.df7cb.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox