Attached is the updated debdiff for Ubuntu 26.04 (Resolute)
(`0.19.1ubuntu2.1`), replacing the earlier incomplete diff.

It incorporates the `dpkg` >= 1.23.0 `file` to `filename` API updates
from Debian `pkg-kde-tools` `0.19.2` (Debian Bug #1123816), fixing
`SymbolFile` call sites, hash accesses, and preventing warnings/broken
diffs. It also adjusts `CMakeLists.txt` and
`dlrestrictions/DLRestrictionsConfig.cmake` for CMake 4.x compatibility
on Resolute.

Verified in a clean Ubuntu 26.04 container (`dpkg-buildpackage` + test
suite + `pkgkde-symbolshelper batchpatch`).


** Patch removed: "Debdiff for Ubuntu 26.04 (Resolute) updating 
Dpkg::Shlibs::SymbolFile->new() calls from file to filename (LP: #2174251)"
   
https://bugs.launchpad.net/ubuntu/+source/pkg-kde-tools/+bug/2174251/+attachment/6017300/+files/pkg-kde-tools_0.19.1ubuntu2.1.debdiff

** Patch added: "Debdiff for Ubuntu 26.04 (Resolute) fixing 
Dpkg::Shlibs::SymbolFile filename API and CMake 4.x compatibility (LP: 
#2174251)"
   
https://bugs.launchpad.net/ubuntu/+source/pkg-kde-tools/+bug/2174251/+attachment/6017350/+files/pkg-kde-tools_0.19.1ubuntu2.1.debdiff

** Description changed:

  [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
+   pkgkde-symbolshelper: error: input symbol file template must have
  'SymbolsHelper-Confirmed' header
  
  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).
  
  [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>
+    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
+    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.
  
  [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.
+ [Where Problems Could Occur]
+ Regression risk is minimal. The patch cherry-picks the `dpkg` >= 1.23.0 
`file` -> `filename` compatibility updates from Debian `pkg-kde-tools` `0.19.2` 
(Debian Bug #1123816) across `SymbolFile` calls and hash accesses, and updates 
CMake files (`CMakeLists.txt` and `dlrestrictions/DLRestrictionsConfig.cmake`) 
for clean builds under CMake 4.x on Resolute.
  
  ---
  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>
+  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