#1117999 dpkg-buildflags: enable ELF package note metadata

Package:
dpkg
Source:
dpkg
Description:
Debian package management system
Submitter:
Benjamin Drung
Date:
2026-07-01 10:17:01 UTC
Severity:
normal
Tags:
#1117999#5
Date:
2025-10-13 13:53:16 UTC
From:
To:
Dear Maintainer,

as discussed and agreed on at DebConf 25, please add ELF package note
metadata following the
https://systemd.io/PACKAGE_METADATA_FOR_EXECUTABLE_FILES/ specification.

A tested patch is attached.

#1117999#10
Date:
2025-11-18 18:13:54 UTC
From:
To:
https://systemd.io/PACKAGE_METADATA_FOR_EXECUTABLE_FILES/ specification.

Here is an updated patch with following changes:

* fix extra comma when DEB_BUILD_DEBUG_INFO_URL is set
* fix scripts/t/mk.t test case (i.e. make debian/changelog accessible)

#1117999#15
Date:
2025-12-15 12:59:26 UTC
From:
To:
I don't like the approach that is taken here.

- If the build system of a package misses passing flags,
   then you don't embed that info into the binaries.

- The four linkers (BFD ld, gold, mold and lld) also
   take that data from the environment, and there is
   also precedence for taking such data from the
   environment, like the TIMESTAMP for the build.

- dpkg-buildflags with the proposed implementation
   causes autopkg test regressions with the additional
   stderr output (already six regressions with the
   tests triggered by dpkg).  There will be a lot
   more ...

So please set that in the environment instead, it seems to be the more
robust approach.

Matthias

#1117999#20
Date:
2026-07-01 10:14:04 UTC
From:
To:
Hi,

here is a refreshed patch against the dpkg main branch.