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 1mKevU-0005C8-Gh for pgsql-general@arkaria.postgresql.org; Mon, 30 Aug 2021 10:54:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mKevS-0001hS-Rc for pgsql-general@arkaria.postgresql.org; Mon, 30 Aug 2021 10:54:02 +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 1mKevS-0001hH-J2 for pgsql-general@lists.postgresql.org; Mon, 30 Aug 2021 10:54:02 +0000 Received: from aldebaran.he1ix.org ([2a01:4f8:173:803:0:a1de:ba:a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKevO-00059W-C7 for pgsql-general@lists.postgresql.org; Mon, 30 Aug 2021 10:54:02 +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 1mKevL-003sp6-41 for pgsql-general@lists.postgresql.org; Mon, 30 Aug 2021 12:53:55 +0200 To: PostgreSQL General From: Mario Emmenlauer Message-ID: <8b1a13e4-5454-cdb7-b9d3-d8aa36599ccf@emmenlauer.de> Date: Mon, 30 Aug 2021 12:53:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit 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=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.4 Subject: 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 Dear All, 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/ I've played with all sorts of --libdir, --datarootdir and the like, but the behaviour stays the same. I fail to understand why in the case of --prefix=B (the target where we host a lot of other stuff), the install will use subdirectory 'postgresql', whereas for the --prefix=A (which is an empty directory) the install will not use a subdirectory. Whats more, when I try to run the server in A, initdb will complain that the file in A/share/postgresql/postgresql.bki is missing, which indeed is true (because the file is at A/share/postgresql.bki). Any help would be appreciated! All the best, Mario Emmenlauer -- BioDataAnalysis GmbH, Mario Emmenlauer Tel. Buero: +49-89-74677203 Balanstr. 43 mailto: memmenlauer * biodataanalysis.de D-81669 München http://www.biodataanalysis.de/