Package: scid
Version: 1:4.7.4+dfsg1-2
Severity: important
Tags: patch
X-Debbugs-Cc: arnaudme...@gmx.com

Dear Maintainer,

Upon fresh installation, Scid does not run and displays the following
message when run in a terminal:

$ scid
can't set "tooltip::labelOpts": parent namespace doesn't exist
    while executing
"set tooltip::labelOpts [list -highlightthickness 0 -relief solid -bd 1  
-background lightyellow -fg black -font $font]"
    (in namespace eval "::utils::tooltip" script line 10)
    invoked from within
"namespace eval ::utils::tooltip {
  global ::utils::tooltip::font

  if {![info exists font]} {
    set font TkDefaultFont
  }

  # Undocumented toolt..."
    (file "/usr/share/scid/tcl/utils/tooltip.tcl" line 11)
    invoked from within
"source -encoding utf-8 [file nativename [file join $::scidTclDir "$f"]]"
    ("foreach" body line 2)
    invoked from within
"foreach f $tcl_files {
    source -encoding utf-8 [file nativename [file join $::scidTclDir "$f"]]
}"
    (file "/usr/games/scid" line 674)


The problem appears to come from a very small mistake in line 20 of file
/usr/share/scid/utils:

--- original/tooltip.tcl        2023-08-02 22:51:16.416479228 +0200
+++ patch/tooltip.tcl   2023-08-02 22:51:27.480313699 +0200
@@ -17,7 +17,7 @@
 
   # Undocumented tooltip variable that allows users to extend / override
   # label creation options.
-  set tooltip::labelOpts [list -highlightthickness 0 -relief solid -bd 1 \
+  set ::tooltip::labelOpts [list -highlightthickness 0 -relief solid -bd 1 \
       -background lightyellow -fg black -font $font]
 
   proc Set {button msg} {


It also appears this bug was fixed in the new upstream versions.

Thanks,
Arnaud Meyer.


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.4.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages scid depends on:
ii  libc6       2.37-6
ii  libstdc++6  13.1.0-9
ii  libtcl8.6   8.6.13+dfsg-2
ii  python3     3.11.4-5
ii  scid-data   1:4.7.4+dfsg1-2
ii  tcl         8.6.13
ii  tk          8.6.13
ii  zlib1g      1:1.2.13.dfsg-1

Versions of packages scid recommends:
ii  libtk-img              1:1.4.14+dfsg-2
ii  tcl-snack [libsnack2]  2.2.10.20090624+dfsg-1
ii  tcllib                 1.21+dfsg-1
ii  tdom                   0.9.3-1
ii  texlive-games          2022.20230122-4

Versions of packages scid suggests:
pn  crafty                              <none>
pn  glaurung                            <none>
pn  phalanx                             <none>
pn  scid-spell-data | scid-rating-data  <none>
ii  stockfish                           15.1-4
pn  toga2                               <none>

-- no debconf information
--- original/tooltip.tcl        2023-08-02 22:51:16.416479228 +0200
+++ patch/tooltip.tcl   2023-08-02 22:51:27.480313699 +0200
@@ -17,7 +17,7 @@
 
   # Undocumented tooltip variable that allows users to extend / override
   # label creation options.
-  set tooltip::labelOpts [list -highlightthickness 0 -relief solid -bd 1 \
+  set ::tooltip::labelOpts [list -highlightthickness 0 -relief solid -bd 1 \
       -background lightyellow -fg black -font $font]
 
   proc Set {button msg} {

Reply via email to