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 1mKi35-00035U-St for pgsql-general@arkaria.postgresql.org; Mon, 30 Aug 2021 14:14:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mKi34-0004Hw-Rp for pgsql-general@arkaria.postgresql.org; Mon, 30 Aug 2021 14:14:06 +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 1mKi33-0004Ho-US for pgsql-general@lists.postgresql.org; Mon, 30 Aug 2021 14:14:06 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKi31-0000DA-B7 for pgsql-general@lists.postgresql.org; Mon, 30 Aug 2021 14:14:05 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id D84923200065; Mon, 30 Aug 2021 10:14:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 30 Aug 2021 10:14:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=Y drwaElQTrBsYVZBiXxOxNHe8TJUOcKHhMmYKhGknaA=; b=H0jDCzh8Kns8KYkfN BYwlwygsZy/jp6yh02W3Zdb0FBwJoPsun591uQQsZgH83x7XOHXMzQFawbc5ElNw hLLgAKhIdptnNZhpO4JTRTB3QFefsScV66cCMnUvZw/TOVpw5qeDFxBFQbIUcNTu AHzUvtFNyVKs0/cR4nSdMLY4lNCS7N6o0lLsWeyiQJbvO5iSywPeMZ+lgXKqDWOa 9cQc67da8DFvRSE0+kuyeMVeD4HVLID+OG0tPAy0KG3OnGUu9dZlH4Lt6i7b1HyP Rl5uVXZ7KUaOyTcScs5UGVBktijv0l4yqEpWsIvwlHQY4RKrUBBXiwfZnFa9sxRS xVUZg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=YdrwaElQTrBsYVZBiXxOxNHe8TJUOcKHhMmYKhGkn aA=; b=QoHLpSllkrapY5uhScGlOU/3gR/vd0QwAMboRdeL+z9IMaS1AoP0u4R2w nfwwSTtvNzj7oiCNRdKqtLSWg6d3BCEUJGpJ2QTjyVunb7TM0eamBIrfCaBo82vV GS3nGNXSFzNA+LBKJPR38cPQYCC0GhUIuDpc8x5+RTOEpeCSzLT9zwX0cOr8d6jY 8AdVchRRJTj75y7Ug22L90ZoeRFaToz0z2OawvmF7/VczioJ4JgoeRt+SNhtkgPf JusQ31tOtiDyhmWyZS/56tu/jTttN+3AtOORBbdEQhBHH0s1LQ0D9KfL3PWIb6r/ 7VmpIsUvY0DYC4yDofc5KHS62qUbg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudduledgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeettdefhfejgfejgffhueelffeuieeiueetjeegheet geegjeevkeeghedtfeetkeenucffohhmrghinhepsghiohgurghtrggrnhgrlhihshhish druggvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhep rggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 30 Aug 2021 10:13:58 -0400 (EDT) Subject: Re: lib and share are installed differently, but why? To: Mario Emmenlauer , PostgreSQL General References: <8b1a13e4-5454-cdb7-b9d3-d8aa36599ccf@emmenlauer.de> From: Adrian Klaver Message-ID: Date: Mon, 30 Aug 2021 07:13:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <8b1a13e4-5454-cdb7-b9d3-d8aa36599ccf@emmenlauer.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/30/21 3:53 AM, Mario Emmenlauer wrote: > > 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. What are the complete config commands for each build? Does clean directory refer to the build 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/ Is that really B/lib or is it A/lib? To me it looks like in the past a different configuration or install method was used and you now have a mixed install. > > 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/ > > -- Adrian Klaver adrian.klaver@aklaver.com