public inbox for [email protected]  
help / color / mirror / Atom feed
Re: How to Build Postgres in a Portable / Relocatable fashion?
3+ messages / 3 participants
[nested] [flat]

* Re: How to Build Postgres in a Portable / Relocatable fashion?
@ 2024-05-03 23:27  AJ ONeal <[email protected]>
  0 siblings, 2 replies; 3+ messages in thread

From: AJ ONeal @ 2024-05-03 23:27 UTC (permalink / raw)
  To: [email protected] <[email protected]>

> > Back in the good old days there was official 1st-party support for Linux:
> This
> was/is a third party site.

Oh. I thought that EDB was *the* Postgres company like MySQL AB was *the* MySQL company. My mistake.

> and `apt`​ is always half-a-decade out-of-date

I misspoke. I meant the OS repos more than apt itself.

> As to Apt build scripts:

I was just using apt as an example. I don't actually want to deal with apt or .debs.

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. Something that Just Works™ *almost* anywhere (Ubuntu, Debian, RedHat, Suse... maybe even Alpine).

Any idea how to do that?






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How to Build Postgres in a Portable / Relocatable fashion?
@ 2024-05-03 23:44  Tom Lane <[email protected]>
  parent: AJ ONeal <[email protected]>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2024-05-03 23:44 UTC (permalink / raw)
  To: AJ ONeal <[email protected]>; +Cc: [email protected] <[email protected]>

AJ ONeal <[email protected]> writes:
> 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.

See

https://www.postgresql.org/docs/current/installation.html

particularly the discussion of installation relocatability under

https://www.postgresql.org/docs/current/install-make.html#CONFIGURE-OPTIONS-LOCATIONS

In short, you have to specify an installation path, but as long
as you don't muck with the relative locations of the subdirectories
it should be possible to move the whole tree to a different
installation location.

> Something that Just Works™ *almost* anywhere (Ubuntu, Debian, RedHat, Suse... maybe even Alpine).

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.

Maybe you should be thinking in terms of a docker container
or the like?

			regards, tom lane






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How to Build Postgres in a Portable / Relocatable fashion?
@ 2024-05-04 17:56  [email protected]
  parent: AJ ONeal <[email protected]>
  1 sibling, 0 replies; 3+ messages in thread

From: [email protected] @ 2024-05-04 17:56 UTC (permalink / raw)
  To: [email protected]

On Fri, May 03, 2024 at 11:27:12PM GMT, AJ ONeal wrote:

> 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. Something that Just Works™ *almost*
> anywhere (Ubuntu, Debian, RedHat, Suse... maybe even Alpine).

Alpine is based on musl (not glibc), so you're pretty much OOL at
least on that point.

Have you thought about using a container?

-- 
Ian






^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2024-05-04 17:56 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-05-03 23:27 Re: How to Build Postgres in a Portable / Relocatable fashion? AJ ONeal <[email protected]>
2024-05-03 23:44 ` Tom Lane <[email protected]>
2024-05-04 17:56 ` [email protected]

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox