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-27 12:17:45 +0100 |
commit | d4234f8a2f6a200d32e5b72e99c9a2305c90f4e4 (patch) | |
tree | 75d2b23a447922f07cfe6b15d1051e9b78e44536 /meta/recipes-support/serf/serf/0003-gen_def.patch | |
parent | d759a0659b7831e56224aa0c552885b9bda82b93 (diff) | |
download | poky-d4234f8a2f6a200d32e5b72e99c9a2305c90f4e4.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)
(From OE-Core rev: ffe1795dc6daf9999e1be858a4e97a4c2cf44526)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@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,), | ||