Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCQCw-000560-1s for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Jul 2022 18:38:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oCQCs-0002XH-J1 for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Jul 2022 18:38:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCQCr-0002R3-AA for pgsql-bugs@lists.postgresql.org; Fri, 15 Jul 2022 18:38:30 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCQCm-0002Dt-LJ for pgsql-bugs@lists.postgresql.org; Fri, 15 Jul 2022 18:38:28 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 11EB43200B5E; Fri, 15 Jul 2022 14:38:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 15 Jul 2022 14:38:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1657910300; x=1657996700; bh=T 7p4eTaKshCU97fabTGkZPi+gGqM+5Z8FDMNghJaYJs=; b=ich7wku+usOL6KPFD Lpj7fAIZWqbkr/LigkUYG3ANWjzsSeZ/m7YN6ED0XRtClQR9iImGKCU5/mtM2dDM vuaSrUs73sTBfDDq2l6MeLmWjN0cow7l1NXFTxvnx75Z0DGZ+KpMLXL2M/KRVwBE +DufF4XEglT0DhCRO94uMeQ9QGOvw/MtfDKT26GWcGmT8CCZddn1bEQlnDKOjCKX HFXyO/60M16aFXAcp1qtmmF/0jRgfslmPaagxBUxK89H7ffzfqAuKE2sb6k6q/7E GXcADfs7L7ZfVS4CU97P8236fHY2njhzB2FSPfMQd3dpXbRywlKOpA0+oNYc83dy XDmBg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudekuddgudeftdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhv rghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hgqeenucggtffrrghtthgvrhhnpeektdfhkeevudeugfeuleetkefgjeegkeeuudduueev uedvudffgffgteeihfdvfeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgpd gvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 15 Jul 2022 14:38:19 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 10BE536E; Fri, 15 Jul 2022 20:38:17 +0200 (CEST) Date: Fri, 15 Jul 2022 20:38:17 +0200 From: Alvaro Herrera To: Andy Bailey Cc: pgsql-bugs@lists.postgresql.org Subject: Re: Makefile.global will override configure parameters if "pgsql" and "postgres" appear anywhere in the source path name Message-ID: <20220715183817.32d2hu67bwswmbwe@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220715161357.rezc6eohze3ebaya@akamai.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Jul-15, Andy Bailey wrote: > After some investigation, I found that the value of pkglibdir (as used > by src/Makefile.global and various other places) was different even > though the ./configure invocations were identical. Eventually, I found > that Makefile.global was the culprit, with some sections like: > > pkglibdir = $(libdir) > ifeq "$(findstring pgsql, $(pkglibdir))" "" > ifeq "$(findstring postgres, $(pkglibdir))" "" > override pkglibdir := $(pkglibdir)/postgresql > endif > endif Right. See commit 984b0b4df83f and its discussion at [1]. The working theory (as I remember it) is that if the installation is already postgres-specific (because the user has made it so by having "pgsql" or "postgres" in the argument to --prefix), then we don't need to add another level of postgres-specificity to it; but otherwise we add "/postgresql" to the path so that the resulting files don't end up mixed with files installed by unrelated packages. [1] https://www.postgresql.org/message-id/flat/Pine.LNX.4.21.0010042208350.934-100000%40peter.localdomain -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/