← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2109333] Re: glibc package metadata in all binaries

 

Marking as also affecting binutils since the patch adding support for
ELF_PACKAGE_METADATA is buggy: the CLI only takes precedence if it has
an actual value, not if we use the empty string.

In other words:

$ ELF_PACKAGE_METADATA='{"type":"deb"}' gcc -o foo foo.c -Wl,--package-
metadata

should result in a binary without the ELF note, yet it does.

This makes it harder to bypass cleanly. Ideally we'd implement the
entire support through the dpkg-buildflags LDFLAGS rather than a bespoke
environment variable, but meanwhile I'm testing out a binutils patch to
alleviate this specific pain.

** Also affects: binutils (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/2109333

Title:
  glibc package metadata in all binaries

Status in binutils package in Ubuntu:
  New
Status in glibc package in Ubuntu:
  New

Bug description:
  glibc appears in the ELF package metadata of (all?) binary packages.
  Examples:

  ```
  $ readelf --notes /usr/bin/hd | tail -n6
  Displaying notes found in: .note.package
    Besitzer             Datengröße	Description
    FDO                  0x00000060	FDO_PACKAGING_METADATA
      Packaging Metadata: {"type":"deb","os":"ubuntu","name":"glibc","version":"2.40-4ubuntu1","architecture":"amd64"}
    FDO                  0x00000068	FDO_PACKAGING_METADATA
      Packaging Metadata: {"type":"deb","os":"ubuntu","name":"util-linux","version":"2.40.2-14ubuntu1","architecture":"amd64"}
  ```

  or

  ```
  $ readelf --notes /usr/bin/sleep | tail -n6
  Displaying notes found in: .note.package
    Besitzer             Datengröße	Description
    FDO                  0x00000060	FDO_PACKAGING_METADATA
      Packaging Metadata: {"type":"deb","os":"ubuntu","name":"glibc","version":"2.40-4ubuntu1","architecture":"amd64"}
    FDO                  0x00000060	FDO_PACKAGING_METADATA
      Packaging Metadata: {"type":"deb","os":"ubuntu","name":"coreutils","version":"9.5-1ubuntu1","architecture":"amd64"}
  ```

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