From 8209c30452a589405b4bb486e72345a4de08de83 Mon Sep 17 00:00:00 2001 From: Jakov Smolić Date: Thu, 5 Dec 2024 12:36:09 +0100 Subject: dev-db/sqlite: Apply buildtclext patch to 3.47.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/945906 Signed-off-by: Jakov Smolić --- .../sqlite/files/sqlite-3.47.1-buildtclext.patch | 33 ++++++++++++++++++++++ dev-db/sqlite/sqlite-3.47.1.ebuild | 1 + 2 files changed, 34 insertions(+) create mode 100644 dev-db/sqlite/files/sqlite-3.47.1-buildtclext.patch (limited to 'dev-db') diff --git a/dev-db/sqlite/files/sqlite-3.47.1-buildtclext.patch b/dev-db/sqlite/files/sqlite-3.47.1-buildtclext.patch new file mode 100644 index 000000000000..d7a95ec52739 --- /dev/null +++ b/dev-db/sqlite/files/sqlite-3.47.1-buildtclext.patch @@ -0,0 +1,33 @@ +# https://bugs.gentoo.org/945906 +# https://www.sqlite.org/src/info?name=e24a3efec8c168b6 +--- a/tool/buildtclext.tcl ++++ b/tool/buildtclext.tcl +@@ -107,7 +107,7 @@ if {$tcl_platform(platform)=="windows"} { + set fd [open $LIBDIR/tclConfig.sh rb] + set tclConfig [read $fd] + close $fd +- ++ + # Extract parameter we will need from the tclConfig.sh file + # + set TCLMAJOR 8 +@@ -140,14 +140,17 @@ if {$tcl_platform(platform)=="windows"} { + if {[string length $OPTS]>1} { + append LDFLAGS $OPTS + } +- set CMD [subst $cmd] + if {$TCLMAJOR>8} { + set OUT libtcl9sqlite$VERSION.$SUFFIX + } else { + set OUT libsqlite$VERSION.$SUFFIX + } ++ set @ $OUT; # Workaround for https://sqlite.org/forum/forumpost/0683a49cb02f31a1 ++ # in which Gentoo edits their tclConfig.sh to include an soname ++ # linker flag which includes ${@} (the target file's name). ++ set CMD [subst $cmd] + } +- ++ + # Show information about prior installs + # + if {$infoonly} { diff --git a/dev-db/sqlite/sqlite-3.47.1.ebuild b/dev-db/sqlite/sqlite-3.47.1.ebuild index 6f71237f381c..a5d7c70c508f 100644 --- a/dev-db/sqlite/sqlite-3.47.1.ebuild +++ b/dev-db/sqlite/sqlite-3.47.1.ebuild @@ -52,6 +52,7 @@ fi PATCHES=( "${FILESDIR}"/${PN}-3.45.1-ppc64-ptr.patch + "${FILESDIR}"/${PN}-3.47.1-buildtclext.patch ) _fossil_fetch() { -- cgit v1.2.3-65-gdbad