diff options
author | Joonas Niilola <juippis@gentoo.org> | 2020-08-21 09:16:24 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-08-21 09:17:04 +0300 |
commit | 87855603cd5e4d066b6a5d96f1f78d9500f84ec0 (patch) | |
tree | b873922067b9ec03f71795d406b4fe676483ee53 /dev-python/python-efl | |
parent | dev-util/google-perftools: fix tests on musl (diff) | |
download | gentoo-87855603cd5e4d066b6a5d96f1f78d9500f84ec0.tar.gz gentoo-87855603cd5e4d066b6a5d96f1f78d9500f84ec0.tar.bz2 gentoo-87855603cd5e4d066b6a5d96f1f78d9500f84ec0.zip |
dev-python/python-efl: fix 1.24 build with clang
Closes: https://bugs.gentoo.org/738294
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python/python-efl')
-rw-r--r-- | dev-python/python-efl/files/python-efl-1.24-clang.patch | 44 | ||||
-rw-r--r-- | dev-python/python-efl/python-efl-1.24.0.ebuild | 2 |
2 files changed, 46 insertions, 0 deletions
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 new file mode 100644 index 000000000000..7702c38d9f3e --- /dev/null +++ b/dev-python/python-efl/files/python-efl-1.24-clang.patch @@ -0,0 +1,44 @@ +From 5a02f132107abc6a7d022eb349f7ff6338b71feb Mon Sep 17 00:00:00 2001 +From: Dave Andreoli <dave@gurumeditation.it> +Date: Thu, 25 Jun 2020 18:54:03 +0200 +Subject: Do not fail when build with CC="clang" + +clang seems much better in building elementary, while gcc need a lot +of ram and tend to fail badly + +So for now on clang is the suggested compiler to use +--- + setup.py | 16 ++++++++++------ + 1 file changed, 10 insertions(+), 6 deletions(-) + +diff --git a/setup.py b/setup.py +index 3ed0028..a863a19 100755 +--- a/setup.py ++++ b/setup.py +@@ -211,13 +211,17 @@ ext_modules = [] + py_modules = [] + packages = ["efl"] + common_cflags = [ +- "-fno-var-tracking-assignments", # seems to lower the mem used during build +- "-Wno-misleading-indentation", # not needed (we don't indent the C code) +- "-Wno-deprecated-declarations", # we bind deprecated functions +- "-Wno-unused-variable", # eo_instance_from_object() is unused +- "-Wno-format-security", # some cc don't like the way cython use EINA_LOG macros +- # "-Werror", "-Wfatal-errors" # use this to stop build on first warnings ++ "-fno-var-tracking-assignments", # seems to lower the mem used during build ++ "-Wno-misleading-indentation", # not needed (we don't indent the C code) ++ "-Wno-deprecated-declarations", # we bind deprecated functions ++ "-Wno-unused-variable", # eo_instance_from_object() is unused ++ "-Wno-format-security", # some cc don't like the way cython use EINA_LOG macros ++ # "-Werror", "-Wfatal-errors" # use this to stop build on first warnings + ] ++# remove clang unknown flags ++if os.getenv("CC") == "clang": ++ common_cflags.remove('-fno-var-tracking-assignments') ++ + + if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv): + sys.stdout.write("Python-EFL: %s\n" % RELEASE) +-- +cgit v1.2.1 + diff --git a/dev-python/python-efl/python-efl-1.24.0.ebuild b/dev-python/python-efl/python-efl-1.24.0.ebuild index 5e2dc4efcf19..d1a7a54ab74b 100644 --- a/dev-python/python-efl/python-efl-1.24.0.ebuild +++ b/dev-python/python-efl/python-efl-1.24.0.ebuild @@ -29,6 +29,8 @@ BDEPEND="virtual/pkgconfig media-gfx/graphviz )" +PATCHES=( "${FILESDIR}/python-efl-1.24-clang.patch" ) + src_prepare() { default |