pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Böszörményi Zoltán <zboszor@pr.hu>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: dingxiangfei2009@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15306: Use pkg-config for searching libxml2 header
Date: Wed, 1 Aug 2018 11:56:07 +0200
Message-ID: <7e67be73-3c52-bc29-133f-64da148e0261@pr.hu> (raw)
In-Reply-To: <3694.1533062014@sss.pgh.pa.us>
References: <153300834113.1397.11820371991264228844@wrigleys.postgresql.org>
	<3694.1533062014@sss.pgh.pa.us>

2018-07-31 20:33 keltezéssel, Tom Lane írta:
> =?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
>> This is an improvement suggestion. In the configure script,
>> https://github.com/postgres/postgres/blob/master/configure.in#L896
>> this part uses `xml2-config` program to find the `libxml2` headers.
> 
> Right ...
> 
>> It would be more appropriate to use pkg-config program to search `libxml2`
>> headers.
> 
> Why?  Under what circumstances would xml2-config not be present
> (assuming that libxml2 is) or give a less desirable answer than
> pkg-config?

The Yocto cross-compiler framework (since Yocto 2.2 IIRC) does not
allow the "binconfig" scripts for XML2 and GD and for some other
libraries.

The pkg-config scripts are not just preferred but mandatory.

>  What would you have us do on platforms lacking pkg-config?

That should be kept as a fallback in PKG_CHECK_MODULES().

Best regards,
Zoltán Böszörményi

> 
> 			regards, tom lane
> 
> 





view thread (4+ messages)  latest in thread

Message-ID: <7e67be73-3c52-bc29-133f-64da148e0261@pr.hu>
Permalink:  ../7e67be73-3c52-bc29-133f-64da148e0261@pr.hu/
Also on:    postgresql.org/message-id/7e67be73-3c52-bc29-133f-64da148e0261@pr.hu

 · 

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: zboszor@pr.hu, tgl@sss.pgh.pa.us, dingxiangfei2009@gmail.com
  Subject: Re: BUG #15306: Use pkg-config for searching libxml2 header
  In-Reply-To: <7e67be73-3c52-bc29-133f-64da148e0261@pr.hu>
  References: <153300834113.1397.11820371991264228844@wrigleys.postgresql.org> <3694.1533062014@sss.pgh.pa.us> <7e67be73-3c52-bc29-133f-64da148e0261@pr.hu>

* 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