Public bug reported:
In Ubuntu 26.04, pkg-kde-tools is at 0.19.1ubuntu2 while libdpkg-perl is
at 1.23.7ubuntu1. Because dpkg 1.23.0 renamed the `file` constructor
option in Dpkg::Shlibs::SymbolFile to `filename`
("Dpkg::Shlibs::SymbolFile: Rename file option to filename"), pkgkde-
symbolshelper fails to load symbol templates and aborts with:
pkgkde-symbolshelper: error: input symbol file template must have
'SymbolsHelper-Confirmed' header
Root Cause
----------
In /usr/share/perl5/Dpkg/Shlibs/SymbolFile.pm (lines 99-109),
Dpkg::Shlibs::SymbolFile->new() checks `if (exists $self->{filename})`, whereas
pkg-kde-tools 0.19.1ubuntu2 still passes `file => ...` across all 5 call sites:
- /usr/bin/pkgkde-symbolshelper:274
- /usr/bin/pkgkde-symbolshelper:284
- /usr/bin/pkgkde-symbolshelper:462
- /usr/bin/pkgkde-symbolshelper:678
- /usr/share/perl5/Debian/PkgKde/SymbolsHelper/SymbolFile.pm:224
Because `exists $self->{filename}` is false, `$self->load()` is never
called, the symbol file is never opened or parsed, and
`$symfile->get_confirmed_version()` returns undef.
Steps to Reproduce
------------------
1. On Ubuntu 26.04 (pkg-kde-tools 0.19.1ubuntu2, libdpkg-perl 1.23.7ubuntu1),
inside a source package containing a valid debian/<pkg>.symbols file starting
with `# SymbolsHelper-Confirmed: ...`, run:
pkgkde-symbolshelper batchpatch -v <version> <build.log>
2. pkgkde-symbolshelper exits with:
pkgkde-symbolshelper: error: input symbol file template must have
'SymbolsHelper-Confirmed' header
Upstream Fix
------------
This was fixed in Debian in pkg-kde-tools 0.19.2 (Debian Bug #1123816,
"pkg-kde-tools: FTBFS with dpkg 1.23.0"). Please cherry-pick the `file` ->
`filename` compatibility fix from 0.19.2 into Ubuntu 26.04.
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: pkg-kde-tools 0.19.1ubuntu2
ProcVersionSignature: Ubuntu 7.0.0-43.43-generic 7.0.14
Uname: Linux 7.0.0-43-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Nov 12 09:41:14 2026
InstallationDate: Installed on 2026-04-26 (200 days ago)
InstallationMedia: Ubuntu 26.04 "Resolute Raccoon" - Release amd64 (20260423.1)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
SourcePackage: pkg-kde-tools
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: pkg-kde-tools (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174251
Title:
pkgkde-symbolshelper fails with dpkg >= 1.23.0
(Dpkg::Shlibs::SymbolFile file -> filename rename; fixed in 0.19.2)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pkg-kde-tools/+bug/2174251/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs