Public bug reported:

I suggest that Ubuntu set debugInfoURL to https://debuginfod.ubuntu.com

I don't really use debuginfod so I'm unsure of the effect of this
change.

Background
==========
Ubuntu sets the package note metadata by default with dpkg since June 2024. 
Debian does not currently do this; however, some packages like libzstd add 
Build-Depends: dh-package-notes and add include 
/usr/share/debhelper/dh_package_notes/package-notes.mk to debian/rules to get 
the field.

According to
https://manpages.debian.org/unstable/dh_package_notes

that will set the debugInfoURL field to https://debuginfod.debian.net/
on Debian and to https://debuginfod.ubuntu.com on Ubuntu. (Not mentioned
in the current manpage is that it's actually a no-op on Ubuntu since
package-notes 0.14.)

The manpage also says that it will set the OS field to "Ubuntu", but
Ubuntu sets it to "ubuntu" instead.

With Ubuntu 26.04 LTS (devel)
=============================
$ readelf --notes /usr/lib/x86_64-linux-gnu/libzstd.so.1


[…]

Displaying notes found in: .note.package
  Owner                Data size        Description
  FDO                  0x00000060       FDO_PACKAGING_METADATA
    Packaging Metadata: 
{"type":"deb","os":"ubuntu","name":"libzstd","version":"1.5.7+dfsg-2","architecture":"amd64"}


With Debian Testing
===================
sudo apt install binutils

$ readelf --notes /usr/lib/x86_64-linux-gnu/libzstd.so.1

[…]

Displaying notes found in: .note.package
  Owner                Data size        Description
  FDO                  0x00000090       FDO_PACKAGING_METADATA
    Packaging Metadata: 
{"type":"deb","os":"Debian","name":"libzstd","version":"1.5.7+dfsg-2","architecture":"amd64","debugInfoUrl":"https://debuginfod.debian.net"}

** Affects: dpkg (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2137023

Title:
  Set debuginfourl in ELF package note metadata

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2137023/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to