Re: git: 8af3fe5ef31b - main - databases/sqlite3: update to 3.50.2

From: Vladimir Druzenko <vvd_at_freebsd.org>
Date: Mon, 07 Jul 2025 15:16:23 UTC
Hello!

07.07.2025 10:22, Philippe Audeoud пишет:
> The branch main has been updated by jadawin:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=8af3fe5ef31bd6ab4bfddc982ca7c7dc33c8a1ab
>
> commit 8af3fe5ef31bd6ab4bfddc982ca7c7dc33c8a1ab
> Author:     Philippe Audeoud <jadawin@FreeBSD.org>
> AuthorDate: 2025-07-07 06:15:07 +0000
> Commit:     Philippe Audeoud <jadawin@FreeBSD.org>
> CommitDate: 2025-07-07 06:15:07 +0000
>
>      databases/sqlite3: update to 3.50.2
>      
>      PR:             287983
> ---
>   databases/sqlite3/Makefile                         | 63 ++++++++++++----------
>   databases/sqlite3/distinfo                         |  6 +--
>   databases/sqlite3/files/patch-Makefile.in          | 11 ----
>   .../sqlite3/files/patch-autosetup_pkg-config.tcl   | 11 ++++
>   databases/sqlite3/files/patch-main.mk              | 28 ++++++++++
>   databases/sqlite3/pkg-plist                        |  2 +-
>   6 files changed, 77 insertions(+), 44 deletions(-)
>
> diff --git a/databases/sqlite3/Makefile b/databases/sqlite3/Makefile
> index 03ef9aeaedca..88fb914f4bfd 100644
> --- a/databases/sqlite3/Makefile
> +++ b/databases/sqlite3/Makefile
> @@ -1,6 +1,5 @@
>   PORTNAME=	sqlite3
> -DISTVERSION=	3.46.1
> -PORTREVISION=	1
> +DISTVERSION=	3.50.2
>   PORTEPOCH=	1
>   CATEGORIES=	databases
>   MASTER_SITES=	https://www.sqlite.org/${_YEAR}/ https://www2.sqlite.org/${_YEAR}/ https://www3.sqlite.org/${_YEAR}/
> @@ -31,11 +30,13 @@ icu_PKGNAMESUFFIX=	-${FLAVOR}	# databases/p5-DBD-SQLite with ICU support
>   tcl_PKGNAMESUFFIX=	-${FLAVOR}	# lang/tcl* support
>   .endif
>   
> -USES=	libtool pathfix zip
> +USES=	libtool ncurses pathfix zip
>   USE_LDCONFIG=	yes
>   
> -GNU_CONFIGURE=	yes
> -GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
> +HAS_CONFIGURE=	yes
> +CONFIGURE_ARGS+=	--linemacros --soname=${DISTVERSION} OPTIONS='${_OPTIONS}'

This doesn't look correct.
Result:
# readelf -d /usr/local/lib/libsqlite3.so.0 | grep SONAME
  0x000000000000000e SONAME               Library soname: 
[libsqlite3.so.3.50.2]
Users must rebuild/reinstall all consumers of the sqlite3 after each 
patch-level update.
Yes, I read links below:

> +# [The Chronicles of SONAME](https://sqlite.org/src/forumpost/5a3b44f510df8ded)
> +# [Set features OPTIONS for autosetup configurator](https://msteveb.github.io/autosetup/)
"--soname=legacy" look correct.

<... cut ...>
> diff --git a/databases/sqlite3/pkg-plist b/databases/sqlite3/pkg-plist
> index f547f671f412..f3908cbf7adf 100644
> --- a/databases/sqlite3/pkg-plist
> +++ b/databases/sqlite3/pkg-plist
> @@ -6,7 +6,7 @@
>   %%NO_TEA%%%%STATIC%%lib/libsqlite3.a
>   %%NO_TEA%%lib/libsqlite3.so
>   %%NO_TEA%%lib/libsqlite3.so.0
> -%%NO_TEA%%lib/libsqlite3.so.0.8.6
> +%%NO_TEA%%lib/libsqlite3.so.%%DISTVERSION%%
>   %%NO_TEA%%libdata/pkgconfig/sqlite3.pc
>   %%NO_TEA%%share/man/man1/sqlite3.1.gz
>   %%TCL%%share/man/mann/sqlite3.%%TCLSUF%%.n.gz


-- 
Best regards,
Vladimir Druzenko