package/sqlite: bump version to 3.50.4
RFC PATCH 1/1 package/sqlite: bump version to 3.50.4
The autoconf-based configure script until version 3.48.0 enabled rtree support by default:
https://github.com/sqlite/sqlite/blob/version-3.48.0/autoconf/configure.ac#L180
while the autosetup-based needs -DSQLITE_ENABLE_RTREE
https://github.com/sqlite/sqlite/blob/version-3.50.4/autosetup/sqlite-config.tcl#L763
Add Config.in option for RTREE support and enable it for gdal to provide a needed dependency:
https://github.com/OSGeo/gdal/blob/v3.11.4/cmake/helpers/CheckDependentLibraries.cmake#L277
Added upstream patch to fix forced addition of rpath and added configure option --disable-rpath for target build.
Added configure option --soname=legacy to fix wrong library name which breaks linking of kodi:
https://github.com/LibreELEC/LibreELEC.tv/commit/7f2281bd7cc59425e754ac9d720071688f75580f
Added configure option --disable-shared for static builds.
Added build fixes for BR2_m68k_cf.
Removed SQLITE_CONF_OPTS and readline support from host build to avoid dependencies.
---
This patch is not suitable to be committed as-is. It was created to help the review process and needs to be applied after reverting the reverts of the last attempt to bump sqlite:
git revert --no-edit c4c282f8ec 014174f00d 835b5659ea db481210e9 b7f154eab7 296744b0f4 939244b828 f0a272ef14 274c36578f
The final patch will not include the revert of the json1 option.
package/gdal/Config.in | 1 + package/sqlite/0001-disable-rpath.patch | 59 +++++++++++++++++++++++++ package/sqlite/Config.in | 8 ++-- package/sqlite/sqlite.hash | 2 +- package/sqlite/sqlite.mk | 27 ++++++++--- 5 files changed, 86 insertions(+), 11 deletions(-) create mode 100644 package/sqlite/0001-disable-rpath.patch
package/gdal/Config.in +1 -0
@@ -14,6 +14,7 @@ config BR2_PACKAGE_GDAL select BR2_PACKAGE_LIBPNG select BR2_PACKAGE_PROJ select BR2_PACKAGE_QHULL + select BR2_PACKAGE_SQLITE_ENABLE_RTREE if BR2_PACKAGE_SQLITE select BR2_PACKAGE_ZLIB help GDAL is a translator library for raster and vector geospatial
package/sqlite/0001-disable-rpath.patch new file +59 -0
59 lines not on this page · raw message
package/sqlite/Config.in +4 -4
@@ -30,11 +30,11 @@ config BR2_PACKAGE_SQLITE_ENABLE_FTS3 http://www.sqlite.org/amalgamation.html), version 3 of the full-text search engine is added to the build automatically. -config BR2_PACKAGE_SQLITE_ENABLE_JSON1 - bool "Enable the JSON extensions for SQLite" +config BR2_PACKAGE_SQLITE_ENABLE_RTREE + bool "Enable the RTREE extension for SQLite" help - When this option is defined in the amalgamation, the JSON - extensions are added to the build automatically. + When this option is defined in the amalgamation, the RTREE + extension is added to the build automatically. config BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY bool "Enable sqlite3_unlock_notify() interface"
package/sqlite/sqlite.hash +1 -1
@@ -1,3 +1,3 @@ # Locally computed -sha256 4d8bfa0b55e36951f6e5a9fb8c99f3b58990ab785c57b4f84f37d163a0672759 sqlite-autoconf-3490000.tar.gz +sha256 a3db587a1b92ee5ddac2f66b3edb41b26f9c867275782d46c3a088977d6a5b18 sqlite-autoconf-3500400.tar.gz sha256 66e056b6e8687f32af30d5187611b98b12a8f46f07aaf62f43585f276e8f0ac9 tea/license.terms
package/sqlite/sqlite.mk +21 -6
@@ -4,8 +4,8 @@ # ################################################################################ -SQLITE_VERSION = 3.49.0 -SQLITE_TAR_VERSION = 3490000 +SQLITE_VERSION = 3.50.4 +SQLITE_TAR_VERSION = 3500400 SQLITE_SOURCE = sqlite-autoconf-$(SQLITE_TAR_VERSION).tar.gz SQLITE_SITE = https://www.sqlite.org/2025 SQLITE_LICENSE = blessing
@@ -21,6 +21,10 @@ ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_COLUMN_METADATA endif +ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_RTREE),y) +SQLITE_CFLAGS += -DSQLITE_ENABLE_RTREE +endif + ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY endif
@@ -37,6 +41,8 @@ endif # Work around using -O0 ifeq ($(BR2_microblaze):$(BR2_TOOLCHAIN_GCC_AT_LEAST_5),y:) SQLITE_CFLAGS += $(TARGET_CFLAGS) -O0 +else ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_104028),y) +SQLITE_CFLAGS += $(TARGET_CFLAGS) -O0 else # fallback to standard -O3 when -Ofast is present to avoid -ffast-math SQLITE_CFLAGS += $(subst -Ofast,-O3,$(TARGET_CFLAGS))
@@ -58,12 +64,18 @@ ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y) SQLITE_CONF_OPTS += --fts3 endif -ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_JSON1),) -SQLITE_CONF_OPTS += --disable-json +ifeq ($(BR2_STATIC_LIBS),y) +SQLITE_CONF_OPTS += --disable-shared endif SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" LDFLAGS="$(SQLITE_LDFLAGS)" +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101971 +define SQLITE_FIX_MAKEFILE + chmod +w $(@D)/Makefile + sed -i "s/-fPIC//" $(@D)/Makefile +endef + define SQLITE_CONFIGURE_CMDS (cd $(@D); $(TARGET_CONFIGURE_OPTS) \ $(if $(BR2_INSTALL_LIBSTDCPP),,CXX=false) \
@@ -72,8 +84,11 @@ define SQLITE_CONFIGURE_CMDS --host="$(GNU_TARGET_NAME)" \ --build="$(GNU_HOST_NAME)" \ --sysroot="$(STAGING_DIR)" \ + --disable-rpath \ + --soname=legacy \ $(SQLITE_CONF_OPTS) \ ) + $(if $(BR2_m68k_cf),$(SQLITE_FIX_MAKEFILE)) endef define SQLITE_BUILD_CMDS
@@ -90,12 +105,12 @@ endef define HOST_SQLITE_CONFIGURE_CMDS (cd $(@D); $(HOST_CONFIGURE_OPTS) \ - $(SQLITE_CONF_ENV) ./configure \ + ./configure \ --prefix=/usr \ --host="$(GNU_HOST_NAME)" \ --build="$(GNU_HOST_NAME)" \ --sysroot="$(HOST_DIR)" \ - $(SQLITE_CONF_OPTS) \ + --disable-readline \ ) endef
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot