[From nobody Tue Sep  1 20:14:08 2026
Received: (at submit) by bugs.debian.org; 29 Aug 2026 15:32:43 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-122.1 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,GMAIL,HAS_PACKAGE,
 MD5_SHA1_SUM,PGPSIGNATURE,SPF_HELO_NONE,SPF_PASS,
 USER_IN_DKIM_WELCOMELIST,WORD_WITHOUT_VOWELS autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 85; hammy, 150; neutral, 109; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;vimer@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:54168)
 by buxtehude.debian.org with utf8esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;vimer@debian.org&gt;) id 1x0L2x-000zEW-0w
 for submit@bugs.debian.org; Sat, 29 Aug 2026 15:32:43 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Content-Type:MIME-Version:Message-ID:
 Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=4TPRpsq6dOordK7M7qSDYUltBJNMIdLrRmiNsaIOoLs=; b=f8QZBfoEJbLryPqM35rN7UeogM
 PeGmyIFn/rAuUd5s5rjlvD+g/m4bkarg6PsqSQvWwmXJWLRY2rJpbxntXszoebVnFDsjLHdT/F9ji
 voqqYZJqE+uYXovJA81zx2W2NH6VHiviI654/V3/l+h7geCPFZDsRw/pTEvfaWJFy43nCaLgEU3St
 MrXYH98/f9qqbFm7ULRFc6YIUeJW6j2gAu3xAXdWRfE2rj0n8P0vv9KtAR4LLZNH4DWPFcm7aCxFD
 iqscGSlm1+4DdnUFG7ZGqnjQ1JjV9jrFnMAeEkTORFom08V3KihSHU3N5tqko804cRLwUTJYKBd0B
 LC4MvzGg==;
Received: from authenticated-user by stravinsky.debian.org with utf8esmtpsa
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;vimer@debian.org&gt;) id 1x0L2u-0003o8-18;
 Sat, 29 Aug 2026 15:32:41 +0000
Date: Sat, 29 Aug 2026 23:30:22 +0800
From: Bo YU &lt;vimer@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: openocd: FTBFS with jimtcl 0.84
Message-ID: &lt;20260829153022.uvtx23m5gjhlfauw@debian&gt;
X-Reportbug-Version: 13.2.0
X-PGP-Key: https://github.com/yuzibo/yuzibo.github.io/blob/master/_includes/subkey-signing-06-18-143E4BAF-pub.asc
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol=&quot;application/pgp-signature&quot;; boundary=&quot;xhporach6hbklraq&quot;
Content-Disposition: inline
X-Debian-User: vimer
Delivered-To: submit@bugs.debian.org


--xhporach6hbklraq
Content-Type: multipart/mixed; boundary=&quot;f24tevuofe2eqp4y&quot;
Content-Disposition: inline


--f24tevuofe2eqp4y
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: openocd
Version: 0.12.0-3
Severity: important
Tags: ftbfs, patch
Affects: jimtcl

Dear Maintainer,

I am planing to upload jimtcl 0.84-2 to unstable soon and request one
transition from 0.83 to 0.84. Rebuild openocd with the jimtcl 0.84-1 but
will get:

```
src/helper/log.c: In function 'log_puts':
src/helper/log.c:99:11: warning: assignment discards 'const' qualifier from=
 pointer target type [-Wdiscarded-qualifiers]
   99 |         f =3D strrchr(file, '/');
      |           ^
src/helper/command.c: In function 'jimcmd_is_proc':
src/helper/command.c:51:19: error: 'Jim_Cmd' has no member named 'isproc'
   51 |         return cmd-&gt;isproc;
      |                   ^~
src/helper/command.c: In function 'jimcmd_is_oocd_command':
src/helper/command.c:56:20: error: 'Jim_Cmd' has no member named 'isproc'
   56 |         return !cmd-&gt;isproc &amp;&amp; cmd-&gt;u.native.cmdProc =3D=3D jim_com=
mand_dispatch;
      |                    ^~
src/helper/command.c: In function 'jimcmd_privdata':
src/helper/command.c:61:19: error: 'Jim_Cmd' has no member named 'isproc'
   61 |         return cmd-&gt;isproc ? NULL : cmd-&gt;u.native.privData;
      |                   ^~
libtool: link: ar cr src/xsvf/.libs/libxsvf.a src/xsvf/xsvf.o
libtool: link: ranlib src/xsvf/.libs/libxsvf.a
```

Upstream has one commit[0] to fix the build issue and I can confirm that
it works on Debian here also.

So once I upload jimtcl 0.84-2 to unstable, could you have a look at
this?

[0]: https://review.openocd.org/c/openocd/+/8956


--=20
Regards,
--
  Bo YU


