Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-efl/files/, dev-python/python-efl/
Date: Fri, 21 Aug 2020 06:17:16
Message-Id: 1597990624.87855603cd5e4d066b6a5d96f1f78d9500f84ec0.juippis@gentoo
1 commit: 87855603cd5e4d066b6a5d96f1f78d9500f84ec0
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 21 06:16:24 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 21 06:17:04 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87855603
7
8 dev-python/python-efl: fix 1.24 build with clang
9
10 Closes: https://bugs.gentoo.org/738294
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 .../python-efl/files/python-efl-1.24-clang.patch | 44 ++++++++++++++++++++++
14 dev-python/python-efl/python-efl-1.24.0.ebuild | 2 +
15 2 files changed, 46 insertions(+)
16
17 diff --git a/dev-python/python-efl/files/python-efl-1.24-clang.patch b/dev-python/python-efl/files/python-efl-1.24-clang.patch
18 new file mode 100644
19 index 00000000000..7702c38d9f3
20 --- /dev/null
21 +++ b/dev-python/python-efl/files/python-efl-1.24-clang.patch
22 @@ -0,0 +1,44 @@
23 +From 5a02f132107abc6a7d022eb349f7ff6338b71feb Mon Sep 17 00:00:00 2001
24 +From: Dave Andreoli <dave@××××××××××××××.it>
25 +Date: Thu, 25 Jun 2020 18:54:03 +0200
26 +Subject: Do not fail when build with CC="clang"
27 +
28 +clang seems much better in building elementary, while gcc need a lot
29 +of ram and tend to fail badly
30 +
31 +So for now on clang is the suggested compiler to use
32 +---
33 + setup.py | 16 ++++++++++------
34 + 1 file changed, 10 insertions(+), 6 deletions(-)
35 +
36 +diff --git a/setup.py b/setup.py
37 +index 3ed0028..a863a19 100755
38 +--- a/setup.py
39 ++++ b/setup.py
40 +@@ -211,13 +211,17 @@ ext_modules = []
41 + py_modules = []
42 + packages = ["efl"]
43 + common_cflags = [
44 +- "-fno-var-tracking-assignments", # seems to lower the mem used during build
45 +- "-Wno-misleading-indentation", # not needed (we don't indent the C code)
46 +- "-Wno-deprecated-declarations", # we bind deprecated functions
47 +- "-Wno-unused-variable", # eo_instance_from_object() is unused
48 +- "-Wno-format-security", # some cc don't like the way cython use EINA_LOG macros
49 +- # "-Werror", "-Wfatal-errors" # use this to stop build on first warnings
50 ++ "-fno-var-tracking-assignments", # seems to lower the mem used during build
51 ++ "-Wno-misleading-indentation", # not needed (we don't indent the C code)
52 ++ "-Wno-deprecated-declarations", # we bind deprecated functions
53 ++ "-Wno-unused-variable", # eo_instance_from_object() is unused
54 ++ "-Wno-format-security", # some cc don't like the way cython use EINA_LOG macros
55 ++ # "-Werror", "-Wfatal-errors" # use this to stop build on first warnings
56 + ]
57 ++# remove clang unknown flags
58 ++if os.getenv("CC") == "clang":
59 ++ common_cflags.remove('-fno-var-tracking-assignments')
60 ++
61 +
62 + if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv):
63 + sys.stdout.write("Python-EFL: %s\n" % RELEASE)
64 +--
65 +cgit v1.2.1
66 +
67
68 diff --git a/dev-python/python-efl/python-efl-1.24.0.ebuild b/dev-python/python-efl/python-efl-1.24.0.ebuild
69 index 5e2dc4efcf1..d1a7a54ab74 100644
70 --- a/dev-python/python-efl/python-efl-1.24.0.ebuild
71 +++ b/dev-python/python-efl/python-efl-1.24.0.ebuild
72 @@ -29,6 +29,8 @@ BDEPEND="virtual/pkgconfig
73 media-gfx/graphviz
74 )"
75
76 +PATCHES=( "${FILESDIR}/python-efl-1.24-clang.patch" )
77 +
78 src_prepare() {
79 default