diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-09-03 11:16:19 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-09-06 10:36:31 +0100 |
commit | 052e6676a45d0c4d31236dbaf0053a240f9f1289 (patch) | |
tree | a440eb41c9cecc00d016a4b99d12c533715fa67b /meta/recipes-support/serf/serf/0001-Fix-syntax-of-a-print-in-the-scons-file-to-unbreak-b.patch | |
parent | 74feaddda3b7cd5b3ab18d2f25bf5ef9581c9c47 (diff) | |
download | poky-052e6676a45d0c4d31236dbaf0053a240f9f1289.tar.gz |
serf: Fix Sconstruct build with python 3.7
These patches will be needed to build serf on hosts with
python 3.7+
(From OE-Core rev: ab0be544b392bbd6cb1dc91edd5fe8563d7de393)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/serf/serf/0001-Fix-syntax-of-a-print-in-the-scons-file-to-unbreak-b.patch')
-rw-r--r-- | meta/recipes-support/serf/serf/0001-Fix-syntax-of-a-print-in-the-scons-file-to-unbreak-b.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-support/serf/serf/0001-Fix-syntax-of-a-print-in-the-scons-file-to-unbreak-b.patch b/meta/recipes-support/serf/serf/0001-Fix-syntax-of-a-print-in-the-scons-file-to-unbreak-b.patch new file mode 100644 index 0000000000..4a5832ac1a --- /dev/null +++ b/meta/recipes-support/serf/serf/0001-Fix-syntax-of-a-print-in-the-scons-file-to-unbreak-b.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 99f6e1b0d68281b63218d6adfe68cd9e331ac5be Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 3 Sep 2018 10:50:08 -0700 | ||
4 | Subject: [PATCH] Fix syntax of a print() in the scons file to unbreak building | ||
5 | with most recent scons version. | ||
6 | |||
7 | * SConstruct Use Python 3.0 valid syntax to make Scons 3.0.0 happy on both python | ||
8 | 3.0 and 2.7. | ||
9 | |||
10 | Upstream-Status: Backport | ||
11 | [https://svn.apache.org/viewvc/serf/trunk/SConstruct?r1=1809132&r2=1811083&diff_format=h] | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | SConstruct | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/SConstruct b/SConstruct | ||
18 | index 1670459..18a45fa 100644 | ||
19 | --- a/SConstruct | ||
20 | +++ b/SConstruct | ||
21 | @@ -184,7 +184,7 @@ CALLOUT_OKAY = not (env.GetOption('clean') or env.GetOption('help')) | ||
22 | |||
23 | unknown = opts.UnknownVariables() | ||
24 | if unknown: | ||
25 | - print 'Warning: Used unknown variables:', ', '.join(unknown.keys()) | ||
26 | + print('Warning: Used unknown variables:', ', '.join(unknown.keys())) | ||
27 | |||
28 | apr = str(env['APR']) | ||
29 | apu = str(env['APU']) | ||