pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mario Emmenlauer <mario@emmenlauer.de>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: lib and share are installed differently, but why?
Date: Mon, 30 Aug 2021 10:24:06 -0400
Message-ID: <1349737.1630333446@sss.pgh.pa.us> (raw)
In-Reply-To: <8b1a13e4-5454-cdb7-b9d3-d8aa36599ccf@emmenlauer.de>
References: <8b1a13e4-5454-cdb7-b9d3-d8aa36599ccf@emmenlauer.de>

Mario Emmenlauer <mario@emmenlauer.de> 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

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.

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <1349737.1630333446@sss.pgh.pa.us>
Permalink:  ../1349737.1630333446@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1349737.1630333446@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mario@emmenlauer.de
  Subject: Re: lib and share are installed differently, but why?
  In-Reply-To: <1349737.1630333446@sss.pgh.pa.us>
  References: <8b1a13e4-5454-cdb7-b9d3-d8aa36599ccf@emmenlauer.de> <1349737.1630333446@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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