summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-08-24 15:23:53 -0700
committerKhem Raj <raj.khem@gmail.com>2024-08-24 15:46:31 -0700
commit5d3486da55394b3efb6c7937a82d88c25ae2f483 (patch)
treef442e0e540c79bb18a81d646397ef99b17770f0c
parent3d0e3ddd7a8ca1fe48862986956328f4efd35fe5 (diff)
downloadmeta-openembedded-5d3486da55394b3efb6c7937a82d88c25ae2f483.tar.gz
libspatialite: Upgrade to 5.1
- Drop the libtool patch its already fixed in this version - Add a patch to support libxml2 2.13+ Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-navigation/libspatialite/libspatialite/0001-wfs-Cover-xmlNanoHTTPCleanup-with-LIBXML_HTTP_ENABLE.patch29
-rw-r--r--meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_macros.patch14
-rw-r--r--meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_pkgconfig.patch12
-rw-r--r--meta-oe/recipes-navigation/libspatialite/libspatialite_5.1.0.bb (renamed from meta-oe/recipes-navigation/libspatialite/libspatialite_5.0.1.bb)5
4 files changed, 37 insertions, 23 deletions
diff --git a/meta-oe/recipes-navigation/libspatialite/libspatialite/0001-wfs-Cover-xmlNanoHTTPCleanup-with-LIBXML_HTTP_ENABLE.patch b/meta-oe/recipes-navigation/libspatialite/libspatialite/0001-wfs-Cover-xmlNanoHTTPCleanup-with-LIBXML_HTTP_ENABLE.patch
new file mode 100644
index 000000000..daef7fab4
--- /dev/null
+++ b/meta-oe/recipes-navigation/libspatialite/libspatialite/0001-wfs-Cover-xmlNanoHTTPCleanup-with-LIBXML_HTTP_ENABLE.patch
@@ -0,0 +1,29 @@
1From 406e841b3e011e1090f23dba12b12cdd9ec4707e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 24 Aug 2024 15:19:35 -0700
4Subject: [PATCH] wfs: Cover xmlNanoHTTPCleanup with LIBXML_HTTP_ENABLED
5
6libxml2 has deprecated internal http support [1]
7
8[1] https://www.gaia-gis.it/fossil/libspatialite/tktview?name=7c452740fe
9
10Upstream-Status: Pending
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 src/wfs/wfs_in.c | 2 ++
14 1 file changed, 2 insertions(+)
15
16diff --git a/src/wfs/wfs_in.c b/src/wfs/wfs_in.c
17index 1cfe39d..41ad2ab 100644
18--- a/src/wfs/wfs_in.c
19+++ b/src/wfs/wfs_in.c
20@@ -4638,7 +4638,9 @@ SPATIALITE_DECLARE void
21 reset_wfs_http_connection (void)
22 {
23 /* Resets the libxml2 "nano HTTP": useful when changing the HTTP_PROXY settings */
24+#ifdef LIBXML_HTTP_ENABLED
25 xmlNanoHTTPCleanup ();
26+#endif
27 }
28
29 #else /* LIBXML2 isn't enabled */
diff --git a/meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_macros.patch b/meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_macros.patch
deleted file mode 100644
index 6f1c165f5..000000000
--- a/meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_macros.patch
+++ /dev/null
@@ -1,14 +0,0 @@
1Upstream-Status: Pending
2
3diff -rupN --no-dereference libspatialite-5.0.1/configure.ac libspatialite-5.0.1-new/configure.ac
4--- libspatialite-5.0.1/configure.ac 2021-03-08 08:57:18.748858216 +0100
5+++ libspatialite-5.0.1-new/configure.ac 2021-03-08 08:57:18.751858215 +0100
6@@ -96,7 +96,7 @@ AC_PROG_INSTALL
7 AC_PROG_LN_S
8 AC_PROG_MAKE_SET
9 AC_LIBTOOL_WIN32_DLL
10-AC_PROG_LIBTOOL
11+LT_INIT
12
13 # Checks for typedefs, structures, and compiler characteristics.
14 AC_C_CONST
diff --git a/meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_pkgconfig.patch b/meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_pkgconfig.patch
index de6e50a58..4b381eda8 100644
--- a/meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_pkgconfig.patch
+++ b/meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_pkgconfig.patch
@@ -1,13 +1,13 @@
1Upstream-Status: Pending 1Upstream-Status: Pending
2 2
3diff -rupN libspatialite-5.0.1/spatialite.pc.in libspatialite-5.0.1-new/spatialite.pc.in 3--- a/spatialite.pc.in
4--- libspatialite-5.0.1/spatialite.pc.in 2021-02-07 16:53:46.000000000 +0100 4+++ b/spatialite.pc.in
5+++ libspatialite-5.0.1-new/spatialite.pc.in 2021-02-10 09:54:09.647552994 +0100 5@@ -8,5 +8,7 @@ includedir=@includedir@
6@@ -8,5 +8,6 @@ includedir=@includedir@
7 Name: spatialite 6 Name: spatialite
8 Description: Spatial SQL database engine based on SQLite 7 Description: Spatial SQL database engine based on SQLite
9 Version: @VERSION@ 8 Version: @VERSION@
10-Libs: -L${libdir} -lspatialite @LIBS@ @LIBXML2_LIBS@ -lm 9-Libs: -L${libdir} -lspatialite @LIBS@ @LIBXML2_LIBS@ @SQLITE3_LIBS@ -lm
11+Libs.private: -L${libdir} @LIBS@ @LIBXML2_LIBS@ -lm 10+Libs.private: -L${libdir} @LIBS@ @LIBXML2_LIBS@ @SQLITE3_LIBS@ -lm
12+Libs: -L${libdir} -lspatialite 11+Libs: -L${libdir} -lspatialite
12+
13 Cflags: -I${includedir} 13 Cflags: -I${includedir}
diff --git a/meta-oe/recipes-navigation/libspatialite/libspatialite_5.0.1.bb b/meta-oe/recipes-navigation/libspatialite/libspatialite_5.1.0.bb
index f46b1083e..0fe0bb119 100644
--- a/meta-oe/recipes-navigation/libspatialite/libspatialite_5.0.1.bb
+++ b/meta-oe/recipes-navigation/libspatialite/libspatialite_5.1.0.bb
@@ -8,11 +8,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0e92e1a36cc384b60f5b31dde0bdd39e"
8 8
9SRC_URI = "http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-${PV}.tar.gz \ 9SRC_URI = "http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-${PV}.tar.gz \
10 file://libspatialite_geos.patch \ 10 file://libspatialite_geos.patch \
11 file://libspatialite_macros.patch \
12 file://libspatialite_pkgconfig.patch \ 11 file://libspatialite_pkgconfig.patch \
12 file://0001-wfs-Cover-xmlNanoHTTPCleanup-with-LIBXML_HTTP_ENABLE.patch \
13" 13"
14 14SRC_URI[sha256sum] = "43be2dd349daffe016dd1400c5d11285828c22fea35ca5109f21f3ed50605080"
15SRC_URI[sha256sum] = "eecbc94311c78012d059ebc0fae86ea5ef6eecb13303e6e82b3753c1b3409e98"
16 15
17inherit autotools-brokensep pkgconfig 16inherit autotools-brokensep pkgconfig
18 17