all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 280c5d34a2b5492b1cd3a035a08ce1fbba37b757 717 bytes (raw)
name: gnu/packages/patches/gobject-introspection-cc.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
Try $CC, 'cc', and finally 'gcc'.
--- a/giscanner/sourcescanner.py.orig	2013-10-16 03:41:25.381719000 +0200
+++ b/giscanner/sourcescanner.py	2013-10-16 03:43:35.533719000 +0200
@@ -277,6 +277,11 @@
         defines = ['__GI_SCANNER__']
         undefs = []
         cpp_args = os.environ.get('CC', 'cc').split()  # support CC="ccache gcc"
+        if (cpp_args == ['cc'] and
+            not any(map(lambda x: os.access(os.path.join(x, 'cc'), os.X_OK),
+                        os.environ.get('PATH')))):
+            cpp_args = ['GUIX_GCC_PATH']
+
         if 'cl' in cpp_args:
             # The Microsoft compiler/preprocessor (cl) does not accept
             # source input from stdin (the '-' flag), so we need

debug log:

solving 280c5d3 ...
found 280c5d3 in https://yhetil.org/guix/1385774016-1418-2-git-send-email-tipecaml@gmail.com/

applying [1/1] https://yhetil.org/guix/1385774016-1418-2-git-send-email-tipecaml@gmail.com/
diff --git a/gnu/packages/patches/gobject-introspection-cc.patch b/gnu/packages/patches/gobject-introspection-cc.patch
new file mode 100644
index 0000000..280c5d3

Checking patch gnu/packages/patches/gobject-introspection-cc.patch...
Applied patch gnu/packages/patches/gobject-introspection-cc.patch cleanly.

index at:
100644 280c5d34a2b5492b1cd3a035a08ce1fbba37b757	gnu/packages/patches/gobject-introspection-cc.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.