[postgis-tickets] [PostGIS] #3390: Compilation under Alpine Linux 3.2 gives an error when compiling the postigs and postgis_topology extension

PostGIS trac at osgeo.org
Mon Dec 7 14:10:10 PST 2015


#3390: Compilation under Alpine Linux 3.2 gives an error when compiling the
postigs and postgis_topology extension
---------------------+---------------------------
 Reporter:  boonen   |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 2.2.1
Component:  postgis  |    Version:  2.2.x
 Keywords:           |
---------------------+---------------------------
 I've downloaded the 2.2.0 distribution and compiled it using the standard
 building tools of Alpine Linux 3.2. When building the extensions postgis
 and postgis_topology I get the following error:

 {{{
 cp ../../doc/raster_comments.sql sql_bits/raster_comments.sql
 sed -e 's/BEGIN;//g' -e 's/COMMIT;//g'  ../../spatial_ref_sys.sql >
 sql_bits/spatial_ref_sys.sql
 mkdir -p sql
 echo '\echo Use "CREATE EXTENSION postgis" to load this file. \quit' >
 sql/postgis.sql
 cat sql_bits/postgis.sql sql_bits/postgis_comments.sql
 sql_bits/rtpostgis.sql sql_bits/mark_editable_objects.sql.in
 sql_bits/raster_comments.sql sql_bits/spatial_ref_sys.sql >>
 sql/postgis.sql
 mkdir -p sql
 cp sql/postgis.sql sql/postgis--2.2.0.sql
 mkdir -p sql
 cat ../../postgis/postgis.sql ../../raster/rt_pg/rtpostgis.sql | /bin/sh
 /usr/lib/postgresql/pgxs/src/makefiles/../../config/missing perl
 ../../utils/create_unpackaged.pl
 postgis > sql/postgis--unpackaged--2.2.0.sql
 /bin/sh: can't open
 '/usr/lib/postgresql/pgxs/src/makefiles/../../config/missing'
 Makefile:50: recipe for target 'sql/postgis--unpackaged--2.2.0.sql' failed
 make: *** [sql/postgis--unpackaged--2.2.0.sql] Error 2
 make: *** Deleting file 'sql/postgis--unpackaged--2.2.0.sql'
 }}}

 Note, this resembles the problem in issue #3004.

 I can work around this issue by defining the PERL variable in the Makefile
 after the lines
 {{{
 PGXS := $(shell $(PG_CONFIG) --pgxs)
 include $(PGXS)
 }}}
 in the Makefile. So, it seems the PGXS is messing up my variables.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3390>
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