[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0alpha1-159-g7357b91

git at osgeo.org git at osgeo.org
Mon Jul 6 18:27:08 PDT 2020


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  7357b9116129239371fa2a68e62c3003417d51f9 (commit)
       via  ff00ff0c6d189920e596faa57260793ea0b614e0 (commit)
       via  30fc54f957ac1522e62e70a15afc03c196293993 (commit)
       via  d8a83efff3bde389d44d8f15a93d1590ae23569d (commit)
       via  d52d8ab3ee87b2560a249b92231a95daa632fe9d (commit)
       via  79837b2ce1721fcf6f45596768e3122fcbc01446 (commit)
       via  fad4e77c07f5f789a4f4608be86b5c93e6e3ff68 (commit)
       via  94f3847dbb776064665f8145f6facafa548f00c8 (commit)
      from  17e3e8fd60319f67ce071df3c290e96550c818ed (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7357b9116129239371fa2a68e62c3003417d51f9
Author: Regina Obe <lr at pcorp.us>
Date:   Mon Jul 6 21:26:50 2020 -0400

    Standardize shebang and support for MSVC closes https://git.osgeo.org/gitea/postgis/postgis/pulls/42

diff --git a/NEWS b/NEWS
index df59f40..cb9bd2e 100644
--- a/NEWS
+++ b/NEWS
@@ -23,6 +23,7 @@ Only tickets not included in 3.1.0alpha1
   - #4620, Update internal wagyu to 0.5.0 (Raúl Marín)
   - #4623, Optimize varlena returning functions (Raúl Marín)
   - #4677, Share gserialized objects between different cache types (Raúl Marín)
+  - Fix compilation with MSVC compiler / Standardize shebangs (Loïc Bartoletti)
 
 * Bug fixes *
   - #4652, Fix several memory related bugs in ST_GeomFromGML (Raúl Marín)

commit ff00ff0c6d189920e596faa57260793ea0b614e0
Merge: 17e3e8f 30fc54f
Author: Regina Obe <lr at pcorp.us>
Date:   Mon Jul 6 21:24:21 2020 -0400

    Merge remote-tracking branch 'lbartoletti/win_freebsd_compilation'


commit 30fc54f957ac1522e62e70a15afc03c196293993
Author: lbartoletti <l.bartoletti at free.fr>
Date:   Thu Jan 23 13:36:12 2020 +0100

    use define instead of static uint_32_t pet vscc

diff --git a/libpgcommon/lwgeom_transform.c b/libpgcommon/lwgeom_transform.c
index 87a1b92..9c1e854 100644
--- a/libpgcommon/lwgeom_transform.c
+++ b/libpgcommon/lwgeom_transform.c
@@ -197,7 +197,6 @@ GetProjStringsSPI(int32_t srid)
 static PjStrs
 GetProjStrings(int32_t srid)
 {
-	const int maxprojlen = 512;
 	PjStrs strs;
 	memset(&strs, 0, sizeof(strs));
 

commit d8a83efff3bde389d44d8f15a93d1590ae23569d
Author: lbartoletti <l.bartoletti at free.fr>
Date:   Thu Jan 23 12:03:56 2020 +0100

    fix cast

diff --git a/liblwgeom/lwgeom_transform.c b/liblwgeom/lwgeom_transform.c
index b7e9636..3a8a4a8 100644
--- a/liblwgeom/lwgeom_transform.c
+++ b/liblwgeom/lwgeom_transform.c
@@ -458,7 +458,9 @@ ptarray_transform(POINTARRAY *pa, LWPROJ *pj)
 	{
 		/* For single points it's faster to call proj_trans */
 		PJ_XYZT v = {pa_double[0], pa_double[1], has_z ? pa_double[2] : 0.0, 0.0};
-		PJ_COORD t = proj_trans(pj->pj, PJ_FWD, (PJ_COORD)v);
+		PJ_COORD c;
+		c.xyzt = v;
+		PJ_COORD t = proj_trans(pj->pj, PJ_FWD, c);
 
 		int pj_errno_val = proj_errno(pj->pj);
 		if (pj_errno_val)
@@ -466,10 +468,10 @@ ptarray_transform(POINTARRAY *pa, LWPROJ *pj)
 			lwerror("transform: %s (%d)", proj_errno_string(pj_errno_val), pj_errno_val);
 			return LW_FAILURE;
 		}
-		pa_double[0] = ((PJ_XYZT)t.xyzt).x;
-		pa_double[1] = ((PJ_XYZT)t.xyzt).y;
+		pa_double[0] = (t.xyzt).x;
+		pa_double[1] = (t.xyzt).y;
 		if (has_z)
-			pa_double[2] = ((PJ_XYZT)t.xyzt).z;
+			pa_double[2] = (t.xyzt).z;
 	}
 	else
 	{

commit d52d8ab3ee87b2560a249b92231a95daa632fe9d
Author: lbartoletti <l.bartoletti at free.fr>
Date:   Thu Jan 23 11:59:38 2020 +0100

    fix pointer arithmetic

diff --git a/liblwgeom/ptarray.c b/liblwgeom/ptarray.c
index f13911d..746964a 100644
--- a/liblwgeom/ptarray.c
+++ b/liblwgeom/ptarray.c
@@ -1500,14 +1500,14 @@ ptarray_remove_repeated_points_in_place(POINTARRAY *pa, double tolerance, uint32
 			if (last_point && n_points_out > 1 && tolerance > 0.0 && dsq <= tolsq)
 			{
 				n_points_out--;
-				p_to -= pt_size;
+				p_to = (char*)p_to - pt_size;
 			}
 		}
 
 		/* Compact all remaining values to front of array */
 		memcpy(p_to, pt, pt_size);
 		n_points_out++;
-		p_to += pt_size;
+		p_to = (char*)p_to + pt_size;
 		last = pt;
 	}
 	/* Adjust array length */

commit 79837b2ce1721fcf6f45596768e3122fcbc01446
Author: lbartoletti <l.bartoletti at free.fr>
Date:   Thu Jan 23 11:44:44 2020 +0100

    use define instead of static uint_32_t pet vscc

diff --git a/liblwgeom/lwgeom.c b/liblwgeom/lwgeom.c
index ddcf11d..84be6e5 100644
--- a/liblwgeom/lwgeom.c
+++ b/liblwgeom/lwgeom.c
@@ -31,6 +31,7 @@
 #include "liblwgeom_internal.h"
 #include "lwgeom_log.h"
 
+#define out_stack_size 32
 
 /** Force Right-hand-rule on LWGEOM polygons **/
 void
@@ -1606,7 +1607,6 @@ lwgeom_remove_repeated_points_in_place(LWGEOM *geom, double tolerance)
 		}
 		case MULTIPOINTTYPE:
 		{
-			static uint32_t out_stack_size = 32;
 			double tolsq = tolerance*tolerance;
 			uint32_t i, j, n = 0;
 			LWMPOINT *mpt = (LWMPOINT *)(geom);
diff --git a/liblwgeom/lwout_wkt.c b/liblwgeom/lwout_wkt.c
index f23b6b4..cd2bdd8 100644
--- a/liblwgeom/lwout_wkt.c
+++ b/liblwgeom/lwout_wkt.c
@@ -29,6 +29,7 @@
 
 static void lwgeom_to_wkt_sb(const LWGEOM *geom, stringbuffer_t *sb, int precision, uint8_t variant);
 
+#define buffer_size 128
 
 /*
 * ISO format uses both Z and M qualifiers.
@@ -85,7 +86,6 @@ static void ptarray_to_wkt_sb(const POINTARRAY *ptarray, stringbuffer_t *sb, int
 	/* OGC only includes X/Y */
 	uint32_t dimensions = 2;
 	uint32_t i, j;
-	static size_t buffer_size = 128;
 	char coord[buffer_size];
 
 	/* ISO and extended formats include all dimensions */
diff --git a/libpgcommon/lwgeom_transform.c b/libpgcommon/lwgeom_transform.c
index 9c9601c..87a1b92 100644
--- a/libpgcommon/lwgeom_transform.c
+++ b/libpgcommon/lwgeom_transform.c
@@ -32,6 +32,8 @@
 #include <string.h>
 #include <stdio.h>
 
+#define maxprojlen  512
+#define spibufferlen 512
 
 
 /*
@@ -119,8 +121,6 @@ SPI_pstrdup(const char* str)
 static PjStrs
 GetProjStringsSPI(int32_t srid)
 {
-	const int maxprojlen = 512;
-	const int spibufferlen = 512;
 	int spi_result;
 	char proj_spi_buffer[spibufferlen];
 	PjStrs strs;

commit fad4e77c07f5f789a4f4608be86b5c93e6e3ff68
Author: lbartoletti <l.bartoletti at free.fr>
Date:   Thu Jan 23 11:43:12 2020 +0100

    fix endian for vscode

diff --git a/liblwgeom/lookup3.c b/liblwgeom/lookup3.c
index 67f4da2..3a2865c 100644
--- a/liblwgeom/lookup3.c
+++ b/liblwgeom/lookup3.c
@@ -38,8 +38,8 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy.
 #include <stdio.h>      /* defines printf for tests */
 #include <time.h>       /* defines time_t for timings in the test */
 #include <stdint.h>     /* defines uint32_t etc */
-#include <sys/param.h>  /* attempt to define endianness */
 #ifdef linux
+#include <sys/param.h>  /* attempt to define endianness */
 # include <endian.h>    /* attempt to define endianness */
 #endif
 
@@ -47,7 +47,10 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy.
  * My best guess at if you are big-endian or little-endian.  This may
  * need adjustment.
  */
-#if (defined(WORDS_BIGENDIAN))
+#if defined (__WIN32__) // windows is always little-endian except for NT 
+# define HASH_LITTLE_ENDIAN 1
+# define HASH_BIG_ENDIAN 0
+#elif (defined(WORDS_BIGENDIAN))
 # define HASH_LITTLE_ENDIAN 0
 # define HASH_BIG_ENDIAN 1
 #elif (defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && \

commit 94f3847dbb776064665f8145f6facafa548f00c8
Author: lbartoletti <l.bartoletti at free.fr>
Date:   Thu Jan 23 10:56:04 2020 +0100

    Standardize shebangs

diff --git a/astyle.sh b/astyle.sh
index fe3ef83..9fcd4d7 100755
--- a/astyle.sh
+++ b/astyle.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Run astyle on the code base ready for release
 
diff --git a/ci/berrie/postgis_regress.sh b/ci/berrie/postgis_regress.sh
index de2eece..7832355 100644
--- a/ci/berrie/postgis_regress.sh
+++ b/ci/berrie/postgis_regress.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #bessie is a 32-bit Rasberry Pi managed by Bruce Rindahl
 ## BRANCH is passed in via jenkins which is set via gitea web hook
 #export BRANCH=618a67b1d6fc223dd5a4c0b02c824939f21dbd65
diff --git a/ci/debbie/logbt b/ci/debbie/logbt
index 7d0fae2..777db16 100644
--- a/ci/debbie/logbt
+++ b/ci/debbie/logbt
@@ -317,7 +317,7 @@ function test_logbt() {
   # We use bash to avoid needing an external dep on some runtime
 
   # Due to https://github.com/mapbox/logbt/issues/29 we need to copy the bash
-  # exe on OS X to a new location since coredumps are disabled for /bin/bash for
+  # exe on OS X to a new location since coredumps are disabled for /usr/bin/env bash for
   # reasons I don't understand
   if [[ ${PLATFORM_UNAME} == "Darwin" ]]; then
       # first touch file to create it with writable permissions for this user
diff --git a/ci/debbie/postgis_doc_translations.sh b/ci/debbie/postgis_doc_translations.sh
index 7964ceb..6fffc1f 100644
--- a/ci/debbie/postgis_doc_translations.sh
+++ b/ci/debbie/postgis_doc_translations.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 ## begin variables passed in by jenkins
 
diff --git a/ci/debbie/postgis_make_dist.sh b/ci/debbie/postgis_make_dist.sh
index 7cbd323..c07091c 100644
--- a/ci/debbie/postgis_make_dist.sh
+++ b/ci/debbie/postgis_make_dist.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 ## begin variables passed in by jenkins
 
diff --git a/ci/debbie/postgis_regress.sh b/ci/debbie/postgis_regress.sh
index 8aba41e..d21e2ea 100644
--- a/ci/debbie/postgis_regress.sh
+++ b/ci/debbie/postgis_regress.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 ## begin variables passed in by jenkins
 
diff --git a/ci/debbie/postgis_release_docs.sh b/ci/debbie/postgis_release_docs.sh
index 8398b08..f15a46c 100644
--- a/ci/debbie/postgis_release_docs.sh
+++ b/ci/debbie/postgis_release_docs.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 export PG_VER=9.6
 # export PGPORT=8442
 export OS_BUILD=64
diff --git a/ci/dronie/postgis_regress.sh b/ci/dronie/postgis_regress.sh
index ef75397..2f38d02 100644
--- a/ci/dronie/postgis_regress.sh
+++ b/ci/dronie/postgis_regress.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # Exit on first error
 set -e
diff --git a/ci/travis/logbt b/ci/travis/logbt
index 38813d5..23e3185 100644
--- a/ci/travis/logbt
+++ b/ci/travis/logbt
@@ -317,7 +317,7 @@ function test_logbt() {
   # We use bash to avoid needing an external dep on some runtime
 
   # Due to https://github.com/mapbox/logbt/issues/29 we need to copy the bash
-  # exe on OS X to a new location since coredumps are disabled for /bin/bash for
+  # exe on OS X to a new location since coredumps are disabled for /usr/bin/env bash for
   # reasons I don't understand
   if [[ ${PLATFORM_UNAME} == "Darwin" ]]; then
       # first touch file to create it with writable permissions for this user
diff --git a/ci/winnie/build_postgis.sh b/ci/winnie/build_postgis.sh
index a66a471..41c96a4 100644
--- a/ci/winnie/build_postgis.sh
+++ b/ci/winnie/build_postgis.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 if  [[ "${OVERRIDE}" == '' ]] ; then
 	export GEOS_VER=3.8.0
diff --git a/ci/winnie/package_postgis.sh b/ci/winnie/package_postgis.sh
index 12090fe..34103fb 100644
--- a/ci/winnie/package_postgis.sh
+++ b/ci/winnie/package_postgis.sh
@@ -14,7 +14,7 @@
 #export GCC_TYPE=
 #if no override is set - use these values
 #otherwise use the ones jenkins passes thru
-#!/bin/bash
+#!/usr/bin/env bash
 if  [[ "${OVERRIDE}" == '' ]] ; then
 	export GEOS_VER=3.8.0
 	export GDAL_VER=2.4.3
diff --git a/ci/winnie/regress_postgis.sh b/ci/winnie/regress_postgis.sh
index fa70f16..bb61cca 100644
--- a/ci/winnie/regress_postgis.sh
+++ b/ci/winnie/regress_postgis.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 set -e
 if  [[ "${OVERRIDE}" == '' ]] ; then
 	export GEOS_VER=3.8.0
diff --git a/doc/doxygen.cfg.in b/doc/doxygen.cfg.in
index 0ee3f09..24b1f66 100644
--- a/doc/doxygen.cfg.in
+++ b/doc/doxygen.cfg.in
@@ -1070,7 +1070,7 @@ EXTERNAL_GROUPS        = YES
 # The PERL_PATH should be the absolute path and name of the perl script
 # interpreter (i.e. the result of `which perl').
 
-PERL_PATH              = /usr/bin/perl
+PERL_PATH              = /usr/bin/env perl
 
 #---------------------------------------------------------------------------
 # Configuration options related to the dot tool
diff --git a/extensions/address_standardizer/mk-city-regex.pl b/extensions/address_standardizer/mk-city-regex.pl
index 97bf311..8496280 100644
--- a/extensions/address_standardizer/mk-city-regex.pl
+++ b/extensions/address_standardizer/mk-city-regex.pl
@@ -1,6 +1,6 @@
-#!  /usr/bin/perl
-#!/usr/bin/perl -w
+#!/usr/bin/env perl 
 use strict;
+use warnings;
 use Regexp::Assemble;
 
 my @cities = split(/[\r\n]+/, qx(cat usps-st-city-name.txt));
diff --git a/extensions/address_standardizer/mk-sql.pl b/extensions/address_standardizer/mk-sql.pl
index 66c65c1..c0310d2 100644
--- a/extensions/address_standardizer/mk-sql.pl
+++ b/extensions/address_standardizer/mk-sql.pl
@@ -1,5 +1,6 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 use strict;
+use warnings;
 
 sub Usage {
     print "Usage: mk-sql.pl pgver file-in.sql\n";
diff --git a/extensions/address_standardizer/mk-st-regexp.pl b/extensions/address_standardizer/mk-st-regexp.pl
index 9a67338..9861c4b 100644
--- a/extensions/address_standardizer/mk-st-regexp.pl
+++ b/extensions/address_standardizer/mk-st-regexp.pl
@@ -1,5 +1,6 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 use strict;
+use warnings;
 use Regexp::Assemble;
 
 # TODO
diff --git a/extras/tiger_geocoder/create_geocode.sh b/extras/tiger_geocoder/create_geocode.sh
index 614e18c..cdd73c0 100755
--- a/extras/tiger_geocoder/create_geocode.sh
+++ b/extras/tiger_geocoder/create_geocode.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 PGPORT=5432
 PGHOST=localhost
 PGUSER=postgres
diff --git a/extras/tiger_geocoder/legacy_import/tiger2008/import_tiger_shps.sh b/extras/tiger_geocoder/legacy_import/tiger2008/import_tiger_shps.sh
index e4e23ef..04d3fb0 100755
--- a/extras/tiger_geocoder/legacy_import/tiger2008/import_tiger_shps.sh
+++ b/extras/tiger_geocoder/legacy_import/tiger2008/import_tiger_shps.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 shopt -s nullglob
 
diff --git a/extras/tiger_geocoder/upgrade_geocoder.sh b/extras/tiger_geocoder/upgrade_geocoder.sh
index 8b1164f..6cee9eb 100755
--- a/extras/tiger_geocoder/upgrade_geocoder.sh
+++ b/extras/tiger_geocoder/upgrade_geocoder.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 export PGPORT=5432
 export PGHOST=localhost
 export PGUSER=postgres
diff --git a/fuzzers/build_google_oss_fuzzers.sh b/fuzzers/build_google_oss_fuzzers.sh
index 1ee2d94..cca4503 100755
--- a/fuzzers/build_google_oss_fuzzers.sh
+++ b/fuzzers/build_google_oss_fuzzers.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
diff --git a/fuzzers/build_seed_corpus.sh b/fuzzers/build_seed_corpus.sh
index d87427a..3d7f094 100755
--- a/fuzzers/build_seed_corpus.sh
+++ b/fuzzers/build_seed_corpus.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 set -e
 
diff --git a/raster/doc/doxygen.cfg.in b/raster/doc/doxygen.cfg.in
index 60d49d8..42f4db7 100644
--- a/raster/doc/doxygen.cfg.in
+++ b/raster/doc/doxygen.cfg.in
@@ -1070,7 +1070,7 @@ EXTERNAL_GROUPS        = YES
 # The PERL_PATH should be the absolute path and name of the perl script
 # interpreter (i.e. the result of `which perl').
 
-PERL_PATH              = /usr/bin/perl
+PERL_PATH              = /usr/bin/env perl
 
 #---------------------------------------------------------------------------
 # Configuration options related to the dot tool
diff --git a/regress/run_test.pl b/regress/run_test.pl
index ce2c718..2fb74e3 100755
--- a/regress/run_test.pl
+++ b/regress/run_test.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 #
 # PostGIS - Spatial Types for PostgreSQL
diff --git a/utils/create_extension_unpackage.pl b/utils/create_extension_unpackage.pl
index 6d27ff0..55983bf 100755
--- a/utils/create_extension_unpackage.pl
+++ b/utils/create_extension_unpackage.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 #
 # PostGIS - Spatial Types for PostgreSQL
diff --git a/utils/create_spatial_ref_sys_config_dump.pl b/utils/create_spatial_ref_sys_config_dump.pl
index 5714c5c..2c89a31 100755
--- a/utils/create_spatial_ref_sys_config_dump.pl
+++ b/utils/create_spatial_ref_sys_config_dump.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 #
 # PostGIS - Spatial Types for PostgreSQL
diff --git a/utils/create_undef.pl b/utils/create_undef.pl
index 077c649..d98ccce 100755
--- a/utils/create_undef.pl
+++ b/utils/create_undef.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 #
 # PostGIS - Spatial Types for PostgreSQL
diff --git a/utils/create_unpackaged.pl b/utils/create_unpackaged.pl
index aee76a9..8e4e064 100755
--- a/utils/create_unpackaged.pl
+++ b/utils/create_unpackaged.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 #
 # PostGIS - Spatial Types for PostgreSQL
diff --git a/utils/postgis_proc_upgrade.pl b/utils/postgis_proc_upgrade.pl
index d50436b..859641b 100755
--- a/utils/postgis_proc_upgrade.pl
+++ b/utils/postgis_proc_upgrade.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 #
 # PostGIS - Spatial Types for PostgreSQL
diff --git a/utils/postgis_restore.pl.in b/utils/postgis_restore.pl.in
index fdf437a..8498c54 100644
--- a/utils/postgis_restore.pl.in
+++ b/utils/postgis_restore.pl.in
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 #
 # PostGIS - Spatial Types for PostgreSQL
diff --git a/utils/profile_intersects.pl b/utils/profile_intersects.pl
index e0dbf4c..945d5da 100755
--- a/utils/profile_intersects.pl
+++ b/utils/profile_intersects.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # 
 # TODO:
@@ -7,6 +7,7 @@
 #	eg. 1-3 or 1-32/5
 #
 
+use warnings;
 use Pg;
 use Time::HiRes("gettimeofday");
 
diff --git a/utils/read_scripts_version.pl b/utils/read_scripts_version.pl
index dced639..e402aed 100755
--- a/utils/read_scripts_version.pl
+++ b/utils/read_scripts_version.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 my $debug = 0;
 
diff --git a/utils/repo_revision.pl b/utils/repo_revision.pl
index 4d4f243..67ba7fe 100755
--- a/utils/repo_revision.pl
+++ b/utils/repo_revision.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 $ENV{"LC_ALL"} = "C";
 
diff --git a/utils/test_estimation.pl b/utils/test_estimation.pl
index 07b0aad..0550bbb 100755
--- a/utils/test_estimation.pl
+++ b/utils/test_estimation.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # 
 # TODO:
@@ -7,6 +7,7 @@
 #	eg. 1-3 or 1-32/5
 #
 
+use warnings;
 use Pg;
 
 $VERBOSE = 0;
diff --git a/utils/test_geography_estimation.pl b/utils/test_geography_estimation.pl
index b697281..e31a689 100755
--- a/utils/test_geography_estimation.pl
+++ b/utils/test_geography_estimation.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # 
 # TODO:
@@ -7,6 +7,7 @@
 #	eg. 1-3 or 1-32/5
 #
 
+use warnings;
 use Pg;
 
 $VERBOSE = 0;
diff --git a/utils/test_geography_joinestimation.pl b/utils/test_geography_joinestimation.pl
index c5bbecc..8360ba3 100755
--- a/utils/test_geography_joinestimation.pl
+++ b/utils/test_geography_joinestimation.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # 
 # TODO:
@@ -6,6 +6,7 @@
 # Apply oid filters on table2
 #
 
+use warnings;
 use Pg;
 
 $VERBOSE = 0;
diff --git a/utils/test_joinestimation.pl b/utils/test_joinestimation.pl
index b46c3ce..a6ab3d8 100755
--- a/utils/test_joinestimation.pl
+++ b/utils/test_joinestimation.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
 
 # 
 # TODO:
@@ -6,6 +6,7 @@
 # Apply oid filters on table2
 #
 
+use warnings;
 use Pg;
 
 $VERBOSE = 0;
diff --git a/utils/uninstall_script b/utils/uninstall_script
index 78b147b..515a57f 100755
--- a/utils/uninstall_script
+++ b/utils/uninstall_script
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # this script will change it's current working directory to utils
 
 DB=postgis_uninstall

-----------------------------------------------------------------------

Summary of changes:
 NEWS                                                           |  1 +
 astyle.sh                                                      |  2 +-
 ci/berrie/postgis_regress.sh                                   |  2 +-
 ci/debbie/logbt                                                |  2 +-
 ci/debbie/postgis_doc_translations.sh                          |  2 +-
 ci/debbie/postgis_make_dist.sh                                 |  2 +-
 ci/debbie/postgis_regress.sh                                   |  2 +-
 ci/debbie/postgis_release_docs.sh                              |  2 +-
 ci/dronie/postgis_regress.sh                                   |  2 +-
 ci/travis/logbt                                                |  2 +-
 ci/winnie/build_postgis.sh                                     |  2 +-
 ci/winnie/package_postgis.sh                                   |  2 +-
 ci/winnie/regress_postgis.sh                                   |  2 +-
 doc/doxygen.cfg.in                                             |  2 +-
 extensions/address_standardizer/mk-city-regex.pl               |  4 ++--
 extensions/address_standardizer/mk-sql.pl                      |  3 ++-
 extensions/address_standardizer/mk-st-regexp.pl                |  3 ++-
 extras/tiger_geocoder/create_geocode.sh                        |  2 +-
 .../legacy_import/tiger2008/import_tiger_shps.sh               |  2 +-
 extras/tiger_geocoder/upgrade_geocoder.sh                      |  2 +-
 fuzzers/build_google_oss_fuzzers.sh                            |  2 +-
 fuzzers/build_seed_corpus.sh                                   |  2 +-
 liblwgeom/lookup3.c                                            |  7 +++++--
 liblwgeom/lwgeom.c                                             |  2 +-
 liblwgeom/lwgeom_transform.c                                   | 10 ++++++----
 liblwgeom/lwout_wkt.c                                          |  2 +-
 liblwgeom/ptarray.c                                            |  4 ++--
 libpgcommon/lwgeom_transform.c                                 |  5 ++---
 raster/doc/doxygen.cfg.in                                      |  2 +-
 regress/run_test.pl                                            |  2 +-
 utils/create_extension_unpackage.pl                            |  2 +-
 utils/create_spatial_ref_sys_config_dump.pl                    |  2 +-
 utils/create_undef.pl                                          |  2 +-
 utils/create_unpackaged.pl                                     |  2 +-
 utils/postgis_proc_upgrade.pl                                  |  2 +-
 utils/postgis_restore.pl.in                                    |  2 +-
 utils/profile_intersects.pl                                    |  3 ++-
 utils/read_scripts_version.pl                                  |  2 +-
 utils/repo_revision.pl                                         |  2 +-
 utils/test_estimation.pl                                       |  3 ++-
 utils/test_geography_estimation.pl                             |  3 ++-
 utils/test_geography_joinestimation.pl                         |  3 ++-
 utils/test_joinestimation.pl                                   |  3 ++-
 utils/uninstall_script                                         |  2 +-
 44 files changed, 63 insertions(+), 51 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list