pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: news@emmanuelsambo.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13733: ~/.psql_history* corrupted
Date: Mon, 02 Nov 2015 14:14:37 -0500
Message-ID: <29116.1446491677@sss.pgh.pa.us> (raw)
In-Reply-To: <5637B366.3010308@gmx.net>
References: <20151026152214.3021.13548@wrigleys.postgresql.org>
	<28958.1445875729@sss.pgh.pa.us>
	<5637B366.3010308@gmx.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Peter Eisentraut <peter_e@gmx.net> writes:
> I have noticed that building PostgreSQL with libxml support on El
> Capitan by default ends up building against the system libedit, because
> it has a symlink at /usr/lib/libreadline.dylib, and xml2-config points
> to that directory, so it ends up early in the search path.

> Since I don't have the pre-El Capitan installation anymore, and can't
> verify whether this changed, but the problem is pretty clear.

Hm, I do not see anything like that on Yosemite:

$ which xml2-config
/usr/bin/xml2-config
$ xml2-config
Usage: xml2-config [OPTION]

Known values for OPTION are:

  --prefix              print the install prefix
  --libs                print library linking information
  --cflags              print pre-processor and compiler flags
  --modules             module support enabled
  --help                display this help and exit
  --version             output version information
$ xml2-config --libs
-lxml2
$ xml2-config --cflags
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2
$ xml2-config --prefix
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr

The /usr/lib/libreadline.dylib symlink has been there pretty much
forever, so that's not a new hazard.

You didn't say, but I assume what you're seeing is that "xml2-config
--cflags" now emits some -L switches along with -I?

Maybe we could fix that by inserting xml2-config's switches after the
user's, instead of before.

			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 (7+ messages)  latest in thread

Message-ID: <29116.1446491677@sss.pgh.pa.us>
Permalink:  ../29116.1446491677@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29116.1446491677@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, peter_e@gmx.net, news@emmanuelsambo.com
  Subject: Re: BUG #13733: ~/.psql_history* corrupted
  In-Reply-To: <29116.1446491677@sss.pgh.pa.us>
  References: <20151026152214.3021.13548@wrigleys.postgresql.org> <28958.1445875729@sss.pgh.pa.us> <5637B366.3010308@gmx.net> <29116.1446491677@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