From 8602fb127c4c997e63420755391194fd6e2af8ad Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Wed, 12 Mar 2014 13:53:40 +0100 Subject: [PATCH] python: add patch to use the pgen we compiled at stage 0 and which can be run on the build host when cross-compiling --- python/python/use-hostpgen.patch.cross | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 python/python/use-hostpgen.patch.cross diff --git a/python/python/use-hostpgen.patch.cross b/python/python/use-hostpgen.patch.cross new file mode 100644 index 000000000..0fff973a2 --- /dev/null +++ b/python/python/use-hostpgen.patch.cross @@ -0,0 +1,37 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../python/use-hostpgen.patch.cross +# Copyright (C) 2014 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +Use the pgen we compiled at stage 0 and which can be run on the build host + +--- a/Makefile.pre.in 2014-03-12 11:29:38.642977159 +0100 ++++ b/Makefile.pre.in 2014-03-12 11:57:01.161011331 +0100 +@@ -231,6 +231,7 @@ + ########################################################################## + # Parser + PGEN= Parser/pgen$(EXE) ++HOSTPGEN= python-pgen + + PSRCS= \ + Parser/acceler.c \ +@@ -598,7 +599,7 @@ + $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGENSRCS) + @$(MKDIR_P) Include + $(MAKE) $(PGEN) +- $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) ++ $(HOSTPGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) + $(GRAMMAR_C): $(GRAMMAR_H) $(GRAMMAR_INPUT) $(PGENSRCS) + $(MAKE) $(GRAMMAR_H) + touch $(GRAMMAR_C)