Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s331a-008mDE-3h for pgsql-general@arkaria.postgresql.org; Sat, 04 May 2024 00:13:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s331W-00DJQI-H0 for pgsql-general@arkaria.postgresql.org; Sat, 04 May 2024 00:13:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s331W-00DJQA-17 for pgsql-general@lists.postgresql.org; Sat, 04 May 2024 00:13:07 +0000 Received: from mail-40140.protonmail.ch ([185.70.40.140]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s331R-001Jrn-QQ for pgsql-general@lists.postgresql.org; Sat, 04 May 2024 00:13:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1714781578; x=1715040778; bh=nbViU1iQ+Eo17TfY9j28AySmukGXy6RjfO8r3T5Do5A=; h=Date:To:From:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=mC9z+jcKG8+cfhGNqWZtPkrY8jtDixv/8pG9dHGc1LDJGRSp5ycUV+copsIDKvQ57 2kHkJk0ebgM4Zk4/+wUNzcoaN8IChAb+xoNM/z5oUi5lQEYex23XbNX2wrgoO4ZFMF 0InJHvKZb4DiiLkYDVtPKxUH+1V69n2fjYHP56t9yJgFzEGWWht9yhcuyqeQwD/AMV zLlfXiz3ckPE8/VEe6jnbZXbm4asH/VaYcCMbfeGJ3XfbgTV/qY79UNaG4ILra3Zs2 vYLo/Gkmhb1vfWiebAO+NACzaFV914UWIj8qmG0beqO+qx3FqSlG/FHe88p7Lb2g73 +sAOptbhjhciw== Date: Sat, 04 May 2024 00:12:55 +0000 To: "pgsql-general@lists.postgresql.org" From: AJ ONeal Subject: Re: How to Build Postgres in a Portable / Relocatable fashion? Message-ID: In-Reply-To: <2770930.1714779894@sss.pgh.pa.us> References: <2770930.1714779894@sss.pgh.pa.us> Feedback-ID: 64821478:user:proton X-Pm-Message-ID: e5ecdad394a3cb768298a0593f69fc1194527a79 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > > What I want to create (and provide) is a portable tarball that has > > most of all what it needs in the tarball and will look for relevant > > libraries relative to itself. >=20 >=20 > See >=20 > https://www.postgresql.org/docs/current/installation.html >=20 > particularly the discussion of installation relocatability under >=20 > https://www.postgresql.org/docs/current/install-make.html#CONFIGURE-OPTIO= NS-LOCATIONS It seems like the first bit of magic I need is: `--prefix=3D/doesntexist/postgres` Including 'postgres' as part of the name puts it in "relative mode", so-to-= speak. Thank you! > > Something that Just Works=E2=84=A2 almost anywhere (Ubuntu, Debian, Red= Hat, Suse... maybe even Alpine). >=20 >=20 > That's a little harder, mainly because the shared libraries for > dependencies like openssl etc may not be 100% compatible across > all those platforms. Different versions, different build options, > yadda yadda. I'd like to build as much static as possible (or reasonable). Is there a wa= y to tell it "just include openssl"? > Maybe you should be thinking in terms of a docker container > or the like? I really hate Docker. The idea of "we can't ship your computer to the clien= t, so we'll just ship... a clone of you computer to the client" offends my = sensibilities. Or rather, I like the opportunity that LXC provides in the right context, b= ut I don't like how it's become a replacement for shared knowledge within a= group - i.e. "no one can remember the wisdom of the ancients, so if this f= ragile system that Ted built ever fails or needs a change no one knows how = he did it or what the options mean, but don't worry, it's all encapsulated = in a very complex Dockerfile that no one understands and depends on hundred= s of layers of images... but it's not like someone would ever leftpad any o= f them... What could go wrong?"