pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Christoph Berg <myon@debian.org>
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 09:57:59 -0400
Message-ID: <6344.1460728679@sss.pgh.pa.us> (raw)
In-Reply-To: <20160415041314.tboagai3x2r74omq@alap3.anarazel.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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Andres Freund <andres@anarazel.de> writes:
> On 2016-04-15 00:08:02 -0400, Tom Lane wrote:
>> I can't see us taking either of those answers.  We haven't been willing
>> to accept a hard dependency on perl at build time, why would we do so
>> at run time?

> We could build pg_config both on the host and build architectures
> (presumably with the typical triplet as a prefix). Not sure how to
> automatically use that in pg_config --pgxs invocations in extension
> makefiles though.

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.

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.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (13+ messages)  latest in thread

Message-ID: <6344.1460728679@sss.pgh.pa.us>
Permalink:  ../6344.1460728679@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6344.1460728679@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, andres@anarazel.de, myon@debian.org, alvherre@2ndquadrant.com, daniel@makrotopia.org
  Subject: Re: BUG #14033: cross-compilation to ARM fails
  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>

* 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