summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-navigation
diff options
context:
space:
mode:
authorZoltán Böszörményi <zboszor@gmail.com>2022-06-22 16:17:10 +0200
committerKhem Raj <raj.khem@gmail.com>2022-07-02 16:34:48 -0700
commit091e402b1f4c89af06b0123c4f463f5e51bc2e79 (patch)
tree4186058a1961e4e5ecff53495e41bcba336ec1bb /meta-oe/recipes-navigation
parentaef70c3fff28681018b9f61ca86948fe0b3cd9dc (diff)
downloadmeta-openembedded-091e402b1f4c89af06b0123c4f463f5e51bc2e79.tar.gz
libspatialite: Upgrade to 5.0.1
Removed a patch that didn't apply to the new version. Added three patches without changes from Fedora that allowed the new version to compile. See https://koji.fedoraproject.org/koji/buildinfo?buildID=1924183 Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-navigation')
-rw-r--r--meta-oe/recipes-navigation/libspatialite/libspatialite/geos-config.patch17
-rw-r--r--meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_geos.patch43
-rw-r--r--meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_macros.patch12
-rw-r--r--meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_pkgconfig.patch11
-rw-r--r--meta-oe/recipes-navigation/libspatialite/libspatialite_5.0.1.bb (renamed from meta-oe/recipes-navigation/libspatialite/libspatialite_4.3.0a.bb)14
5 files changed, 74 insertions, 23 deletions
diff --git a/meta-oe/recipes-navigation/libspatialite/libspatialite/geos-config.patch b/meta-oe/recipes-navigation/libspatialite/libspatialite/geos-config.patch
deleted file mode 100644
index 28bd7dad8..000000000
--- a/meta-oe/recipes-navigation/libspatialite/libspatialite/geos-config.patch
+++ /dev/null
@@ -1,17 +0,0 @@
1https://www.gaia-gis.it/fossil/libspatialite/tktview?name=abeeaad448
2
3Upstream-Status: Submitted [rpm5-devel@rpm5.org]
4
5Index: libspatialite-4.2.0/configure.ac
6===================================================================
7--- libspatialite-4.2.0.orig/configure.ac
8+++ libspatialite-4.2.0/configure.ac
9@@ -260,7 +260,7 @@ if test x"$enable_geos" != "xno"; then
10 fi
11 # Extract the linker and include flags
12 GEOS_LDFLAGS=`$GEOSCONFIG --ldflags`
13- GEOS_CFLAGS=-I`$GEOSCONFIG --includes`
14+ GEOS_CFLAGS=`$GEOSCONFIG --cflags`
15 AC_SUBST([GEOS_LDFLAGS])
16 AC_SUBST([GEOS_CFLAGS])
17 # Ensure that we can parse geos_c.h
diff --git a/meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_geos.patch b/meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_geos.patch
new file mode 100644
index 000000000..7d8d2c2e4
--- /dev/null
+++ b/meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_geos.patch
@@ -0,0 +1,43 @@
1diff -rupN --no-dereference libspatialite-5.0.1/configure.ac libspatialite-5.0.1-new/configure.ac
2--- libspatialite-5.0.1/configure.ac 2021-03-08 08:57:19.015858195 +0100
3+++ libspatialite-5.0.1-new/configure.ac 2021-03-08 08:57:19.017858195 +0100
4@@ -312,35 +312,10 @@ AC_ARG_ENABLE(geos, [AS_HELP_STRING(
5 [], [enable_geos=yes])
6 if test x"$enable_geos" != "xno"; then
7 #-----------------------------------------------------------------------
8- # --with-geosconfig
9- #
10- AC_ARG_WITH([geosconfig],
11- [AS_HELP_STRING([--with-geosconfig=FILE], [specify an alternative geos-config file])],
12- [GEOSCONFIG="$withval"], [GEOSCONFIG=""])
13- if test "x$GEOSCONFIG" = "x"; then
14- # GEOSCONFIG was not specified, so search within the current path
15- AC_PATH_PROG([GEOSCONFIG], [geos-config])
16- # If we couldn't find geos-config, display an error
17- if test "x$GEOSCONFIG" = "x"; then
18- AC_MSG_ERROR([could not find geos-config within the current path. You may need to try re-running configure with a --with-geosconfig parameter.])
19- fi
20- else
21- # GEOSCONFIG was specified; display a message to the user
22- if test "x$GEOSCONFIG" = "xyes"; then
23- AC_MSG_ERROR([you must specify a parameter to --with-geosconfig, e.g. --with-geosconfig=/path/to/geos-config])
24- else
25- if test -f $GEOSCONFIG; then
26- AC_MSG_RESULT([Using user-specified geos-config file: $GEOSCONFIG])
27- else
28- AC_MSG_ERROR([the user-specified geos-config file $GEOSCONFIG does not exist])
29- fi
30- fi
31- fi
32- # Extract the linker and include flags
33- GEOS_LDFLAGS=`$GEOSCONFIG --ldflags`
34- GEOS_CFLAGS=-I`$GEOSCONFIG --includes`
35- AC_SUBST([GEOS_LDFLAGS])
36- AC_SUBST([GEOS_CFLAGS])
37+ PKG_CHECK_MODULES([GEOS], [geos], , AC_MSG_ERROR(['geos' is required but it doesn't seem to be installed on this system.]))
38+ GEOS_LDFLAGS="$GEOS_LIBS"
39+ AC_SUBST(GEOS_CFLAGS)
40+ AC_SUBST(GEOS_LDFLAGS)
41 # Ensure that we can parse geos_c.h
42 CPPFLAGS_SAVE="$CPPFLAGS"
43 CPPFLAGS="$GEOS_CFLAGS"
diff --git a/meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_macros.patch b/meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_macros.patch
new file mode 100644
index 000000000..9b71ab765
--- /dev/null
+++ b/meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_macros.patch
@@ -0,0 +1,12 @@
1diff -rupN --no-dereference libspatialite-5.0.1/configure.ac libspatialite-5.0.1-new/configure.ac
2--- libspatialite-5.0.1/configure.ac 2021-03-08 08:57:18.748858216 +0100
3+++ libspatialite-5.0.1-new/configure.ac 2021-03-08 08:57:18.751858215 +0100
4@@ -96,7 +96,7 @@ AC_PROG_INSTALL
5 AC_PROG_LN_S
6 AC_PROG_MAKE_SET
7 AC_LIBTOOL_WIN32_DLL
8-AC_PROG_LIBTOOL
9+LT_INIT
10
11 # Checks for typedefs, structures, and compiler characteristics.
12 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
new file mode 100644
index 000000000..149c12676
--- /dev/null
+++ b/meta-oe/recipes-navigation/libspatialite/libspatialite/libspatialite_pkgconfig.patch
@@ -0,0 +1,11 @@
1diff -rupN libspatialite-5.0.1/spatialite.pc.in libspatialite-5.0.1-new/spatialite.pc.in
2--- libspatialite-5.0.1/spatialite.pc.in 2021-02-07 16:53:46.000000000 +0100
3+++ libspatialite-5.0.1-new/spatialite.pc.in 2021-02-10 09:54:09.647552994 +0100
4@@ -8,5 +8,6 @@ includedir=@includedir@
5 Name: spatialite
6 Description: Spatial SQL database engine based on SQLite
7 Version: @VERSION@
8-Libs: -L${libdir} -lspatialite @LIBS@ @LIBXML2_LIBS@ -lm
9+Libs.private: -L${libdir} @LIBS@ @LIBXML2_LIBS@ -lm
10+Libs: -L${libdir} -lspatialite
11 Cflags: -I${includedir}
diff --git a/meta-oe/recipes-navigation/libspatialite/libspatialite_4.3.0a.bb b/meta-oe/recipes-navigation/libspatialite/libspatialite_5.0.1.bb
index f6c765519..f46b1083e 100644
--- a/meta-oe/recipes-navigation/libspatialite/libspatialite_4.3.0a.bb
+++ b/meta-oe/recipes-navigation/libspatialite/libspatialite_5.0.1.bb
@@ -7,14 +7,16 @@ LICENSE = "MPL-1.1 & GPL-2.0-or-later & LGPL-2.1-or-later"
7LIC_FILES_CHKSUM = "file://COPYING;md5=0e92e1a36cc384b60f5b31dde0bdd39e" 7LIC_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://geos-config.patch" 10 file://libspatialite_geos.patch \
11SRC_URI[md5sum] = "6b380b332c00da6f76f432b10a1a338c" 11 file://libspatialite_macros.patch \
12SRC_URI[sha256sum] = "88900030a4762904a7880273f292e5e8ca6b15b7c6c3fb88ffa9e67ee8a5a499" 12 file://libspatialite_pkgconfig.patch \
13"
13 14
14inherit autotools pkgconfig 15SRC_URI[sha256sum] = "eecbc94311c78012d059ebc0fae86ea5ef6eecb13303e6e82b3753c1b3409e98"
15 16
16EXTRA_OECONF = "--enable-freexl=no" 17inherit autotools-brokensep pkgconfig
17CFLAGS += "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H" 18
19EXTRA_OECONF = "--enable-freexl=no --disable-rttopo --disable-minizip"
18 20
19# package plugins for SQLite3 21# package plugins for SQLite3
20PACKAGES += "${PN}-plugin" 22PACKAGES += "${PN}-plugin"