[postgis-tickets] r16123 - Explicitly specify $(PERL) to call create_unpackaged.pl otherwise at least on freebsd it fails

Regina Obe lr at pcorp.us
Tue Nov 28 16:18:54 PST 2017


Author: robe
Date: 2017-11-28 16:18:54 -0800 (Tue, 28 Nov 2017)
New Revision: 16123

Modified:
   branches/2.4/extensions/postgis_sfcgal/Makefile.in
Log:
Explicitly specify $(PERL) to call create_unpackaged.pl otherwise at least on freebsd it fails
Also get rid of 9.1 check, we don't support 9.1 anymore.
References #3938 for PostGIS 2.4.3


Modified: branches/2.4/extensions/postgis_sfcgal/Makefile.in
===================================================================
--- branches/2.4/extensions/postgis_sfcgal/Makefile.in	2017-11-28 23:41:40 UTC (rev 16122)
+++ branches/2.4/extensions/postgis_sfcgal/Makefile.in	2017-11-29 00:18:54 UTC (rev 16123)
@@ -26,18 +26,16 @@
 
 PG_CONFIG    =  @PG_CONFIG@
 
-PG91         = $(shell $(PG_CONFIG) --version | $(GREP) -qE " 8\.| 9\.0" && echo no || echo yes)
 SQL_BITS     = $(wildcard sql_bits/*.sql)
-EXTRA_CLEAN += sql/*.sql ${SQL_BITS} 
+EXTRA_CLEAN += sql/*.sql ${SQL_BITS}
 
 
-ifeq ($(PG91),yes)
 all: sql/$(EXTENSION)--$(EXTVERSION).sql sql/$(EXTENSION)--unpackaged--$(EXTVERSION).sql sql/$(EXTENSION)--$(EXTVERSION)--$(EXTVERSION)next.sql sql/$(EXTENSION)--$(EXTVERSION)next--$(EXTVERSION).sql sql_minor_upgrade
 
 sql/$(EXTENSION)--$(EXTVERSION).sql: sql/$(EXTENSION).sql
 	mkdir -p sql
 	cp $< $@
-	
+
 sql/$(EXTENSION).sql: sql_bits/sfcgal.sql  sql_bits/sfcgal_comments.sql
 	mkdir -p sql
 	cat $^ > $@
@@ -66,7 +64,7 @@
 #then remove default values and extra junk
 sql/$(EXTENSION)--unpackaged--$(EXTVERSION).sql: sql_bits/sfcgal.sql ../../utils/create_unpackaged.pl
 	mkdir -p sql
-	cat $< | ../../utils/create_unpackaged.pl ${EXTENSION} > $@
+	cat $< |  $(PERL) ../../utils/create_unpackaged.pl ${EXTENSION} > $@
 
 sql_bits/sfcgal_upgrade.sql : ../../postgis/sfcgal_upgrade.sql
 	mkdir -p sql_bits
@@ -81,10 +79,9 @@
 	for OLD_VERSION in $(UPGRADEABLE_VERSIONS); do \
   	  cat $< > sql/$(EXTENSION)--$$OLD_VERSION--$(EXTVERSION).sql; \
 	done
-	
+
 DATA = $(wildcard sql/*--*.sql)
 EXTRA_CLEAN += sql/$(EXTENSION)--$(EXTVERSION).sql sql/$(EXTENSION)--unpackaged--$(EXTVERSION).sql
-endif
 
 distclean: clean
 	rm Makefile



More information about the postgis-tickets mailing list