aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Druzenko <vvd@FreeBSD.org>2025-07-10 00:49:37 +0000
committerVladimir Druzenko <vvd@FreeBSD.org>2025-07-10 01:16:58 +0000
commit25ef3857b80f0bda031c638303ff49369e2501ac (patch)
treea33cca4944262aa973a33e9c5b8c365284f1b86e
parent0df82a0f9746a4a5a398a3537e27166f9c26ddc7 (diff)
databases/sqlite3: Fix soname, fix build if ICU=on LIBEDIT=off and READLINE=off
--soname=libsqlite3.so.${DISTVERSION} mean that users must rebuild/reinstall all consumers of the sqlite3 after each patch-level update. Use --soname=legacy => soname = libsqlite3.so.0 - ABI and API didn't changed. PR: 287983 Approved by: Pavel Volkov <pavelivolkov@gmail.com> (maintainer, implicit - fix runtime) Fixes: 8af3fe5ef31b (update to 3.50.2) Co-authored-by: russian@russerver.org
-rw-r--r--databases/sqlite3/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/databases/sqlite3/Makefile b/databases/sqlite3/Makefile
index 88fb914f4bfd..9521ef1d6ce8 100644
--- a/databases/sqlite3/Makefile
+++ b/databases/sqlite3/Makefile
@@ -1,5 +1,6 @@
PORTNAME= sqlite3
DISTVERSION= 3.50.2
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= databases
MASTER_SITES= https://www.sqlite.org/${_YEAR}/ https://www2.sqlite.org/${_YEAR}/ https://www3.sqlite.org/${_YEAR}/
@@ -34,7 +35,7 @@ USES= libtool ncurses pathfix zip
USE_LDCONFIG= yes
HAS_CONFIGURE= yes
-CONFIGURE_ARGS+= --linemacros --soname=${DISTVERSION} OPTIONS='${_OPTIONS}'
+CONFIGURE_ARGS+= --linemacros --soname=legacy OPTIONS='${_OPTIONS}'
# [The Chronicles of SONAME](https://sqlite.org/src/forumpost/5a3b44f510df8ded)
# [Set features OPTIONS for autosetup configurator](https://msteveb.github.io/autosetup/)
@@ -174,6 +175,7 @@ GEOPOLY_CONFIGURE_ON= --geopoly
ICU_BUILD_DEPENDS= ${LOCALBASE}/bin/icu-config:devel/icu
ICU_LIB_DEPENDS= libicudata.so:devel/icu
ICU_CONFIGURE_ON= --with-icu-config=${LOCALBASE}/bin/icu-config --icu-collations
+ICU_CPPFLAGS= `${LOCALBASE}/bin/icu-config --cppflags`
LIBEDIT_USES= libedit
LIBEDIT_CONFIGURE_ON= --editline
LIKENOTBLOB_CPPFLAGS= -DSQLITE_LIKE_DOESNT_MATCH_BLOBS=1