mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
gtkmathview: Use git for SRC_URI
Drop upstreamed patches Fix cross compile and compiling with newer g++ Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
parent
b22ffc5f7e
commit
d24b01b262
|
|
@ -0,0 +1,28 @@
|
|||
From c92890c5e18bb6ee23bdb14074bacf306dd9428f Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Tue, 5 May 2015 20:35:01 -0700
|
||||
Subject: [PATCH] include cstdio to get printf definitions
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/engine/boxml/BoxMLHOVElement.cc | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/engine/boxml/BoxMLHOVElement.cc b/src/engine/boxml/BoxMLHOVElement.cc
|
||||
index 1a2812c..96c9eea 100644
|
||||
--- a/src/engine/boxml/BoxMLHOVElement.cc
|
||||
+++ b/src/engine/boxml/BoxMLHOVElement.cc
|
||||
@@ -21,7 +21,7 @@
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
#include <config.h>
|
||||
-
|
||||
+#include <cstdio>
|
||||
#include "BoxMLAttributeSignatures.hh"
|
||||
#include "BoxMLHOVElement.hh"
|
||||
#include "BoxMLHElement.hh"
|
||||
--
|
||||
2.1.4
|
||||
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
--- /tmp/mathVariantAux.cc 2008-07-13 15:56:56.000000000 +0200
|
||||
+++ gtkmathview-0.8.0/src/engine/mathml/mathVariantAux.cc 2008-07-13 15:57:46.893198000 +0200
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
#include <cassert>
|
||||
|
||||
+#include <string.h>
|
||||
+
|
||||
#include "mathVariantAux.hh"
|
||||
|
||||
static MathVariantAttributes vattr[] = {
|
||||
--- /tmp/T1_FontDataBase.cc 2008-07-13 16:25:24.000000000 +0200
|
||||
+++ gtkmathview-0.8.0/src/backend/ps/T1_FontDataBase.cc 2008-07-13 16:25:47.123198000 +0200
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <config.h>
|
||||
#include <map>
|
||||
#include <string>
|
||||
+#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <iostream>
|
||||
#include <list>
|
||||
--- /tmp/SMS.cc 2008-07-13 16:27:23.000000000 +0200
|
||||
+++ gtkmathview-0.8.0/mathmlsvg/SMS.cc 2008-07-13 16:27:41.543198000 +0200
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <sstream>
|
||||
+#include <string.h>
|
||||
#include "defs.h"
|
||||
#include "AbstractLogger.hh"
|
||||
#include "ValueConversion.hh"
|
||||
--- /tmp/main.cc 2008-07-13 16:29:11.000000000 +0200
|
||||
+++ gtkmathview-0.8.0/mathmlsvg/main.cc 2008-07-13 16:29:28.813198000 +0200
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <fstream>
|
||||
-
|
||||
+#include <string.h>
|
||||
#include <popt.h>
|
||||
|
||||
// needed for old versions of GCC, must come before String.hh!
|
||||
--- /tmp/main.cc 2008-07-13 16:30:11.000000000 +0200
|
||||
+++ gtkmathview-0.8.0/mathmlps/main.cc 2008-07-13 16:30:33.183198000 +0200
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <fstream>
|
||||
-
|
||||
+#include <string.h>
|
||||
#include <popt.h>
|
||||
|
||||
// needed for old versions of GCC, must come before String.hh!
|
||||
--- gtkmathview-0.8.0.orig/src/common/AbstractLogger.cc 2007-08-17 12:02:45.000000000 +0200
|
||||
+++ gtkmathview-0.8.0/src/common/AbstractLogger.cc 2010-02-01 10:19:46.000000000 +0100
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <stdarg.h>
|
||||
+#include <stdio.h>
|
||||
|
||||
#include "AbstractLogger.hh"
|
||||
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
../../../src/frontend/common/TemplateBuilder.hh:50:113: warning: 'linkerAssoc' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
|
||||
../../../src/frontend/common/TemplateBuilder.hh:50:113: note: declarations in dependent base 'custom_reader_Builder' are not found by unqualified lookup
|
||||
../../../src/frontend/common/TemplateBuilder.hh:50:113: note: use 'this->linkerAssoc' instead
|
||||
../../../src/frontend/common/TemplateBuilder.hh:54:111: error: redeclaration of 'SmartPtr<BoxMLDecorElement> elem'
|
||||
../../../src/frontend/common/TemplateBuilder.hh:50:49: error: 'SmartPtr<BoxMLDecorElement> elem' previously declared here
|
||||
../../../src/frontend/common/TemplateBuilder.hh:55:2: warning: 'linkerAdd' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
|
||||
../../../src/frontend/common/TemplateBuilder.hh:55:2: note: declarations in dependent base 'custom_reader_Builder' are not found by unqualified lookup
|
||||
../../../src/frontend/common/TemplateBuilder.hh:55:2: note: use 'this->linkerAdd' instead
|
||||
|
||||
--- gtkmathview-0.8.0.orig/src/frontend/common/TemplateBuilder.hh 2007-08-17 12:02:34.000000000 +0200
|
||||
+++ gtkmathview-0.8.0/src/frontend/common/TemplateBuilder.hh 2012-04-30 11:45:07.000000000 +0200
|
||||
@@ -47,12 +47,13 @@
|
||||
SmartPtr<typename ElementBuilder::type>
|
||||
getElement(const typename Model::Element& el) const
|
||||
{
|
||||
- if (SmartPtr<typename ElementBuilder::type> elem = smart_cast<typename ElementBuilder::type>(linkerAssoc(el)))
|
||||
+ SmartPtr<typename ElementBuilder::type> elem = NULL;
|
||||
+ if (elem = smart_cast<typename ElementBuilder::type>(this->linkerAssoc(el)))
|
||||
return elem;
|
||||
else
|
||||
{
|
||||
- SmartPtr<typename ElementBuilder::type> elem = ElementBuilder::type::create(ElementBuilder::getContext(*this));
|
||||
- linkerAdd(el, elem);
|
||||
+ elem = ElementBuilder::type::create(ElementBuilder::getContext(*this));
|
||||
+ this->linkerAdd(el, elem);
|
||||
return elem;
|
||||
}
|
||||
}
|
||||
--- gtkmathview-0.8.0.orig/mathmlsvg/main.cc 2012-04-30 11:35:19.000000000 +0200
|
||||
+++ gtkmathview-0.8.0/mathmlsvg/main.cc 2012-04-30 11:51:19.000000000 +0200
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <fstream>
|
||||
+#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <popt.h>
|
||||
|
||||
--- gtkmathview-0.8.0.orig/mathmlps/main.cc 2012-04-30 11:35:19.000000000 +0200
|
||||
+++ gtkmathview-0.8.0/mathmlps/main.cc 2012-04-30 11:50:57.000000000 +0200
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <fstream>
|
||||
+#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <popt.h>
|
||||
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
Index: gtkmathview-0.8.0/src/frontend/common/TemplateElementIterator.hh
|
||||
===================================================================
|
||||
--- gtkmathview-0.8.0.orig/src/frontend/common/TemplateElementIterator.hh
|
||||
+++ gtkmathview-0.8.0/src/frontend/common/TemplateElementIterator.hh
|
||||
@@ -43,7 +43,7 @@ protected:
|
||||
findValidNodeForward(const typename Model::Node& p0) const
|
||||
{
|
||||
for (typename Model::Node p = p0; p; p = Model::getNextSibling(p))
|
||||
- if (valid(p)) return Model::asElement(p);
|
||||
+ if (this->valid(p)) return Model::asElement(p);
|
||||
return typename Model::Element();
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
Use build_cc to compile the programs to run on build host
|
||||
helps with cross compiling
|
||||
|
||||
Upstream-Status: Inappropriate [Cross-compiled OE specific]
|
||||
|
||||
diff --git a/src/common/mathvariants/Makefile.am b/src/common/mathvariants/Makefile.am
|
||||
index 636ccf0..ed9921d 100644
|
||||
--- a/src/common/mathvariants/Makefile.am
|
||||
+++ b/src/common/mathvariants/Makefile.am
|
||||
@@ -52,7 +52,7 @@ XSLTPROC = xsltproc
|
||||
%.cc : %_gen.cc $(srcdir)/variant.top $(srcdir)/variant.bot
|
||||
cat $(srcdir)/variant.top >$@
|
||||
$(XSLTPROC) --novalid --param temp "false()" $(srcdir)/extract.xsl $(<:%_gen.cc=$(srcdir)/xml/%.xml) >>$@
|
||||
- $(CXX) -o $(@:%.cc=%) -I$(top_builddir)/auto $<
|
||||
+ $(BUILD_CXX) -o $(@:%.cc=%) -I$(top_builddir)/auto $<
|
||||
echo "Char32 " >>$@
|
||||
basename map_variant_$@ .cc | tr "-" "_" >>$@
|
||||
echo "(Char32 ch)" >>$@
|
||||
|
|
@ -5,16 +5,17 @@ LICENSE = "LGPLv3"
|
|||
LIC_FILES_CHKSUM = "file://COPYING;md5=6a6a8e020838b23406c81b19c1d46df6"
|
||||
|
||||
PR = "r3"
|
||||
SRCREV = "0bc2cfa0a47aed2c8a63abd989cb8da4dcceb2ec"
|
||||
PV = "0.8.0+git${SRCPV}"
|
||||
|
||||
SRC_URI = "http://helm.cs.unibo.it/mml-widget/sources/${BP}.tar.gz \
|
||||
file://mathview-gcc43x.diff \
|
||||
file://mathview-gcc47x.diff \
|
||||
file://qualify-lookup.diff \
|
||||
"
|
||||
SRC_URI[md5sum] = "b53564e553728d4b69f7d366dfeb5299"
|
||||
SRC_URI[sha256sum] = "1dc30175da6a3c560a7d62d1abe1c2f9829d988e6f1a7c5e766544575c558c43"
|
||||
SRC_URI = "git://github.com/GNOME/gtkmathview.git \
|
||||
file://use_hostcxx.patch \
|
||||
file://0001-include-cstdio-to-get-printf-definitions.patch \
|
||||
"
|
||||
|
||||
inherit autotools-brokensep pkgconfig
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
do_configure_prepend() {
|
||||
sed -i -e s:AM_BINRELOC::g ${S}/configure.ac
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user