[postgis] 09/11: Add patch to add . to @INC if removed for CVE-2016-1238.

Bas Couwenberg sebastic at debian.org
Tue Sep 6 14:24:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch experimental
in repository postgis.

commit 21b530086256ccb06167f176c2c80b0b36d53706
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Tue Sep 6 14:05:39 2016 +0200

    Add patch to add . to @INC if removed for CVE-2016-1238.
    
    -{pre,post}.pl scripts not executed by run_test.pl otherwise.
---
 debian/changelog                  |  2 ++
 debian/patches/run_test-INC.patch | 21 +++++++++++++++++++++
 debian/patches/series             |  1 +
 3 files changed, 24 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a111b23..0795c5a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ postgis (2.3.0~beta1+dfsg-1) UNRELEASED; urgency=medium
     - Drop disable-tests.patch, only added to not block proj 4.9.3 transition
     - Refresh remainging patches
   * Drop custom icon installation, included upstream.
+  * Add patch to add . to @INC if removed for CVE-2016-1238.
+   -{pre,post}.pl scripts not executed by run_test.pl otherwise.
 
  -- Bas Couwenberg <sebastic at debian.org>  Tue, 06 Sep 2016 11:18:14 +0200
 
diff --git a/debian/patches/run_test-INC.patch b/debian/patches/run_test-INC.patch
new file mode 100644
index 0000000..81faf29
--- /dev/null
+++ b/debian/patches/run_test-INC.patch
@@ -0,0 +1,21 @@
+Description: Add . to @INC if removed for CVE-2016-1238.
+ -{pre,post}.pl scripts not executed otherwise.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://trac.osgeo.org/postgis/ticket/3624
+
+--- a/regress/run_test.pl
++++ b/regress/run_test.pl
+@@ -22,6 +22,13 @@ use Cwd 'abs_path';
+ use Getopt::Long;
+ use strict;
+ 
++##################################################################
++# Add . to @INC if removed for CVE-2016-1238
++##################################################################
++BEGIN {
++	push @INC, "." if(!grep /^\.$/, @INC);
++}
++
+ 
+ ##################################################################
+ # Usage ./run_test.pl <testname> [<testname>]
diff --git a/debian/patches/series b/debian/patches/series
index 32f6ef4..1de694f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 link-liblwgeom
 relax-test-timing-constraints.patch
+run_test-INC.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/postgis.git



More information about the Pkg-grass-devel mailing list