[gcc-python-plugin] 0.9-4: fix build ordering in Makefile

dmalcolm dmalcolm at fedoraproject.org
Wed Aug 29 15:06:34 UTC 2012


commit 2f4c63919b6af4f5d4afd25ff1eb20779de1c746
Author: David Malcolm <dmalcolm at redhat.com>
Date:   Wed Aug 29 11:05:36 2012 -0400

    0.9-4: fix build ordering in Makefile

 build-deps.patch       |   13 +++++++++++++
 gcc-python-plugin.spec |    8 +++++++-
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/build-deps.patch b/build-deps.patch
new file mode 100644
index 0000000..39703b0
--- /dev/null
+++ b/build-deps.patch
@@ -0,0 +1,13 @@
+diff -up gcc-python-plugin-0.9/Makefile.build-deps gcc-python-plugin-0.9/Makefile
+--- gcc-python-plugin-0.9/Makefile.build-deps	2012-08-28 17:21:17.840268698 -0400
++++ gcc-python-plugin-0.9/Makefile	2012-08-28 17:22:09.286265182 -0400
+@@ -110,6 +110,9 @@ clean:
+ 	rm -f autogenerated*
+ 	rm -rf docs/_build
+ 
++%.o: %.c autogenerated-config.h
++	gcc -c $(CFLAGS) $*.c -o $*.o
++
+ autogenerated-config.h: configbuilder.py generate-config-h.py
+ 	$(PYTHON) generate-config-h.py -o $@ --gcc=$(GCC)
+ 
diff --git a/gcc-python-plugin.spec b/gcc-python-plugin.spec
index 42ef96a..bc4a952 100644
--- a/gcc-python-plugin.spec
+++ b/gcc-python-plugin.spec
@@ -43,7 +43,7 @@
 
 Name:           gcc-python-plugin
 Version:        0.9
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        GCC plugin that embeds Python
 
 Group:          Development/Languages
@@ -60,6 +60,8 @@ Patch2: 6938b178af142106f5a85172fd15d983407116d9.patch
 Patch3: skip-combinatorial-explosion-tests.patch
 # ^^^ based on 0b0dbca8f0538dca8fce4305f227c6e0e04f9424
 
+# Force build ordering in Makefile:
+Patch4: build-deps.patch
 
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -165,6 +167,7 @@ This package contains API documentation for the GCC Python plugin
 %patch1 -p1 -b .failing-tests
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 
@@ -412,6 +415,9 @@ CheckPlugin \
 %doc examples
 
 %changelog
+* Wed Aug 29 2012 David Malcolm <dmalcolm at redhat.com> - 0.9-4
+- fix build ordering in Makefile
+
 * Tue Aug 28 2012 David Malcolm <dmalcolm at redhat.com> - 0.9-3
 - rebuild against Python 3.3
 


More information about the scm-commits mailing list