Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxmeX-0002qj-FB for pgsql-committers@arkaria.postgresql.org; Thu, 06 Sep 2018 05:16:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fxmeV-0004ny-LE for pgsql-committers@arkaria.postgresql.org; Thu, 06 Sep 2018 05:16:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxmeU-0004nn-0y; Thu, 06 Sep 2018 05:16:23 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxmeM-0000oO-OK; Thu, 06 Sep 2018 05:16:21 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 687BA21F97; Thu, 6 Sep 2018 01:16:11 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 06 Sep 2018 01:16:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=ZTop2UAZBfFP2pILhiavZbsqylzwqHbv9EMjAC3FCoA=; b=ivL5zd8L jc5+1OkwrnBbh3hvK7s68scKSv6EdAZSaIbWuLSbLP5tjuVV+ekQaPWVAFe5+HlZ ctdTRL6N7ibhIhxVokL9OiQsfYQD/KezRlTwZrjKBdUVsEeabWSju9ZKWfvTVEtB 3P/3Mi/rYFLnt0Ml+6hBVktDOtRM+F6QkomeW/tnvAalg/ExAd+PF15bPJdP1zYJ 3xD0mEkdycARaQ/5FekzU4v9dA1423uCQTEDgZD1q1pTko2U468ZO4KwgDOvT0yq WqSA2pZH/Qpjj3ezZbhEqrFHIQF3Og8/Q+x7gKty67jm2R04xTsbiuj3+Dz9Y5ip dYDG1owwqMSa8g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=ZTop2UAZBfFP2pILhiavZbsqylzwq Hbv9EMjAC3FCoA=; b=KdZo2Crdzo/c8AG99UssGxHEKdRuth6T1pmTfmNFBC08c dYpOnn78unIkclFxwV6pq9KtUE9V4cElRpr1BFInOW5DFsOlINdX0hvhXkcT5DlK hbnuhJZZyzxNRia8Ao/WKpfLVfKYVcCagNzrqGO22sfwYabLKls7wUJd7gsOEwra czokZIdLS+v3ssWwWKEtJHhnsIGDxwlF4bHjaVioCWxXAkiPTs2Ss/HxJzzWI52j RqGgYUiLvMb6fvmR4F4DObRKbpy/M8oMu5p7KOgYUs+5Fk3DVR+XQEAJ4EMpUIUS eSqVz7G7RiDr9ZRlflO0NIicgj4GZiN3n2OpBtThQ== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (unknown [50.233.106.125]) by mail.messagingengine.com (Postfix) with ESMTPA id 4C12710294; Thu, 6 Sep 2018 01:16:10 -0400 (EDT) Date: Wed, 5 Sep 2018 22:16:08 -0700 From: Michael Paquier To: Andrew Gierth Cc: Postgres commits , Postgres hackers Subject: Re: pgsql: Allow extensions to install built as well as unbuilt headers. Message-ID: <20180906051608.GI2726@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="utPK4TBebyzZxMrE" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --utPK4TBebyzZxMrE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Andrew, On Wed, Sep 05, 2018 at 09:45:49PM +0000, Andrew Gierth wrote: > Allow extensions to install built as well as unbuilt headers. >=20 > Commit df163230b overlooked the case that an out-of-tree extension > might need to build its header files (e.g. via ./configure). If it is > also doing a VPATH build, the HEADERS_* rules in the original commit > would then fail to find the files, since they would be looking only > under $(srcdir) and not in the build directory. >=20 > Fix by adding HEADERS_built and HEADERS_built_$(MODULE) which behave > like DATA_built in that they look in the build dir rather than the > source dir (and also make the files dependencies of the "all" target). >=20 > No Windows support appears to be needed for this, since it is only > relevant to out-of-tree builds (no support exists in Mkvcbuild.pm to > build extension header files in any case). prairiedog is unhappy with this commit: make -C ../../../contrib/spi =2E./../src/makefiles/pgxs.mk:140: Extraneous text after `else' directive =2E./../src/makefiles/pgxs.mk:144: *** only one `else' per conditional. Stop. make[2]: *** [submake-contrib-spi] Error 2 make[2]: *** Waiting for unfinished jobs.... https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dprairiedog&dt=3D2= 018-09-05%2023%3A21%3A01 -- Michael --utPK4TBebyzZxMrE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAluQuBgACgkQnvQgOdby QH09CQ//ZrbGevkPWBR+NdKou1AG3yIhrt+k0QBDcPy5uznzvz0HB7w93apDrqi8 03qpownBo0sh+lWdGoJjlvm4TW4VmlCxTkwIkmqiPxlVNPSdn/+rvdlYg90VmE7f sJOmeRak/niarT7KBINuznNdiIoY09aQ6UWe0BgiIAB8tnWgbF6xIVId0fmn+P5D y2Dg5dwnd+cZUCisVSf7UhjFF6s1OTPENlecolVN21QYbfvcQBN5UKW8w7M1TVAd B0bMCLydJ72TlN4Vxk9Lgzoi/tK1RjZmblYxAdiXzZme9qhKCDm5/8+p356OMriq +Hx7ziTaUdlZllfMxdTB09tt3DxTNvchiF4TDNbhjQOpVKh1JXadVZY5h42X/EWP i12fmESrjI/WWfsYDF3mxNfdxvplRDATXn5n1H/q2wkXcm8EBes4o9Loumvw4lRd h/C0rei4JSV4W+V85fuYHMRQ8fMqsvRI2mSRV48fE+ZDic9+17blh7Rdvfs5xoZO L8T7IrZXCBu2TEeMA1q/DNud3vnVB3K23yKc3rOnCGkjcQy4UA2oDmKBjVb9ZvRX ghVSn7V+ZsP0P/MJLO9QN39fZj0WePlg/EJU8OOvqJbJxAmwsXu02p/nwTyjlmsB 4Sg9nf7FM/RxB7kPOf5twkUOD3xOa3G3EfUTnjnQA2y27wyRuYk= =5G2G -----END PGP SIGNATURE----- --utPK4TBebyzZxMrE--