#5065 closed defect (fixed)

PGXS is preventing out-of-tree builds of control files

Reported by: strk Owned by: strk
Priority: medium Milestone: PostGIS 3.3.0
Component: build/upgrade/install Version: 3.2.x
Keywords: Cc:


The pgxs.mk has, in the install target, this block:

ifneq (,$(EXTENSION))
        $(INSTALL_DATA) $(addprefix $(srcdir)/, $(addsuffix .control, $(EXTENSION))) '$(DESTDIR)$(datadir)/extension/'

The code is basically prepending $(srcdir) to the .control file path and trying to install it, when EXTENSION variable is set.

In PostGIS we are generating the control files from the control.in files, so when building out-of-source-tree we have those files in the *build* directory, not the *source* directory.

I'd drop PGXS use completely to fix this issue, or at least we'd need to override the install rule

Change History (1)

comment:1 by strk, 12 months ago

Resolution: fixed
Status: newclosed

I've fixed this, in address_standardizer, by overriding the "install" rule in [9409617baf8997c886e4b52d7f59317ce5d48402/git] Eventually I'd like to drop PGXS as a whole.

Note: See TracTickets for help on using tickets.