--f24tevuofe2eqp4y
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment; filename=&quot;jimtcl-0.84-build-issue.patch&quot;
Content-Transfer-Encoding: quoted-printable

=46rom fe0080478b9e76a4b6b64186b7b705726ac55848 Mon Sep 17 00:00:00 2001
=46rom: Antonio Borneo &lt;borneo.antonio@gmail.com&gt;
Date: Sat, 28 Sep 2024 17:58:51 +0200
Subject: [PATCH] jimtcl: fix build with jimtcl master branch

Current jimtcl release 0.83 has been tagged on 2024-08-28 and the
new 0.84 is on the way.

The change [1] merged in jimtcl branch 'master' for 0.84 breaks
the build of OpenOCD.
OpenOCD releases are not frequent and jimtcl is now by default an
external build dependency. The release of jimtcl 0.84 could force
OpenOCD to deliver a fix release to support it.

Anticipate the change [1] by detecting it at compile time, without
relying on jimtcl version, and providing an alternative code.

Link: https://github.com/msteveb/jimtcl/commit/5669e84aad22 [1]
Change-Id: I61bf100d447083258aea222aaf15608b7cbe2e57
Signed-off-by: Antonio Borneo &lt;borneo.antonio@gmail.com&gt;
Reviewed-on: https://review.openocd.org/c/openocd/+/8956
Tested-by: jenkins
Reviewed-by: Andrzej Sier=C5=BC=C4=99ga &lt;asier70@gmail.com&gt;
---

--- a/src/helper/command.c
+++ b/src/helper/command.c
@@ -48,17 +48,22 @@
 /* set of functions to wrap jimtcl internal data */
 static inline bool jimcmd_is_proc(Jim_Cmd *cmd)
 {
+#if defined(JIM_CMD_ISPROC)
+	// JIM_VERSION &gt;=3D 84
+	return cmd-&gt;flags &amp; JIM_CMD_ISPROC;
+#else
 	return cmd-&gt;isproc;
+#endif
 }
=20
 bool jimcmd_is_oocd_command(Jim_Cmd *cmd)
 {
-	return !cmd-&gt;isproc &amp;&amp; cmd-&gt;u.native.cmdProc =3D=3D jim_command_dispatch;
+	return !jimcmd_is_proc(cmd) &amp;&amp; cmd-&gt;u.native.cmdProc =3D=3D jim_command_d=
ispatch;
 }
=20
 void *jimcmd_privdata(Jim_Cmd *cmd)
 {
-	return cmd-&gt;isproc ? NULL : cmd-&gt;u.native.privData;
+	return jimcmd_is_proc(cmd) ? NULL : cmd-&gt;u.native.privData;
 }
=20
 static void tcl_output(void *privData, const char *file, unsigned line,

--f24tevuofe2eqp4y--

--xhporach6hbklraq
Content-Type: application/pgp-signature; name=&quot;signature.asc&quot;

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEIcmhjYVTlmab0tjp+RVP3hQ+S68FAmqS+wkACgkQ+RVP3hQ+
S68C7w/+IhqvnmBKTCae5bgRi7UI8iYZU3zg19Ls3RXowrevTKW1Gkp4j4LTLTTn
Ar0DncUBz1P02nmmicmOBz5WSf+6sjeCDL//3RpbyaJrG5UHput82W2W4soX36CO
FkHapZ8AAJrna5leISLm/FZUAmcUrjGXbJcz48ARbgPa8WtX8Gz8t1GfeTzydj/i
RTDJGsvxmS06FApgJPuXt1kspJhPDIRzA108vRGbM+0hiP0h74O04V4MHp6ismG5
turlj4CccIwvqdAujdBIDTubD9/cQcyvicuculb5Xa0SwdZfGR9TlZxQlqPV5ORF
rg2ZYQL9pECqVZjz8E+9eN+qD/oIcFqU2q4LiDN0xglLHRf6N+ARQ6JXEqsqmWmF
9yd5qDHxYtTh04qlcErnI0XKGnEahQdzLzUfV1vznrlGoDSrvpJhV0tBjwgzNMML
l0IFZoTWexM/ZGMgCCTaajgiEckJRgrfs+xiz/ENqffCYAF951BSzlH4fhZHerQF
pKNmE5V9RegxmBcwTVY3qCZrtIx4yD+d/HkSNZefpyYbKSsrikJp38cRzOqOYyJQ
GYTec2OuhLenBlbG11AHJBoiRUaxKc72vmdNIPd+22P14QzEOYGYu8fC5b7Ono3/
pEk2xwJO4X2G4wlO6Q1OIvSTYL3/EaQvctZvqJM3tWzcq4ap4nY=
=umYK
-----END PGP SIGNATURE-----

--xhporach6hbklraq--
]