aboutsummaryrefslogtreecommitdiffstats
path: root/main/gobject-introspection/0008-scanner-split-CC-environment-variable.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-10 13:53:54 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-10 14:01:45 +0000
commit5b8f8a57ab0b5d233d83e6c22988972f07d19390 (patch)
treeedcfdbbd0162064f13b881c06e6f0e97722ad8d9 /main/gobject-introspection/0008-scanner-split-CC-environment-variable.patch
parent336acafdb5ccf4185d7ad28d58fc92d3011d986a (diff)
downloadaports-5b8f8a57ab0b5d233d83e6c22988972f07d19390.tar.bz2
aports-5b8f8a57ab0b5d233d83e6c22988972f07d19390.tar.xz
main/gobject-introspection: upgrade to 1.30.0
Diffstat (limited to 'main/gobject-introspection/0008-scanner-split-CC-environment-variable.patch')
-rw-r--r--main/gobject-introspection/0008-scanner-split-CC-environment-variable.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/main/gobject-introspection/0008-scanner-split-CC-environment-variable.patch b/main/gobject-introspection/0008-scanner-split-CC-environment-variable.patch
new file mode 100644
index 0000000000..24a12df912
--- /dev/null
+++ b/main/gobject-introspection/0008-scanner-split-CC-environment-variable.patch
@@ -0,0 +1,31 @@
+From 99abcd268792ef3531346a7f885cc55d2ab0f8f4 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Mon, 10 Oct 2011 13:37:55 +0000
+Subject: [PATCH 8/8] scanner: split CC environment variable
+
+This fixes compilation where CC="ccache gcc" and similar.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=660160
+
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+---
+ giscanner/sourcescanner.py | 3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/giscanner/sourcescanner.py b/giscanner/sourcescanner.py
+index 5f0ec2d..1e61ecf 100644
+--- a/giscanner/sourcescanner.py
++++ b/giscanner/sourcescanner.py
+@@ -274,7 +274,8 @@ class SourceScanner(object):
+
+ defines = ['__GI_SCANNER__']
+ undefs = []
+- cpp_args = [os.environ.get('CC', 'cc'), '-E', '-C', '-I.', '-']
++ cpp_args = os.environ.get('CC', 'cc').split()
++ cpp_args += ['-E', '-C', '-I.', '-']
+
+ cpp_args += self._cpp_options
+ proc = subprocess.Popen(cpp_args,
+--
+1.7.7
+