** Bug watch added: Debian Bug tracker #1123816
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1123816

** Also affects: pkg-kde-tools (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1123816
   Importance: Unknown
       Status: Unknown

** Summary changed:

- pkgkde-symbolshelper fails with dpkg >= 1.23.0 (Dpkg::Shlibs::SymbolFile file 
-> filename rename; fixed in 0.19.2)
+ [SRU] pkgkde-symbolshelper fails with dpkg >= 1.23.0 
(Dpkg::Shlibs::SymbolFile file -> filename rename; fixed in 0.19.2)

** Description changed:

- 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:
+ [Impact]
+ In Ubuntu 26.04 (Resolute Raccoon), `pkg-kde-tools` (`0.19.1ubuntu2`) is 
broken when paired with `libdpkg-perl` (`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").
+ 
+ Because `pkgkde-symbolshelper` and
+ `Debian::PkgKde::SymbolsHelper::SymbolFile` still pass `file => ...`
+ across all 5 `SymbolFile->new()` call sites,
+ `Dpkg::Shlibs::SymbolFile->new()` (`if (exists $self->{filename})`)
+ never loads or parses the input symbol file,
+ `$symfile->get_confirmed_version()` returns `undef`, and `pkgkde-
+ symbolshelper` 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:
+ This breaks Debian/Ubuntu packaging workflows that rely on `pkgkde-
+ symbolshelper` (`batchpatch`, `patch`, `symbolfile`) on Ubuntu 26.04.
+ The fix was already released upstream in Debian `pkg-kde-tools` `0.19.2`
+ (Debian Bug #1123816).
  
-   - /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
+ [Test Plan]
+ 1. On Ubuntu 26.04 with `pkg-kde-tools` `0.19.1ubuntu2` and `libdpkg-perl` 
`1.23.7ubuntu1`, inside an unpacked source package containing a valid 
`debian/<pkg>.symbols` file starting with `# SymbolsHelper-Confirmed: ...`, run:
+    pkgkde-symbolshelper batchpatch -v <version> <build.log>
+ 2. Confirm that `pkgkde-symbolshelper` fails with:
+    pkgkde-symbolshelper: error: input symbol file template must have 
'SymbolsHelper-Confirmed' header
+ 3. Install `pkg-kde-tools` `0.19.1ubuntu2.1` from `resolute-proposed` and 
re-run the same `pkgkde-symbolshelper batchpatch` command.
+ 4. Confirm that `pkgkde-symbolshelper` opens the symbol template, applies the 
symbol diff from `<build.log>`, and updates `# SymbolsHelper-Confirmed:` 
cleanly without errors.
  
- 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.
+ [Where Problems Could Occur]
+ Regression risk is minimal. The patch is a direct cherry-pick from Debian 
`pkg-kde-tools` `0.19.2` (Debian Bug #1123816) that only renames the 
constructor hash key from `file =>` to `filename =>` at the 5 
`Debian::PkgKde::SymbolsHelper::SymbolFile->new()` call sites 
(`/usr/bin/pkgkde-symbolshelper` lines 274, 284, 462, 678 and 
`/usr/share/perl5/Debian/PkgKde/SymbolsHelper/SymbolFile.pm` line 224) to match 
`libdpkg-perl` >= 1.23.0. All 5 call sites are currently non-functional without 
this change.
  
- 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)

-- 
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:
  [SRU] 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

Reply via email to