Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yoa4r-0004SZ-LZ for pgsql-committers@arkaria.postgresql.org; Sat, 02 May 2015 16:15:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yoa4r-000586-27 for pgsql-committers@arkaria.postgresql.org; Sat, 02 May 2015 16:15:41 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yoa4q-00057x-1A for pgsql-committers@postgresql.org; Sat, 02 May 2015 16:15:40 +0000 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Yoa4i-0006Db-Kw for pgsql-committers@postgresql.org; Sat, 02 May 2015 16:15:38 +0000 Received: from mfilter23-d.gandi.net (mfilter23-d.gandi.net [217.70.178.151]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id 38AD5FB877; Sat, 2 May 2015 18:15:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter23-d.gandi.net Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by mfilter23-d.gandi.net (mfilter23-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id SEZkrGJngeq5; Sat, 2 May 2015 18:15:28 +0200 (CEST) X-Originating-IP: 98.27.58.255 Received: from [192.168.10.146] (cpe-98-27-58-255.nc.res.rr.com [98.27.58.255]) (Authenticated sender: adsend@dunslane.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 674FBFB882; Sat, 2 May 2015 18:15:28 +0200 (CEST) Message-ID: <5544F81F.8010709@dunslane.net> Date: Sat, 02 May 2015 12:15:27 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Peter Eisentraut , pgsql-committers@postgresql.org Subject: Re: pgsql: Make hstore_plperl's build even more like plperl's References: <55448BAB.1000702@dunslane.net> <5544BD8A.5050802@gmx.net> <5544DD48.80307@dunslane.net> <5544E1C9.5050009@gmx.net> <5544E7AC.9030106@dunslane.net> In-Reply-To: <5544E7AC.9030106@dunslane.net> Content-Type: multipart/mixed; boundary="------------070509030801070703010501" X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org This is a multi-part message in MIME format. --------------070509030801070703010501 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 05/02/2015 11:05 AM, Andrew Dunstan wrote: > > On 05/02/2015 10:40 AM, Peter Eisentraut wrote: >> On 5/2/15 10:20 AM, Andrew Dunstan wrote: >>> Putting the CORE directory at the end of PG_CPPFLAGS doesn't work. >>> Using >>> the override to put it at the end of CPPFLAGS does work. >> It's strange that the include directory order should matter. What is >> the explanation for that? I don't see this documented anywhere. I >> don't see any evidence in the buildfarm that this makes a difference. >> >> The intent of my changes was to unbreak other platforms that had been >> broken by these Windows-related changes (which did succeed). >> >> > > What failures on other platforms? There's not a single buildfarm > failure I can see attributable to this. All the recent failures are > listed here: > > The evidence in favor of my changes is in my testing. When I do it > your way I get errors, when I do it my way I don't. > > Note that the override is EXACTLY what is done unconditionally in the > plperl GNUmakefile: > > override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) > -I$(perl_archlibexp)/CORE > > > So, contrary to your claims, you have not made this makefile more like > plperl's - you've made it less like plperl's, and detrimentally so. FYI, the attached patch allows jacana to build and test hstore_plperl without error. cheers andrew --------------070509030801070703010501 Content-Type: text/x-patch; name="hstore_plperl-fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="hstore_plperl-fix.patch" diff --git a/contrib/hstore_plperl/Makefile b/contrib/hstore_plperl/Makefile index e7fbf23..b69cb88 100644 --- a/contrib/hstore_plperl/Makefile +++ b/contrib/hstore_plperl/Makefile @@ -1,9 +1,10 @@ # contrib/hstore_plperl/Makefile MODULE_big = hstore_plperl -OBJS = hstore_plperl.o +OBJS = hstore_plperl.o $(WIN32RES) +PGFILEDESC = "hstore_plperl - hstore transform for plperl" -PG_CPPFLAGS = -I$(top_srcdir)/src/pl/plperl -I$(top_srcdir)/contrib/hstore -I$(perl_archlibexp)/CORE +PG_CPPFLAGS = -I$(top_srcdir)/src/pl/plperl -I$(top_srcdir)/contrib/hstore EXTENSION = hstore_plperl hstore_plperlu DATA = hstore_plperl--1.0.sql hstore_plperlu--1.0.sql @@ -25,4 +26,7 @@ endif # see plperl ifeq ($(PORTNAME), win32) override CPPFLAGS += -DPLPERL_HAVE_UID_GID -Wno-comment +SHLIB_LINK += ../hstore/libhstore.a $(wildcard ../../src/pl/plperl/libperl*.a) endif + +override CPPFLAGS := $(CPPFLAGS) -I$(perl_archlibexp)/CORE --------------070509030801070703010501 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers --------------070509030801070703010501--