1 |
commit: 892a8848e5718e75f5d2c8ee3916421de173f023 |
2 |
Author: Amy Winston <amynka <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 29 18:23:25 2016 +0000 |
4 |
Commit: Amy Winston <amynka <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 29 18:24:17 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=892a8848 |
7 |
|
8 |
dev-db/spatialite: validator patch added bug #571806 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
dev-db/spatialite/files/spatialite-4.1.1-validator.patch | 11 +++++++++++ |
13 |
dev-db/spatialite/spatialite-4.1.1.ebuild | 7 ++++++- |
14 |
2 files changed, 17 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-db/spatialite/files/spatialite-4.1.1-validator.patch b/dev-db/spatialite/files/spatialite-4.1.1-validator.patch |
17 |
new file mode 100644 |
18 |
index 0000000..55b2068 |
19 |
--- /dev/null |
20 |
+++ b/dev-db/spatialite/files/spatialite-4.1.1-validator.patch |
21 |
@@ -0,0 +1,11 @@ |
22 |
+--- src/shapefiles/validator.c 2013-06-29 08:53:15.000000000 +0200 |
23 |
++++ src/shapefiles/validatornew.c 2016-02-29 18:38:11.879981893 +0100 |
24 |
+@@ -3510,7 +3510,7 @@ |
25 |
+ |
26 |
+ /* silencing stupid compiler warnings */ |
27 |
+ if (sqlite == NULL || table == NULL || geom == NULL || |
28 |
+- ||report_path == NULL || n_rows == NULL || n_invalids == NULL) |
29 |
++ report_path == NULL || n_rows == NULL || n_invalids == NULL) |
30 |
+ table = NULL; |
31 |
+ |
32 |
+ if (err_msg == NULL) |
33 |
|
34 |
diff --git a/dev-db/spatialite/spatialite-4.1.1.ebuild b/dev-db/spatialite/spatialite-4.1.1.ebuild |
35 |
index c1c2e2d..a052891 100644 |
36 |
--- a/dev-db/spatialite/spatialite-4.1.1.ebuild |
37 |
+++ b/dev-db/spatialite/spatialite-4.1.1.ebuild |
38 |
@@ -7,7 +7,7 @@ EAPI=5 |
39 |
MY_PN="lib${PN}" |
40 |
MY_P="${MY_PN}-${PV}" |
41 |
|
42 |
-inherit multilib |
43 |
+inherit multilib eutils |
44 |
|
45 |
DESCRIPTION="A complete Spatial DBMS in a nutshell built upon sqlite" |
46 |
HOMEPAGE="http://www.gaia-gis.it/gaia-sins/" |
47 |
@@ -27,11 +27,16 @@ DEPEND="${RDEPEND}" |
48 |
|
49 |
S=${WORKDIR}/${MY_P} |
50 |
|
51 |
+src_prepare() { |
52 |
+ epatch "${FILESDIR}/${P}-validator.patch" |
53 |
+} |
54 |
+ |
55 |
src_configure() { |
56 |
econf \ |
57 |
--disable-static \ |
58 |
--enable-geocallbacks \ |
59 |
--enable-epsg \ |
60 |
+ --disable-examples \ #broken in 4.1.1 |
61 |
$(use_enable geos) \ |
62 |
$(use_enable geos geosadvanced) \ |
63 |
$(use_enable iconv) \ |