Index: Makefile
===================================================================
--- Makefile (.../3.39.4.0-ppc32) (revision 445)
+++ Makefile (.../3.49.1.0-ppc32) (revision 446)
@@ -13,16 +13,17 @@
include ../../../build-system/constants.mk
-SOURCE_REQUIRES = sources/packages/b/sqlite/2022
+SOURCE_REQUIRES = sources/packages/b/sqlite/2025
-REQUIRES = app/sqlite/3.39.4.0
+REQUIRES = app/sqlite/3.49.1.0
+REQUIRES += libs/icu4c/76.1-ppc32
REQUIRES += libs/readline/8.2-ppc32
# ======= __END_OF_REQUIRES__ =======
-version = 3.39.4.0
-tar_gz_archive = $(SRC_PACKAGE_PATH)/packages/b/sqlite/2022/sqlite-$(version).tar.gz
+version = 3.49.1.0
+tar_gz_archive = $(SRC_PACKAGE_PATH)/packages/b/sqlite/2025/sqlite-$(version).tar.gz
SRC_ARCHIVE = $(tar_gz_archive)
SRC_DIR = $(TARGET_BUILD_DIR)/sqlite-$(version)
src_dir_name = sqlite-$(version)
@@ -43,7 +44,7 @@
# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
#
SQLITE_32_PKG_NAME = sqlite-x32
-SQLITE_32_PKG_VERSION = 3.39.4.0
+SQLITE_32_PKG_VERSION = 3.49.1.0
SQLITE_32_PKG_ARCH = $(PKGARCH)
SQLITE_32_PKG_DISTRO_NAME = $(DISTRO_NAME)
SQLITE_32_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
@@ -81,32 +82,19 @@
extra_configure_switches = --libdir=/usr/lib$(MULTILIB_PPC32_SUFFIX)
-extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
-extra_configure_switches += --mandir=/usr/share/man
-extra_configure_switches += --disable-dependency-tracking
-extra_configure_switches += --sysconfdir=/etc
-extra_configure_switches += --localstatedir=/var
-extra_configure_switches += --bindir=/usr/bin/32
+extra_configure_switches += --with-icu-config=$(TARGET_DEST_DIR)/usr/bin/32/icu-config
+extra_configure_switches += --with-readline-cflags='-I$(TARGET_DEST_DIR)/usr/include'
+extra_configure_switches += --with-readline-ldflags='-L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX) -lreadline -lncurses'
-extra_configure_switches += --enable-readline=yes
-extra_configure_switches += --enable-threadsafe=yes
-extra_configure_switches += --enable-dynamic-extensions=yes
-
-ifeq ($(__ENABLE_STATIC__),yes)
-extra_configure_switches += --enable-static=yes
-else
-extra_configure_switches += --enable-static=no
+ifneq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --disable-static
endif
-extra_configure_switches += --enable-shared=yes
-CFLAGS += -DSQLITE_ENABLE_COLUMN_METADATA=1
+CFLAGS += -DSQLITE_ENABLE_COLUMN_METADATA=1 -Wno-stringop-overread
-configure_environment = LDFLAGS=-Wl,-rpath,/lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX)
-
-
####### Dependencies
$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
@@ -117,7 +105,7 @@
$(build_target): $(src_done)
@mkdir -p $(build_dir)
@cd $(build_dir) && \
- $(BUILD_ENVIRONMENT) $(configure_environment) ../$(src_dir_name)/configure \
+ $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
--prefix=/usr \
--build=$(BUILD) \
--host=$(TARGET32) \
@@ -128,22 +116,21 @@
$(install_target): $(build_target)
@mkdir -p $(SQLITE_32_PKG)
@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+ @mkdir -p $(SQLITE_32_PKG)/usr/bin/32
+ @( cd $(SQLITE_32_PKG)/usr/bin ; \
+ find . -type f | xargs mv -t 32 ; \
+ )
@rm -rf $(SQLITE_32_PKG)/usr/include
@rm -rf $(SQLITE_32_PKG)/usr/share
- # ======= remove toolchain path from target libtool *.la files =======
- @( cd $(SQLITE_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
- sed -i "s,$(TARGET_DEST_DIR),,g" libsqlite?.la \
+ # ======= remove TARGET_DEST_DIR from pkg-config *.pc files =======
+ @( cd $(SQLITE_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/pkgconfig ; \
+ sed -i "s,$(TARGET_DEST_DIR),,g" sqlite?.pc ; \
)
# ======= Install the same to $(TARGET_DEST_DIR) =======
$(call install-into-devenv, $(SQLITE_32_PKG))
- # ======= tune libtool *.la search path to the target destination for development =======
- @( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
- sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libsqlite?.la ; \
- sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libsqlite?.la \
- )
# ======= tune pkg-config *.pc search path to the target destination for development =======
@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/pkgconfig ; \
- sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" sqlite?.pc \
+ sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" sqlite?.pc ; \
)
# ======= Strip Binaries =======
@( cd $(SQLITE_32_PKG) ; \