public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/python-efl/files/
@ 2020-09-22  6:01 Joonas Niilola
  0 siblings, 0 replies; only message in thread
From: Joonas Niilola @ 2020-09-22  6:01 UTC (permalink / raw
  To: gentoo-commits

commit:     d7c2885608dafa2e5190d51513c867988b6a8c97
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 22 05:59:44 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Sep 22 06:01:17 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7c28856

dev-python/python-efl: fix crosscompile with clang

Closes: https://bugs.gentoo.org/743787
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 .../python-efl/files/python-efl-1.24-clang.patch   | 29 ++++++----------------
 1 file changed, 8 insertions(+), 21 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
index 7702c38d9f3..a6f18d86630 100644
--- a/dev-python/python-efl/files/python-efl-1.24-clang.patch
+++ b/dev-python/python-efl/files/python-efl-1.24-clang.patch
@@ -1,21 +1,7 @@
-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 = []
+diff -Naur a/setup.py b/setup.py
+--- a/setup.py	2020-04-23 08:20:55.742402600 +0300
++++ b/setup.py	2020-09-22 08:29:43.065243208 +0300
+@@ -211,13 +211,21 @@
  py_modules = []
  packages = ["efl"]
  common_cflags = [
@@ -35,10 +21,11 @@ index 3ed0028..a863a19 100755
 +# remove clang unknown flags
 +if os.getenv("CC") == "clang":
 +    common_cflags.remove('-fno-var-tracking-assignments')
++if os.getenv("CC") == "x86_64-pc-linux-gnu-clang":
++    common_cflags.remove('-fno-var-tracking-assignments')
++if os.getenv("CC") == "i686-pc-linux-gnu-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
-


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-22  6:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-22  6:01 [gentoo-commits] repo/gentoo:master commit in: dev-python/python-efl/files/ Joonas Niilola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox