Commit af0c1a8b authored by Markus Wanner's avatar Markus Wanner

Add patch avoid-bashisms.patch to fix the generated sql files.

parent 9ed9c136
postgis (2.3.1+dfsg-2) unstable; urgency=medium
* Add patch avoid-bashisms.patch to fix the generated sql files.
Closes: #858610.
-- Markus Wanner <markus@bluegap.ch> Fri, 24 Mar 2017 19:35:00 +0100
postgis (2.3.1+dfsg-1) unstable; urgency=medium
* New upstream release.
......
Description: Avoid a few bashisms resulting in invalid SQL files
An echo that's supposed to output a backslash works with bash, but not
in dash. Use printf, instead.
Author: Markus Wanner <markus@bluegap.ch>
Forwarded: yes, https://lists.osgeo.org/pipermail/postgis-devel/2017-March/026135.html
--- a/extensions/postgis/Makefile.in
+++ b/extensions/postgis/Makefile.in
@@ -39,7 +39,7 @@
sql/$(EXTENSION).sql: sql_bits/postgis.sql sql_bits/postgis_comments.sql sql_bits/rtpostgis.sql sql_bits/spatial_ref_sys_config_dump.sql sql_bits/raster_comments.sql sql_bits/spatial_ref_sys.sql
mkdir -p sql
- echo '\echo Use "CREATE EXTENSION $(EXTENSION)" to load this file. \quit' > $@
+ printf '\\echo Use "CREATE EXTENSION $(EXTENSION)" to load this file. \\quit\n' > $@
cat $^ >> $@
sql/$(EXTENSION)--$(EXTVERSION).sql: sql/$(EXTENSION).sql
@@ -94,7 +94,7 @@
#postgis_extension_upgrade_minor.sql is the one that contains both postgis AND raster
sql_bits/postgis_extension_upgrade_minor.sql: ../postgis_extension_helper.sql sql_bits/postgis_upgrade.sql sql_bits/rtpostgis_upgrade.sql ../../doc/raster_comments.sql ../../doc/postgis_comments.sql ../postgis_extension_helper_uninstall.sql
- echo '\echo Use "CREATE EXTENSION $(EXTENSION)" to load this file. \quit' > $@
+ printf '\\echo Use "CREATE EXTENSION $(EXTENSION)" to load this file. \\quit\n' > $@
cat $^ >> $@
sql_minor_upgrade: sql_bits/postgis_extension_upgrade_minor.sql
--- a/extensions/postgis_sfcgal/Makefile.in
+++ b/extensions/postgis_sfcgal/Makefile.in
@@ -74,7 +74,7 @@
sql_bits/sfcgal_upgrade_minor.sql: ../postgis_extension_helper.sql sql_bits/sfcgal_upgrade.sql ../../doc/sfcgal_comments.sql ../postgis_extension_helper_uninstall.sql
mkdir -p sql_bits
- echo '\echo Use "CREATE EXTENSION $(EXTENSION)" to load this file. \quit' > $@
+ printf '\\echo Use "CREATE EXTENSION $(EXTENSION)" to load this file. \\quit\n' > $@
cat $^ >> $@
sql_minor_upgrade: sql_bits/sfcgal_upgrade_minor.sql
avoid-bashisms.patch
link-liblwgeom
relax-test-timing-constraints.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment