Skip to contentSkip to conversation

package/libspatialindex: bump to version 1.9.0

PATCH New Fabrice Fontaine 3 participants 4 messages Sep 21, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libspatialindex: bump to version 1.9.0

- Switch site to github to get latest version
- Switch to cmake to be able to disable tests
- Drop patch (already in version)
- Add hash for license file

---
 .../0001-configure.ac-do-not-force-O2.patch   | 30 -------------------
 package/libspatialindex/libspatialindex.hash  |  9 +++---
 package/libspatialindex/libspatialindex.mk    | 11 ++++---
 3 files changed, 10 insertions(+), 40 deletions(-)
 delete mode 100644 package/libspatialindex/0001-configure.ac-do-not-force-O2.patch
package/libspatialindex/0001-configure.ac-do-not-force-O2.patch deleted +0 -30
deleted file mode 100644
index c078e713ec..0000000000
@@ -1,30 +0,0 @@
-From 7472764fe19cb3eea77f21cc2859859b8ac62085 Mon Sep 17 00:00:00 2001
-From: Thomas Petazzoni <[email protected]>
-Date: Mon, 14 Aug 2017 23:36:36 +0200
-Subject: [PATCH] configure.ac: do not force -O2
-
-The user may want to provide its own set of optimization flags, and
-therefore forcing -O2 should not be done.
-
-Signed-off-by: Thomas Petazzoni <[email protected]>
-Submitted-upstream: https://github.com/libspatialindex/libspatialindex/pull/101
----
- configure.ac | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index dc5e49f..2e2aa68 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -53,7 +53,7 @@ if test "x$enable_debug" = "xyes"; then
- 	CXXFLAGS="$CXXFLAGS -g -DDEBUG"
- 	AC_MSG_RESULT(checking wether debug information is enabled... yes)
- else
--	CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
-+	CXXFLAGS="$CXXFLAGS -DNDEBUG"
- 	AC_MSG_RESULT(checking wether debug information is enabled... no)
- fi
- 
--- 
-2.9.4
-
package/libspatialindex/libspatialindex.hash +5 -4
index 3aa636d353..4eda28237d 100644
@@ -1,4 +1,5 @@
-# From http://download.osgeo.org/libspatialindex/spatialindex-src-1.8.5.tar.bz2.md5
-md5 3303c47fd85aa17e64ef52ebec212762 spatialindex-src-1.8.5.tar.bz2
-# Locally computed
-sha256 31ec0a9305c3bd6b4ad60a5261cba5402366dd7d1969a8846099717778e9a50a spatialindex-src-1.8.5.tar.bz2
+# From https://github.com/libspatialindex/libspatialindex/releases/download/1.9.0/spatialindex-src-1.9.0.tar.bz2.sha512sum
+sha512 dbf9601c878f245899d7336347674e96e8eeb715ec33a36ade44f3cc821c1dca7995cb09197a382bfd97da75c38f37b04f4d8f81ffbf38fef65fff82c5d1d2f3 spatialindex-src-1.9.0.tar.bz2
+
+# Hash for license file
+sha256 b63ebfaca9d7ce582580f3e11acabc9d2e37c46ce234533f7fa8a6c7278898a0 COPYING
package/libspatialindex/libspatialindex.mk +5 -6
index 8dd85e2700..f5a6d3acac 100644
@@ -4,15 +4,14 @@
 #
 ################################################################################
 
-LIBSPATIALINDEX_VERSION = 1.8.5
-LIBSPATIALINDEX_SITE = http://download.osgeo.org/libspatialindex
+LIBSPATIALINDEX_VERSION = 1.9.0
+LIBSPATIALINDEX_SITE = \
+	https://github.com/libspatialindex/libspatialindex/releases/download/$(LIBSPATIALINDEX_VERSION)
 LIBSPATIALINDEX_SOURCE = spatialindex-src-$(LIBSPATIALINDEX_VERSION).tar.bz2
 LIBSPATIALINDEX_INSTALL_STAGING = YES
 LIBSPATIALINDEX_LICENSE = MIT
 LIBSPATIALINDEX_LICENSE_FILES = COPYING
-
-# 0001-configure.ac-do-not-force-O2.patch
-LIBSPATIALINDEX_AUTORECONF = YES
+LIBSPATIALINDEX_CONF_OPTS = -DSIDX_BUILD_TESTS=OFF
 
 LIBSPATIALINDEX_CXXFLAGS = $(TARGET_CXXFLAGS)
 LIBSPATIALINDEX_CONF_ENV = CXXFLAGS="$(LIBSPATIALINDEX_CXXFLAGS)"
@@ -21,4 +20,4 @@ ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
 LIBSPATIALINDEX_CXXFLAGS += -O0
 endif
 
-$(eval $(autotools-package))
+$(eval $(cmake-package))
Signature · 1 line
2.23.0
#1 lore raw

PATCH 1/1 package/libspatialindex: bump to version 1.9.0

Hi Fabrice,

Le 21/09/2019 ? 20:35, Fabrice Fontaine a ?crit?:

Quoted 4 lines

- Switch site to github to get latest version
- Switch to cmake to be able to disable tests
- Drop patch (already in version)
- Add hash for license file

This new release use std::shared_ptr, so the package must depends on C++11.

Best regards,
Romain

Quoted 90 lines
---
 .../0001-configure.ac-do-not-force-O2.patch   | 30 -------------------
 package/libspatialindex/libspatialindex.hash  |  9 +++---
 package/libspatialindex/libspatialindex.mk    | 11 ++++---
 3 files changed, 10 insertions(+), 40 deletions(-)
 delete mode 100644 package/libspatialindex/0001-configure.ac-do-not-force-O2.patch
package/libspatialindex/0001-configure.ac-do-not-force-O2.patch deleted +0 -30
deleted file mode 100644
index c078e713ec..0000000000
@@ -1,30 +0,0 @@
-From 7472764fe19cb3eea77f21cc2859859b8ac62085 Mon Sep 17 00:00:00 2001
-From: Thomas Petazzoni <[email protected]>
-Date: Mon, 14 Aug 2017 23:36:36 +0200
-Subject: [PATCH] configure.ac: do not force -O2
-
-The user may want to provide its own set of optimization flags, and
-therefore forcing -O2 should not be done.
-
-Signed-off-by: Thomas Petazzoni <[email protected]>
-Submitted-upstream: https://github.com/libspatialindex/libspatialindex/pull/101
----
- configure.ac | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index dc5e49f..2e2aa68 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -53,7 +53,7 @@ if test "x$enable_debug" = "xyes"; then
- 	CXXFLAGS="$CXXFLAGS -g -DDEBUG"
- 	AC_MSG_RESULT(checking wether debug information is enabled... yes)
- else
--	CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
-+	CXXFLAGS="$CXXFLAGS -DNDEBUG"
- 	AC_MSG_RESULT(checking wether debug information is enabled... no)
- fi
- 
--- 
-2.9.4
-
package/libspatialindex/libspatialindex.hash +5 -4
index 3aa636d353..4eda28237d 100644
@@ -1,4 +1,5 @@
-# From http://download.osgeo.org/libspatialindex/spatialindex-src-1.8.5.tar.bz2.md5
-md5 3303c47fd85aa17e64ef52ebec212762 spatialindex-src-1.8.5.tar.bz2
-# Locally computed
-sha256 31ec0a9305c3bd6b4ad60a5261cba5402366dd7d1969a8846099717778e9a50a spatialindex-src-1.8.5.tar.bz2
+# From https://github.com/libspatialindex/libspatialindex/releases/download/1.9.0/spatialindex-src-1.9.0.tar.bz2.sha512sum
+sha512 dbf9601c878f245899d7336347674e96e8eeb715ec33a36ade44f3cc821c1dca7995cb09197a382bfd97da75c38f37b04f4d8f81ffbf38fef65fff82c5d1d2f3 spatialindex-src-1.9.0.tar.bz2
+
+# Hash for license file
+sha256 b63ebfaca9d7ce582580f3e11acabc9d2e37c46ce234533f7fa8a6c7278898a0 COPYING
package/libspatialindex/libspatialindex.mk +5 -6
index 8dd85e2700..f5a6d3acac 100644
@@ -4,15 +4,14 @@
 #
 ################################################################################
 
-LIBSPATIALINDEX_VERSION = 1.8.5
-LIBSPATIALINDEX_SITE = http://download.osgeo.org/libspatialindex
+LIBSPATIALINDEX_VERSION = 1.9.0
+LIBSPATIALINDEX_SITE = \
+	https://github.com/libspatialindex/libspatialindex/releases/download/$(LIBSPATIALINDEX_VERSION)
 LIBSPATIALINDEX_SOURCE = spatialindex-src-$(LIBSPATIALINDEX_VERSION).tar.bz2
 LIBSPATIALINDEX_INSTALL_STAGING = YES
 LIBSPATIALINDEX_LICENSE = MIT
 LIBSPATIALINDEX_LICENSE_FILES = COPYING
-
-# 0001-configure.ac-do-not-force-O2.patch
-LIBSPATIALINDEX_AUTORECONF = YES
+LIBSPATIALINDEX_CONF_OPTS = -DSIDX_BUILD_TESTS=OFF
 
 LIBSPATIALINDEX_CXXFLAGS = $(TARGET_CXXFLAGS)
 LIBSPATIALINDEX_CONF_ENV = CXXFLAGS="$(LIBSPATIALINDEX_CXXFLAGS)"
@@ -21,4 +20,4 @@ ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
 LIBSPATIALINDEX_CXXFLAGS += -O0
 endif
 
-$(eval $(autotools-package))
+$(eval $(cmake-package))
#2 lore raw

PATCH 1/1 package/libspatialindex: bump to version 1.9.0

In reply to Fabrice Fontaine

Hi Fabrice,

Quoted 13 lines · Fabrice Fontaine

- Switch site to github to get latest version
- Switch to cmake to be able to disable tests
- Drop patch (already in version)
- Add hash for license file

---
 .../0001-configure.ac-do-not-force-O2.patch   | 30 -------------------
 package/libspatialindex/libspatialindex.hash  |  9 +++---
 package/libspatialindex/libspatialindex.mk    | 11 ++++---
 3 files changed, 10 insertions(+), 40 deletions(-)
 delete mode 100644 package/libspatialindex/0001-configure.ac-do-not-force-O2.patch

[snip]

Quoted 14 lines
package/libspatialindex/libspatialindex.mk +3 -2
index 8dd85e2700..f5a6d3acac 100644
@@ -4,15 +4,14 @@
 #
 ################################################################################
 
-LIBSPATIALINDEX_VERSION = 1.8.5
-LIBSPATIALINDEX_SITE = http://download.osgeo.org/libspatialindex
+LIBSPATIALINDEX_VERSION = 1.9.0
+LIBSPATIALINDEX_SITE = \
+	https://github.com/libspatialindex/libspatialindex/releases/download/$(LIBSPATIALINDEX_VERSION)
 LIBSPATIALINDEX_SOURCE = spatialindex-src-$(LIBSPATIALINDEX_VERSION).tar.bz2

package/libspatialindex/libspatialindex.mk line 17

Quoted 10 lines
package/libspatialindex/libspatialindex.mk +1 -3
 LIBSPATIALINDEX_INSTALL_STAGING = YES
 LIBSPATIALINDEX_LICENSE = MIT
 LIBSPATIALINDEX_LICENSE_FILES = COPYING
-
-# 0001-configure.ac-do-not-force-O2.patch
-LIBSPATIALINDEX_AUTORECONF = YES
+LIBSPATIALINDEX_CONF_OPTS = -DSIDX_BUILD_TESTS=OFF
 
 LIBSPATIALINDEX_CXXFLAGS = $(TARGET_CXXFLAGS)
 LIBSPATIALINDEX_CONF_ENV = CXXFLAGS="$(LIBSPATIALINDEX_CXXFLAGS)"

I don't think this still works with CMake, you have to set
-DCMAKE_CXX_FLAGS="$(LIBSPATIALINDEX_CXXFLAGS)"

It would be better to do the cmake conversion in a separate patch, if that is
possible.

Regards,
Arnout

Quoted 7 lines
package/libspatialindex/libspatialindex.mk +1 -1
@@ -21,4 +20,4 @@ ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
 LIBSPATIALINDEX_CXXFLAGS += -O0
 endif
 
-$(eval $(autotools-package))
+$(eval $(cmake-package))
#3 lore raw

PATCH 1/1 package/libspatialindex: bump to version 1.9.0

Dear Arnout,

Le sam. 21 sept. 2019 ? 21:18, Arnout Vandecappelle <[email protected]> a ?crit :

Quoted 40 lines

Hi Fabrice,

Quoted 13 lines · Fabrice Fontaine

- Switch site to github to get latest version
- Switch to cmake to be able to disable tests
- Drop patch (already in version)
- Add hash for license file

---
 .../0001-configure.ac-do-not-force-O2.patch   | 30 -------------------
 package/libspatialindex/libspatialindex.hash  |  9 +++---
 package/libspatialindex/libspatialindex.mk    | 11 ++++---
 3 files changed, 10 insertions(+), 40 deletions(-)
 delete mode 100644 package/libspatialindex/0001-configure.ac-do-not-force-O2.patch

[snip]

Quoted 22 lines
package/libspatialindex/libspatialindex.mk +4 -5
index 8dd85e2700..f5a6d3acac 100644
@@ -4,15 +4,14 @@
 #
 ################################################################################
 
-LIBSPATIALINDEX_VERSION = 1.8.5
-LIBSPATIALINDEX_SITE = http://download.osgeo.org/libspatialindex
+LIBSPATIALINDEX_VERSION = 1.9.0
+LIBSPATIALINDEX_SITE = \
+     https://github.com/libspatialindex/libspatialindex/releases/download/$(LIBSPATIALINDEX_VERSION)
 LIBSPATIALINDEX_SOURCE = spatialindex-src-$(LIBSPATIALINDEX_VERSION).tar.bz2
 LIBSPATIALINDEX_INSTALL_STAGING = YES
 LIBSPATIALINDEX_LICENSE = MIT
 LIBSPATIALINDEX_LICENSE_FILES = COPYING
-
-# 0001-configure.ac-do-not-force-O2.patch
-LIBSPATIALINDEX_AUTORECONF = YES
+LIBSPATIALINDEX_CONF_OPTS = -DSIDX_BUILD_TESTS=OFF
 
Quoted 5 lines

package/libspatialindex/libspatialindex.mk line 17

Quoted 2 lines
package/libspatialindex/libspatialindex.mk +0 -0
 LIBSPATIALINDEX_CXXFLAGS = $(TARGET_CXXFLAGS)
 LIBSPATIALINDEX_CONF_ENV = CXXFLAGS="$(LIBSPATIALINDEX_CXXFLAGS)"

I don't think this still works with CMake, you have to set
-DCMAKE_CXX_FLAGS="$(LIBSPATIALINDEX_CXXFLAGS)"

Thanks, I missed this one.

Quoted 4 lines

It would be better to do the cmake conversion in a separate patch, if that is
possible.

Tests fail to build, so I can't make two patches. However you're right. I'll update the commit log with this information and the error message.

Quoted 5 lines

Regards,
Arnout

Quoted 7 lines

package/libspatialindex/libspatialindex.mk ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y) · line 23

Quoted 7 lines
package/libspatialindex/libspatialindex.mk +1 -1
@@ -21,4 +20,4 @@ ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
 LIBSPATIALINDEX_CXXFLAGS += -O0
 endif
 
-$(eval $(autotools-package))
+$(eval $(cmake-package))

Best Regards,

Fabrice