[mapnik] 02/03: Add patch to support scons 3.0.0.

Bas Couwenberg sebastic at debian.org
Wed Oct 4 18:38:45 UTC 2017


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

sebastic pushed a commit to branch master
in repository mapnik.

commit 55c97855ff8cd1786ffe6ef4cb0ea5639db48fd0
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Wed Oct 4 18:26:46 2017 +0200

    Add patch to support scons 3.0.0.
---
 debian/changelog               |   1 +
 debian/patches/scons-3.0.patch | 144 +++++++++++++++++++++++++++++++++++++++++
 debian/patches/series          |   1 +
 3 files changed, 146 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 0f4a766..288f5a7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 mapnik (3.0.15+ds-2) UNRELEASED; urgency=medium
 
   * Bump Standards-Version to 4.1.1, no changes.
+  * Add patch to support scons 3.0.0.
 
  -- Bas Couwenberg <sebastic at debian.org>  Fri, 22 Sep 2017 23:14:45 +0200
 
diff --git a/debian/patches/scons-3.0.patch b/debian/patches/scons-3.0.patch
new file mode 100644
index 0000000..dc29b72
--- /dev/null
+++ b/debian/patches/scons-3.0.patch
@@ -0,0 +1,144 @@
+Description: Add support for scons 3.0.0.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://github.com/mapnik/mapnik/pull/3774
+
+--- a/SConstruct
++++ b/SConstruct
+@@ -142,15 +142,15 @@ def color_print(color,text,newline=True)
+     # 4 - blue
+     text = "\033[9%sm%s\033[0m" % (color,text)
+     if not newline:
+-        print text,
++        print(text,)
+     else:
+-        print text
++        print(text)
+ 
+ def regular_print(color,text,newline=True):
+     if not newline:
+-        print text,
++        print(text,)
+     else:
+-        print text
++        print(text)
+ 
+ def call(cmd, silent=False):
+     stdin, stderr = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE).communicate()
+@@ -503,7 +503,7 @@ elif HELP_REQUESTED:
+ # https://github.com/mapnik/mapnik/issues/2112
+ if not os.path.exists(SCONS_LOCAL_LOG) and not os.path.exists(SCONS_CONFIGURE_CACHE) \
+   and ('-c' in command_line_args or '--clean' in command_line_args):
+-    print 'all good: nothing to clean, but you might want to run "make distclean"'
++    print('all good: nothing to clean, but you might want to run "make distclean"')
+     Exit(0)
+ 
+ # initially populate environment with defaults and any possible custom arguments
+@@ -528,7 +528,7 @@ if not force_configure:
+ # rebuilds, e.g. for folks following trunk
+ for opt in pickle_store:
+     if not opt in env:
+-        #print 'missing opt', opt
++        #print('missing opt', opt)
+         preconfigured = False
+ 
+ # if custom arguments are supplied make sure to accept them
+@@ -616,7 +616,7 @@ def parse_config(context, config, checks
+             parsed = True
+         except OSError, e:
+             ret = False
+-            print ' (xml2-config not found!)'
++            print(' (xml2-config not found!)')
+     if not parsed:
+         if config in ('GDAL_CONFIG'):
+             # optional deps...
+@@ -652,7 +652,7 @@ def get_pkg_lib(context, config, lib):
+                 libname = 'gdal'
+         except Exception, e:
+             ret = False
+-            print ' unable to determine library name:'# %s' % str(e)
++            print(' unable to determine library name:\'# %s' % str(e))
+             return None
+     context.Result( libname )
+     return libname
+@@ -1115,7 +1115,7 @@ if not preconfigured:
+                     opts.files.append(conf)
+                     color_print(4,"SCons CONFIG found: '%s', variables will be inherited..." % conf)
+                     optfile = file(conf)
+-                    #print optfile.read().replace("\n", " ").replace("'","").replace(" = ","=")
++                    #print(optfile.read().replace("\n", " ").replace("'","").replace(" = ","="))
+                     optfile.close()
+ 
+                 elif not conf == SCONS_LOCAL_CONFIG:
+@@ -1636,7 +1636,7 @@ if not preconfigured:
+                 env['HAS_CAIRO'] = False
+                 env['SKIPPED_DEPS'].append('cairo')
+             else:
+-                print 'Checking for cairo lib and include paths... ',
++                print('Checking for cairo lib and include paths... ',)
+                 cmd = 'pkg-config --libs --cflags cairo'
+                 if env['RUNTIME_LINK'] == 'static':
+                     cmd += ' --static'
+@@ -1653,7 +1653,7 @@ if not preconfigured:
+                         if not inc in env['CPPPATH']:
+                             env["CAIRO_CPPPATHS"].append(inc)
+                     env['HAS_CAIRO'] = True
+-                    print 'yes'
++                    print('yes')
+                 except OSError,e:
+                     color_print(1,'no')
+                     env['SKIPPED_DEPS'].append('cairo')
+--- a/src/build.py
++++ b/src/build.py
+@@ -35,7 +35,7 @@ def call(cmd, silent=True):
+     if not stderr:
+         return stdin.strip()
+     elif not silent:
+-        print stderr
++        print(stderr)
+ 
+ def ldconfig(*args,**kwargs):
+     call('ldconfig')
+--- a/plugins/input/csv/build.py
++++ b/plugins/input/csv/build.py
+@@ -29,7 +29,7 @@ if env.get('BOOST_LIB_VERSION_FROM_HEADE
+         can_build = True
+ 
+ if not can_build:
+-    print 'WARNING: skipping building the optional CSV datasource plugin which requires boost >= 1.56'
++    print('WARNING: skipping building the optional CSV datasource plugin which requires boost >= 1.56')
+ else:
+     Import ('plugin_base')
+ 
+--- a/plugins/input/geojson/build.py
++++ b/plugins/input/geojson/build.py
+@@ -29,7 +29,7 @@ if env.get('BOOST_LIB_VERSION_FROM_HEADE
+         can_build = True
+ 
+ if not can_build:
+-    print 'WARNING: skipping building the optional geojson datasource plugin which requires boost >= 1.56'
++    print('WARNING: skipping building the optional geojson datasource plugin which requires boost >= 1.56')
+ else:
+ 
+     Import ('plugin_base')
+--- a/plugins/input/topojson/build.py
++++ b/plugins/input/topojson/build.py
+@@ -29,7 +29,7 @@ if env.get('BOOST_LIB_VERSION_FROM_HEADE
+         can_build = True
+ 
+ if not can_build:
+-    print 'WARNING: skipping building the optional topojson datasource plugin which requires boost >= 1.56'
++    print('WARNING: skipping building the optional topojson datasource plugin which requires boost >= 1.56')
+ else:
+     Import ('plugin_base')
+ 
+--- a/utils/mapnik-config/build.py
++++ b/utils/mapnik-config/build.py
+@@ -43,7 +43,7 @@ def GetMapnikLibVersion():
+     return version_string
+ 
+ if (GetMapnikLibVersion() != config_env['MAPNIK_VERSION_STRING']):
+-    print 'Error: version.hpp mismatch (%s) to cached value (%s): please reconfigure mapnik' % (GetMapnikLibVersion(),config_env['MAPNIK_VERSION_STRING'])
++    print('Error: version.hpp mismatch (%s) to cached value (%s): please reconfigure mapnik' % (GetMapnikLibVersion(),config_env['MAPNIK_VERSION_STRING']))
+     Exit(1)
+ 
+ config_variables = '''#!/usr/bin/env bash
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e1e916a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+scons-3.0.patch

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



More information about the Pkg-grass-devel mailing list