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 1mKimV-0004iH-Gf for pgsql-general@arkaria.postgresql.org; Mon, 30 Aug 2021 15:01:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mKilz-00032j-3O for pgsql-general@arkaria.postgresql.org; Mon, 30 Aug 2021 15:00:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKily-00032R-Qj for pgsql-general@lists.postgresql.org; Mon, 30 Aug 2021 15:00:30 +0000 Received: from aldebaran.he1ix.org ([2a01:4f8:173:803:0:a1de:ba:a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKilt-0000ad-CO for pgsql-general@lists.postgresql.org; Mon, 30 Aug 2021 15:00:29 +0000 Received: from port-213-160-25-97.static.as20676.net ([213.160.25.97] helo=[192.168.33.110]) by aldebaran.he1ix.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1mKilo-003zux-6D; Mon, 30 Aug 2021 17:00:20 +0200 To: Tom Lane Cc: PostgreSQL General References: <8b1a13e4-5454-cdb7-b9d3-d8aa36599ccf@emmenlauer.de> <1349737.1630333446@sss.pgh.pa.us> From: Mario Emmenlauer Message-ID: Date: Mon, 30 Aug 2021 17:00:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <1349737.1630333446@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 213.160.25.97 X-SA-Exim-Mail-From: mario@emmenlauer.de X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on aldebaran.he1ix.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=5.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.4 Subject: Re: lib and share are installed differently, but why? X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000) X-SA-Exim-Scanned: Yes (on aldebaran.he1ix.org) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 30.08.21 16:24, Tom Lane wrote: > Mario Emmenlauer writes: >> I've been building and using PostgreSQL from source for a few years >> now, thanks for the awesome work! > >> Since upgrading from 12.5 to 12.8, I've found a problem that I can >> not resolve myself. We build PostgreSQL twice, once to folder A, and >> once to folder B. This is because A is more easily deployable, while >> B holds all our development build targets. The only difference in >> the two builds is the change in `--prefix` for configure. Everything >> else is identical, and both builds start from a clean directory. > >> But I see a difference in the installations: >> - The contents of `share` go to A/share/ vs B/share/postgresql/ >> - The contents of `lib` go to B/lib vs B/lib/postgresql/ > > You didn't say exactly what "A" and "B" stand for, but I'll bet > that the string "A" includes "pgsql" or "postgres". Makefile.global > makes some installation path changes when that's not true, e.g. > > pkglibdir = $(libdir) > ifeq "$(findstring pgsql, $(pkglibdir))" "" > ifeq "$(findstring postgres, $(pkglibdir))" "" > override pkglibdir := $(pkglibdir)/postgresql > endif > endif Ahhh! This is very likely what I am tripped over! Thanks a million! Indeed my path A does *not* contain "postgres" while B is set to "A/postgresql". This explains the difference in the install. > This behavior is pretty ancient; I'm quite sure it didn't change > between 12.5 and 12.8. So I speculate that you made some change > in your build process that you didn't mention. I'm pretty sure there is no change in my build. But my provided information may still be incorrect. What I can see is that since postgres 12.8 I get the aforementioned error that the file "A/share/postgresql/postgresql.bki" would be missing. I did not get this error before, and therefore never investigated if the folder layout was the same between A and B. So, as you say, it may have been different since basically forever. But a new thing seems to be this error. After this find, I will change my build not to compile twice any more. Therefore the issue is resolved for me! But it may be good to keep this email for future reference, if someone else trips over the problem of a missing "postgresql.bki". Hint to this future person: does your install path contain the strings "pgsql" or "postgres", then search in this area for the error... All the best, and thanks a lot, Mario Emmenlauer