[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1063767: debuginfod: should have Recommends or Depends on libarchive-tools, for bsdtar



Package: debuginfod
Version: 0.188-2.1
Severity: important
Control: found -1 0.190-1

By default, debuginfod wants to unpack detached debug symbols and libraries
from Debian packages using bsdtar:

> Feb 12 13:14:46 REDACTED docker[2367192]: [Mon Feb 12 13:14:46 2024] (7/7): accepting archive types .ddeb((bsdtar -O -x -f - data.tar\*)<) .deb((bsdtar -O -x -f - data.tar\*)<) .ipk((bsdtar -O -x -f - data.tar\*)<) .pkg.tar.zst(zstdcat)

(In my case the .ddeb, .deb and .ipk are built-in defaults, while handling
of .pkg.tar.zst is from a command-line option.)

But debuginfod has no dependency relationship with libarchive-tools, so
there's no reason to expect that bsdtar will work. For an installation of
debuginfod on a Debian system, I think unpacking .deb is basic
functionality, so I think a Recommends or maybe even a Depends would be
proportionate.

Looking at NEWS, I think this is probably a regression in 0.184 (therefore
a regression between bullseye and bookworm). Older versions were able to
use dpkg-deb to extract detached debug symbols, but 0.184+ requires bsdtar
for this:

    case 'U':
      scan_archives[".deb"]="(bsdtar -O -x -f - data.tar\\*)<";
      scan_archives[".ddeb"]="(bsdtar -O -x -f - data.tar\\*)<";
      scan_archives[".ipk"]="(bsdtar -O -x -f - data.tar\\*)<";
      // .udeb too?
      break;

Please add a Recommends or Depends on libarchive-tools, whichever you
feel is more appropriate.

Thanks,
    smcv


Reply to: