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/0003-gen_def.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/0003-gen_def.patch')
-rw-r--r-- | meta/recipes-support/serf/serf/0003-gen_def.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-support/serf/serf/0003-gen_def.patch b/meta/recipes-support/serf/serf/0003-gen_def.patch new file mode 100644 index 0000000000..e37e9034b0 --- /dev/null +++ b/meta/recipes-support/serf/serf/0003-gen_def.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | From 98e793d9f2250e7c1f9f1eb5dfd616a6a8829e9a Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 3 Sep 2018 11:12:27 -0700 | ||
4 | Subject: [PATCH] gen_def | ||
5 | |||
6 | --- | ||
7 | SConstruct | 2 ++ | ||
8 | 1 file changed, 2 insertions(+) | ||
9 | |||
10 | diff --git a/SConstruct b/SConstruct | ||
11 | index 571bdce..877731e 100644 | ||
12 | --- a/SConstruct | ||
13 | +++ b/SConstruct | ||
14 | @@ -158,6 +158,8 @@ env = Environment(variables=opts, | ||
15 | ENV = os.environ, | ||
16 | ) | ||
17 | |||
18 | +gen_def_script = env.File('build/gen_def.py').rstr() | ||
19 | + | ||
20 | env.Append(BUILDERS = { | ||
21 | 'GenDef' : | ||
22 | Builder(action = '"%s" "%s" $SOURCES > $TARGET' % (sys.executable, gen_def_script,), | ||