Your message dated Sun, 22 Nov 2026 16:17:14 +0000
with message-id <[email protected]>
and subject line Bug#1154753: fixed in pkg-kde-tools 0.22.2
has caused the Debian Bug report #1154753,
regarding pkgkde-symbolshelper: templinst detection misses instantiations with
array types
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1154753: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1154753
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: pkg-kde-tools
Version: 0.22.1
Severity: normal
Tags: patch
Control: affects -1 src:bobcat
Dear Maintainer,
detect_cpp_templinst() in Debian::PkgKde::SymbolsHelper::Symbol does not
recognise template instantiations whose demangled name contains an array
type, so `pkgkde-symbolshelper create`, `patch` and `batchpatch` leave
them without the (optional=templinst) tag.
Example from libbobcat6 (src:bobcat):
_ZN3FBBlsISt10unique_ptrIA_cSt14default_deleteIS2_EEEEONS_9ExceptionES7_RKT_
FBB::Exception&& FBB::operator<< <std::unique_ptr<char [],
std::default_delete<char []> > >(FBB::Exception&&, std::unique_ptr<char [],
std::default_delete<char []> > const&)
The function removes whitespace around ',', '<', '>', '(' and ')' before
splitting the name on whitespace, but not around '[' and ']'. The space
in "char []" survives, so the split breaks the function name inside the
template arguments, giving these tokens:
1. FBB::Exception&&
2. FBB::operator<<<std::unique_ptr<char
3. [],std::default_delete<char
4. []>>>(FBB::Exception&&,std::unique_ptr<char
5. [],std::default_delete<char
6. []>>const&)
Only the first two tokens are examined. Neither contains "(", and the
check returns 0.
Adding '[' and ']' to the character classes removes the spaces around
the brackets as well, so the name splits only between the return type
and the function name:
1. FBB::Exception&&
2.
FBB::operator<<<std::unique_ptr<char[],std::default_delete<char[]>>>(FBB::Exception&&,std::unique_ptr<char[],std::default_delete<char[]>>const&)
The second token contains "<...>" followed by "(", and the check
returns 1.
Proposed change:
--- a/perllib/Debian/PkgKde/SymbolsHelper/Symbol.pm
+++ b/perllib/Debian/PkgKde/SymbolsHelper/Symbol.pm
@@ -143,8 +143,8 @@
my $cppname = $self->get_cppname();
if (defined $cppname) {
# Prepare for tokenizing: wipe out unnecessary spaces
- $cppname =~ s/([,<>()])\s+/$1/g;
- $cppname =~ s/\s+([,<>()])/$1/g;
+ $cppname =~ s/([,<>()\[\]])\s+/$1/g;
+ $cppname =~ s/\s+([,<>()\[\]])/$1/g;
$cppname =~
s/\s*((?:(?:un)?signed|volatile|restrict|const|long)[*&]*)\s*/$1/g;
if (my @tokens = split(/\s+/, $cppname)) {
my $func;
The attached patch contains this change and a test case,
t/symbolshelper/templinst_array_args to run batchpatch on new
symbols:
_Z3fooIPcEvRKT_ void foo<char*>(char* const&)
_Z3fooIA4_iEvRKT_ void foo<int [4]>(int const (&) [4])
_Z3fooIA_iEvRKT_ void foo<int []>(int const (&) [])
_Z3barRA4_i bar(int (&) [4])
and expects the three foo instantiations to be tagged
(optional=templinst) and bar, which is not a template, to stay
untagged.
Thank you!
tony
diff -Nru a/perllib/Debian/PkgKde/SymbolsHelper/Symbol.pm b/perllib/Debian/PkgKde/SymbolsHelper/Symbol.pm
--- a/perllib/Debian/PkgKde/SymbolsHelper/Symbol.pm 2026-07-19 11:21:10.000000000 -0700
+++ b/perllib/Debian/PkgKde/SymbolsHelper/Symbol.pm 2026-11-21 17:44:19.983781727 -0800
@@ -143,8 +143,8 @@
my $cppname = $self->get_cppname();
if (defined $cppname) {
# Prepare for tokenizing: wipe out unnecessary spaces
- $cppname =~ s/([,<>()])\s+/$1/g;
- $cppname =~ s/\s+([,<>()])/$1/g;
+ $cppname =~ s/([,<>()\[\]])\s+/$1/g;
+ $cppname =~ s/\s+([,<>()\[\]])/$1/g;
$cppname =~ s/\s*((?:(?:un)?signed|volatile|restrict|const|long)[*&]*)\s*/$1/g;
if (my @tokens = split(/\s+/, $cppname)) {
my $func;
diff -Nru a/t/symbolshelper/CMakeLists.txt b/t/symbolshelper/CMakeLists.txt
--- a/t/symbolshelper/CMakeLists.txt 2026-07-19 11:21:10.000000000 -0700
+++ b/t/symbolshelper/CMakeLists.txt 2026-11-21 17:45:11.921739381 -0800
@@ -9,6 +9,7 @@
missing_in_new_version
missing_on_new_arch
new_symbols
+ templinst_array_args
DESTINATION .
)
add_test(NAME symbolshelper COMMAND run_tests.sh)
diff -Nru a/t/symbolshelper/run_tests.sh b/t/symbolshelper/run_tests.sh
--- a/t/symbolshelper/run_tests.sh 2026-07-19 11:21:10.000000000 -0700
+++ b/t/symbolshelper/run_tests.sh 2026-11-21 17:45:11.921032335 -0800
@@ -10,6 +10,7 @@
missing_in_new_version
missing_on_new_arch
new_symbols
+ templinst_array_args
'
export PATH=$(pwd):$PATH
diff -Nru a/t/symbolshelper/templinst_array_args/amd64.diff b/t/symbolshelper/templinst_array_args/amd64.diff
--- a/t/symbolshelper/templinst_array_args/amd64.diff 1969-12-31 16:00:00.000000000 -0800
+++ b/t/symbolshelper/templinst_array_args/amd64.diff 2026-11-21 17:45:04.185737321 -0800
@@ -0,0 +1,9 @@
+--- debian/libfoo1.symbols (libfoo1_1.0_amd64)
++++ dpkg-gensymbols
+@@ -1,2 +1,6 @@
+ libfoo.so.1 libfoo1 #MINVER#
++ _Z3barRA4_i 1.0
+ _Z3bazi 0.1
++ _Z3fooIA4_iEvRKT_ 1.0
++ _Z3fooIA_iEvRKT_ 1.0
++ _Z3fooIPcEvRKT_ 1.0
diff -Nru a/t/symbolshelper/templinst_array_args/debian/control b/t/symbolshelper/templinst_array_args/debian/control
--- a/t/symbolshelper/templinst_array_args/debian/control 1969-12-31 16:00:00.000000000 -0800
+++ b/t/symbolshelper/templinst_array_args/debian/control 2026-11-21 17:45:04.185092816 -0800
@@ -0,0 +1,4 @@
+Source: foo
+
+Package: libfoo1
+Architecture: any
diff -Nru a/t/symbolshelper/templinst_array_args/debian/libfoo1.symbols.before b/t/symbolshelper/templinst_array_args/debian/libfoo1.symbols.before
--- a/t/symbolshelper/templinst_array_args/debian/libfoo1.symbols.before 1969-12-31 16:00:00.000000000 -0800
+++ b/t/symbolshelper/templinst_array_args/debian/libfoo1.symbols.before 2026-11-21 17:45:04.185212401 -0800
@@ -0,0 +1,3 @@
+# SymbolsHelper-Confirmed: 0.1 amd64 i386
+libfoo.so.1 libfoo1 #MINVER#
+ _Z3bazi 0.1
diff -Nru a/t/symbolshelper/templinst_array_args/debian/libfoo1.symbols.expected b/t/symbolshelper/templinst_array_args/debian/libfoo1.symbols.expected
--- a/t/symbolshelper/templinst_array_args/debian/libfoo1.symbols.expected 1969-12-31 16:00:00.000000000 -0800
+++ b/t/symbolshelper/templinst_array_args/debian/libfoo1.symbols.expected 2026-11-21 17:45:11.920375955 -0800
@@ -0,0 +1,7 @@
+# SymbolsHelper-Confirmed: 1.0 amd64 i386
+libfoo.so.1 libfoo1 #MINVER#
+ _Z3barRA4_i 1.0
+ _Z3bazi 0.1
+ (optional=templinst)_Z3fooIA4_iEvRKT_ 1.0
+ (optional=templinst)_Z3fooIA_iEvRKT_ 1.0
+ (optional=templinst)_Z3fooIPcEvRKT_ 1.0
diff -Nru a/t/symbolshelper/templinst_array_args/i386.diff b/t/symbolshelper/templinst_array_args/i386.diff
--- a/t/symbolshelper/templinst_array_args/i386.diff 1969-12-31 16:00:00.000000000 -0800
+++ b/t/symbolshelper/templinst_array_args/i386.diff 2026-11-21 17:45:04.186198908 -0800
@@ -0,0 +1,9 @@
+--- debian/libfoo1.symbols (libfoo1_1.0_i386)
++++ dpkg-gensymbols
+@@ -1,2 +1,6 @@
+ libfoo.so.1 libfoo1 #MINVER#
++ _Z3barRA4_i 1.0
+ _Z3bazi 0.1
++ _Z3fooIA4_iEvRKT_ 1.0
++ _Z3fooIA_iEvRKT_ 1.0
++ _Z3fooIPcEvRKT_ 1.0
--- End Message ---
--- Begin Message ---
Source: pkg-kde-tools
Source-Version: 0.22.2
Done: Dmitry Shachnev <[email protected]>
We believe that the bug you reported is fixed in the latest version of
pkg-kde-tools, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Dmitry Shachnev <[email protected]> (supplier of updated pkg-kde-tools package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 22 Nov 2026 18:35:20 +0300
Source: pkg-kde-tools
Architecture: source
Version: 0.22.2
Distribution: unstable
Urgency: medium
Maintainer: Debian Qt/KDE Maintainers <[email protected]>
Changed-By: Dmitry Shachnev <[email protected]>
Closes: 1130842 1154753
Changes:
pkg-kde-tools (0.22.2) unstable; urgency=medium
.
[ tony mancill ]
* pkgkde-symbolshelper: Recognize template instantiations with array
types (closes: #1154753).
.
[ Dmitry Shachnev ]
* pkgkde-symbolshelper: Skip files without SymbolsHelper-Confirmed header
(closes: #1130842).
* Run pkgkde-symbolshelper tests in the autopkgtest.
Checksums-Sha1:
6c070b316f433c31017e7ac75ab13fa7da40e44b 2140 pkg-kde-tools_0.22.2.dsc
18e586a7832b3b200a19c8b3495ee957703d5775 114080 pkg-kde-tools_0.22.2.tar.xz
8e1bc4750347e6398f3835664205414d500339f5 8352
pkg-kde-tools_0.22.2_source.buildinfo
Checksums-Sha256:
9b7017e3b8ae58a2ca83b8dc255611171fa24e3a46db3f69f2d2aaa5cfb21f28 2140
pkg-kde-tools_0.22.2.dsc
7a8a706fbe4dbe591622a5957457721871500086da4524901e34cc92e6749f44 114080
pkg-kde-tools_0.22.2.tar.xz
6a37109a45daaa73939761b2dcb0a4c1edd51913e007691ef687524a021a20fc 8352
pkg-kde-tools_0.22.2_source.buildinfo
Files:
29ca350c6117912b911bb368eb9374d7 2140 devel optional pkg-kde-tools_0.22.2.dsc
9ab04ee26fb1d4d35be18dfd3fdb963c 114080 devel optional
pkg-kde-tools_0.22.2.tar.xz
7b99019bba0ef027361ece50e1d607a6 8352 devel optional
pkg-kde-tools_0.22.2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJHBAEBCgAxFiEE8kKZ/xu8kBi5BqTLYCaTbS8ciuAFAmsDDaITHG1pdHlhNTdA
ZGViaWFuLm9yZwAKCRBgJpNtLxyK4BNAD/0eWIcEgTX4L2xSC7TzVAj3CU1t/G0E
L7rlvoilYM2XQtnYPDxHiL/nc5gDIaQxym4ujn1Dx5HTCN53eewDomFG57+LAV4i
IFDE0RqCCpu/gDXNq62ocAF5lanT36opQJ/lKhkWzc3RY14B8IRWg/Mumgkk0Dcr
nT9p+gmRG2luaEFCYPD+MvFDzcgk5xNYp2nU9XcXTNBOBgDLNiYi/FY49NK25uN0
zQBdn6u6kalQlOuzm1FT/NdyCzqQxkZs/Z/XTChcsFSewHSz2XVy1tyfnRu6G/J1
PyI3JORuvT7i6B/IGe9A9hY3qp7bndGiNPqZ7tdHcMZqyUiAnnSbAc301btwC/DF
8ot2Yy+xv3bPf53wDKjzb/clyR/B3Gxri00T+mHCLtbb5bD+mosYege7EiR+DjqI
Xjc69/1iKTMdBVghqVYVcrV+wGsn6k2r78DOcsWRacsp8s7LpsiQN+kjIpy+IcEJ
g9wRUVElmO9+XocPZI8bKI1i8dkShhtM6l7fWVZhCXEJm79z5kkfsNsfSoMPvPlf
4U3lCfxtlTDda48tdU0FJ4rsozBHDOyiaq9nG9K4luunQtKxfko9HB5QVkMlwyqP
8Vn1eW4JbjP1HFEdFEiM8yKsLHwMsDzvGhVn5skB6jnSfWjCFkCKOLwEqXN2nSRr
D1yCmumd7RJJcw==
=MOXr
-----END PGP SIGNATURE-----
pgpIU5q4csLRv.pgp
Description: PGP signature
--- End Message ---