[gnome-continuous] patches: Tweak pycairo-buildsys to set CC=gcc



commit 3b3b0d6e873af175a1ecc80f4788d86446b2c275
Author: Colin Walters <walters verbum org>
Date:   Fri Jan 22 12:15:03 2016 -0500

    patches: Tweak pycairo-buildsys to set CC=gcc
    
    This should fix the fact that distutils picked up the cross
    compiler.
    
    http://stackoverflow.com/questions/16737260/how-to-tell-distutils-to-use-gcc

 patches/pycairo-buildsys.patch |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)
---
diff --git a/patches/pycairo-buildsys.patch b/patches/pycairo-buildsys.patch
index b908e8c..40759bd 100644
--- a/patches/pycairo-buildsys.patch
+++ b/patches/pycairo-buildsys.patch
@@ -1,38 +1,42 @@
-From 8802bba2f1b270c8f303c35e056a0ce68b88ab31 Mon Sep 17 00:00:00 2001
+From c837d80285c7fd70b8a212c6020b59006ae7714a Mon Sep 17 00:00:00 2001
 From: Colin Walters <walters verbum org>
 Date: Fri, 22 Jan 2016 10:50:30 -0500
 Subject: [PATCH] Implement cgwalters/build-api
 
 https://github.com/cgwalters/build-api/
 ---
- Makefile  | 6 ++++++
- configure | 4 ++++
- 2 files changed, 10 insertions(+)
+ Makefile  | 10 ++++++++++
+ configure |  4 ++++
+ 2 files changed, 14 insertions(+)
  create mode 100644 Makefile
  create mode 100755 configure
 
 diff --git a/Makefile b/Makefile
 new file mode 100644
-index 0000000..b83299a
+index 0000000..ce483e2
 --- /dev/null
 +++ b/Makefile
-@@ -0,0 +1,6 @@
+@@ -0,0 +1,10 @@
++# Override this so that we don't get the distutils compiler, which was
++# cross built for yocto, but we want self-hosting builds.
++CC ?= gcc
++
 +all:
-+      python setup.py build
++      env CC=$(CC) python3 setup.py build
 +
 +install:
-+      python setup.py install --root=$(DESTDIR)
++      python3 setup.py install --root=$(DESTDIR)
 +
 diff --git a/configure b/configure
 new file mode 100755
-index 0000000..1c8e45f
+index 0000000..04d1432
 --- /dev/null
 +++ b/configure
 @@ -0,0 +1,4 @@
 +#!/bin/bash
 +# http://people.gnome.org/~walters/docs/build-api.txt
 +#buildapi-variable-no-builddir
-+exec python3 setup.py build
++exec true
 -- 
 1.8.3.1
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]