From c2d22cc48bcbaa4e37ea66de2250f94aae384ac1 Mon Sep 17 00:00:00 2001
From: Arnaud Degroote <arnaud.degroote@laas.fr>
Date: Thu, 12 Dec 2013 14:18:53 +0100
Subject: [PATCH] [wip/mrpt] Add a patch to "force" the compilation with eigen3
 sparse lib

Bump PKGREVISION
---
 mrpt/Makefile         |  1 +
 mrpt/distinfo         |  1 +
 mrpt/patches/patch-aa | 13 +++++++++++++
 3 files changed, 15 insertions(+)
 create mode 100644 mrpt/patches/patch-aa

diff --git a/mrpt/Makefile b/mrpt/Makefile
index 1ad986d0..d7d0e43d 100644
--- a/mrpt/Makefile
+++ b/mrpt/Makefile
@@ -5,6 +5,7 @@
 DISTNAME=		mrpt-${VERSION}
 VERSION=		1.0.2
 CATEGORIES=		wip
+PKGREVISION=	1
 MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=mrpt/}
 MASTER_REPOSITORY=	https://github.com/jlblancoc/mrpt
 
diff --git a/mrpt/distinfo b/mrpt/distinfo
index 1ce747b4..bcc27adc 100644
--- a/mrpt/distinfo
+++ b/mrpt/distinfo
@@ -1,3 +1,4 @@
 SHA1 (mrpt-1.0.2.tar.gz) = b9c014df278c46f46f8ecba8d5e3d81332631db1
 RMD160 (mrpt-1.0.2.tar.gz) = 9918184447d7e3f106c98588e235accafe4f1171
 Size (mrpt-1.0.2.tar.gz) = 23763000 bytes
+SHA1 (patch-aa) = a457469fb9a6bb1e0d4e6a63779ad8be78648382
diff --git a/mrpt/patches/patch-aa b/mrpt/patches/patch-aa
new file mode 100644
index 00000000..ad325f51
--- /dev/null
+++ b/mrpt/patches/patch-aa
@@ -0,0 +1,13 @@
+Workaround for "old" eigen library
+
+--- libs/maps/include/mrpt/slam/CRandomFieldGridMap2D.h.orig	2013-12-12 12:03:49.905721000 +0100
++++ libs/maps/include/mrpt/slam/CRandomFieldGridMap2D.h	2013-12-12 12:04:03.926058000 +0100
+@@ -44,6 +44,8 @@
+ #include <mrpt/slam/CMetricMap.h>
+ #include <mrpt/slam/COccupancyGridMap2D.h>
+ 
++#define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET
++
+ #include <Eigen/Sparse>
+ 
+ #include <mrpt/maps/link_pragmas.h>
-- 
GitLab