Suggested patch attached.
On Mon, Feb 9, 2026 at 1:57 PM Debian Bug Tracking System
<[email protected]> wrote:
>
> Thank you for filing a new Bug report with Debian.
>
> You can follow progress on this Bug here: 1127550:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1127550.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> As you requested using X-Debbugs-CC, your message was also forwarded to
> [email protected]
> (after having been given a Bug report number, if it did not have one).
>
> Your message has been sent to the package maintainer(s):
> [email protected]
>
> If you wish to submit further information on this problem, please
> send it to [email protected].
>
> Please do not send mail to [email protected] unless you wish
> to report a problem with the Bug-tracking system.
>
> --
> 1127550: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1127550
> Debian Bug Tracking System
> Contact [email protected] with problems
--- /usr/bin/debsums 2025-05-10 15:35:24.000000000 -0400
+++ ./debsums.patched 2026-02-09 11:47:03.578206160 -0500
@@ -68,9 +68,12 @@
-l, --list-missing list packages which don't have an md5sums file
-s, --silent only report errors
-m, --md5sums=FILE read list of deb checksums from FILE
+ these are ignored for installed dpkg verification
-x, --report-mismatches report errors and print the md5sums mismatch
-r, --root=DIR root directory to check (default /)
-d, --admindir=DIR dpkg admin directory (default /var/lib/dpkg)
+ -D, --dpkgdir=DIR set DPKG root dir directly
+ (default derived from (\$root/\$admindir))
-p, --deb-path=DIR[:DIR...] search path for debs
-g, --generate=[missing|all][,nocheck]
generate md5sums from deb contents
@@ -94,6 +97,7 @@
'm|md5sums=s' => \my $md5sums,
'r|root=s' => \my $root,
'd|admindir=s' => \my $admindir,
+ 'D|dpkgdir=s' => \my $DPKG,
'p|deb-path=s' => \my $debpath,
'generate=s' => \$gen_opt,
'locale-purge!' => \my $localepurge,
@@ -147,7 +151,7 @@
$root ||= '';
$admindir ||= '/var/lib/dpkg';
-my $DPKG = $root . $admindir;
+$DPKG ||= $root . $admindir;
my $is_path_pattern_opt = sub {
return shift =~ /^--path-(?:exclude|include)=/;