[postgis-tickets] [PostGIS] #5065: PGXS is preventing out-of-tree builds of control files

PostGIS trac at osgeo.org
Fri Jan 21 00:07:56 PST 2022


#5065: PGXS is preventing out-of-tree builds of control files
-----------------------------------+---------------------------
 Reporter:  strk                   |      Owner:  strk
     Type:  defect                 |     Status:  new
 Priority:  medium                 |  Milestone:  PostGIS 3.3.0
Component:  build/upgrade/install  |    Version:  3.2.x
 Keywords:                         |
-----------------------------------+---------------------------
 The pgxs.mk has, in the `install` target, this block:
 {{{
 ifneq (,$(EXTENSION))
         $(INSTALL_DATA) $(addprefix $(srcdir)/, $(addsuffix .control,
 $(EXTENSION))) '$(DESTDIR)$(datadir)/extension/'
 endif # 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

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5065>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list