[Pkg-electronics-devel] Bug#1014849: Newer jimtcl (>= 0.81) requires fix to scripts

NIIBE Yutaka gniibe at fsij.org
Wed Jul 13 07:30:29 BST 2022


Package: openocd
Version: 0.11.0-1+b1
Severity: serious

Hello,

After I upgraded to libjim0.81, OpenOCD started to emit errors like:
==================
Error executing event examine-end on target stm32f0x.cpu:
/usr/bin/../share/openocd/scripts/mem_helper.tcl:37: Error: wrong # args: should be "expr expression"
in procedure 'program' 
in procedure 'stm32f0x_default_examine_end' called at file "/usr/bin/../share/openocd/scripts/target/stm32f0x.cfg", line 93
in procedure 'mmw' called at file "/usr/bin/../share/openocd/scripts/target/stm32f0x.cfg", line 74
at file "/usr/bin/../share/openocd/scripts/mem_helper.tcl", line 37
==================

I think that this is due to the change in expr command of jimtcl.
(IIUC, OpenOCD in Debian uses shared library in system for libjim.)

We can see the changes in upstream.

startup.tcl: prepare for jimtcl 0.81 'expr' syntax change:
https://repo.or.cz/openocd.git/commit/82b6a41117fa99e760681d9f31163e7b68357e71

tcl: [1/3] prepare for jimtcl 0.81 'expr' syntax change:
https://repo.or.cz/openocd.git/commit/f5657aa76e795e4ed5b13a9f5df943181a123e49

tcl: [2/3] prepare for jimtcl 0.81 'expr' syntax change:
https://repo.or.cz/openocd.git/commit/f855fdcf0d95ff9ba18a83f9a97d5368844d4f2c

tcl: [3/3] prepare for jimtcl 0.81 'expr' syntax change:
https://repo.or.cz/openocd.git/commit/64d89d5ee1a554fbae8eb0a7231ccb2dc4428c1a

openocd: prepare for jimtcl 0.81 'expr' syntax change
https://repo.or.cz/openocd.git/commit/c7eaaf620488c3268d02313dd5a30101d7aff37b


I confirmed that the error above is fixed by the patch to mem_helper.tcl,
adding quotation by { }.

-- System Information:
Debian Release: 11.4

Versions of packages openocd depends on:
ii  libc6              2.33-7
ii  libcapstone4       4.0.2-3
ii  libftdi1-2         1.5-5+b1
ii  libgpiod2          1.6.2-1
ii  libhidapi-hidraw0  0.10.1+dfsg-1
ii  libjaylink0        0.2.0-1
ii  libjim0.81         0.81+dfsg0-2
ii  libusb-0.1-4       2:0.1.12-32
ii  libusb-1.0-0       2:1.0.26-1

openocd recommends no packages.

openocd suggests no packages.

-- no debconf information



More information about the Pkg-electronics-devel mailing list