Download raw body.
databases/sqlite3-tcl port and tcl9
Thanks Stuart,
That's a nice clean solution. Also built and installed fine on -stable
with version 3.51.0.
Would it it be possible to backport-commit this update to 7.9-stable too?
Chris
Stuart Cassoff wrote:
> On Thu, 11 Jun 2026, Chris Billington wrote:
>
>> The present databases/sqlite3-tcl port is built with MODTCL_VERSION = 8.6,
>> producing /usr/local/lib/tcl/sqlite3/libsqlite3513.so
>
>
> With recent Tcl build systems and Tcl 9 we can build Tcl 8 extensions.
> This gives everything in one package, with the downside of two Tcl deps.
>
>
> Stu
>
>
>
> diff -Nurp /usr/ports/databases/sqlite3-tcl/Makefile ./Makefile
> --- /usr/ports/databases/sqlite3-tcl/Makefile Thu May 14 22:51:47 2026
> +++ ./Makefile Thu Jun 11 09:30:11 2026
> @@ -1,5 +1,7 @@
> COMMENT = Tcl bindings for SQLite3
>
> +REVISION = 0
> +
> V = 3.53.0
>
> DISTNAME = sqlite${V}
> @@ -19,11 +21,13 @@ SITES = ${SITE_SOURCEFORGE:=tcl/}
> DISTFILES = tclsqlite{sqlite}${V}${EXTRACT_SUFX}
>
> MODULES = lang/tcl
> -MODTCL_VERSION = 8.6
> +MODTCL_VERSION = 9
>
> BUILD_DEPENDS = ${MODTCL_BUILD_DEPENDS}
> -RUN_DEPENDS = ${MODTCL_RUN_DEPENDS}
>
> +RUN_DEPENDS = ${MODTCL_RUN_DEPENDS} \
> + lang/tcl/8.6
> +
> FAKE_FLAGS = PKG_DIR=sqlite3
> SEPARATE_BUILD = Yes
> CONFIGURE_STYLE = gnu
> @@ -45,5 +49,13 @@ VER = ${V:S/.//g}
>
> pre-configure:
> @${MODTCL_TCLSH_ADJ} ${WRKSRC}/compat/sqlite3/spaceanal.tcl
> +
> +post-install:
> + cd ${WRKBUILD} && umask 022 && exec \
> + env -i ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
> + -f ${MAKE_FILE} clean ${ALL_TARGET} \
> + CPPFLAGS='-DTCL_MAJOR_VERSION=8' \
> + PKG_LIB_FILE=libsqlite${VER}.so
> + ${INSTALL_DATA} ${WRKBUILD}/libsqlite${VER}.so ${DESTDIR}${MODTCL_TCLDIR}/sqlite3/
>
> .include <bsd.port.mk>
> diff -Nurp /usr/ports/databases/sqlite3-tcl/pkg/PLIST ./pkg/PLIST
> --- /usr/ports/databases/sqlite3-tcl/pkg/PLIST Wed Nov 19 15:31:24 2025
> +++ ./pkg/PLIST Thu Jun 11 09:20:36 2026
> @@ -1,6 +1,7 @@
> @pkgpath databases/sqlite3,-tcl
> lib/tcl/sqlite3/
> @so lib/tcl/sqlite3/libsqlite${VER}.so
> +@so lib/tcl/sqlite3/libtcl9sqlite${VER}.so
> lib/tcl/sqlite3/pkgIndex.tcl
> @man man/mann/sqlite3.n
> share/examples/sqlite3-tcl/
>
databases/sqlite3-tcl port and tcl9