summaryrefslogtreecommitdiff
path: root/sqlite-drop-tcl-at-sign.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-11-16 15:30:32 +0000
committerCoprDistGit <infra@openeuler.org>2024-11-16 15:30:32 +0000
commitc812b53a244709b5cd75325d4268644134d1019b (patch)
tree2c0891cacbd9492299f57c4f17b3712b85586b72 /sqlite-drop-tcl-at-sign.patch
parentfe54ced5ac54756f5c6f0bb92ad5918907f8e2a3 (diff)
automatic import of sqlite
Diffstat (limited to 'sqlite-drop-tcl-at-sign.patch')
-rw-r--r--sqlite-drop-tcl-at-sign.patch35
1 files changed, 29 insertions, 6 deletions
diff --git a/sqlite-drop-tcl-at-sign.patch b/sqlite-drop-tcl-at-sign.patch
index a1391bb..a19d9d0 100644
--- a/sqlite-drop-tcl-at-sign.patch
+++ b/sqlite-drop-tcl-at-sign.patch
@@ -1,8 +1,23 @@
-Index: sqlite/tool/buildtclext.tcl
+Index: tool/buildtclext.tcl
==================================================================
---- a/tool/buildtclext.tcl
-+++ a/tool/buildtclext.tcl
-@@ -140,12 +140,13 @@
+--- tool/buildtclext.tcl
++++ tool/buildtclext.tcl
+@@ -105,11 +105,11 @@
+ #
+ #puts "using $LIBDIR/tclConfig.sh"
+ 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
+ regexp {TCL_MAJOR_VERSION='(\d)'} $tclConfig all TCLMAJOR
+ set SUFFIX so
+@@ -138,18 +138,21 @@
+ regexp {TCL_SHLIB_LD='([^']+)'} $tclConfig all cmd
+ set LDFLAGS "$INC -DUSE_TCL_STUBS"
if {[string length $OPTS]>1} {
append LDFLAGS $OPTS
}
@@ -12,8 +27,16 @@ Index: sqlite/tool/buildtclext.tcl
} else {
set OUT libsqlite$VERSION.$SUFFIX
}
-+ set @ $OUT; # workaround for https://sqlite.org/forum/forumpost/6b1af7eb10884373
++ 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} {
+ set cnt 0
+ foreach dir $auto_path {
+