dpkg 1.22.6ubuntu11 enables ELF packaging metadata

Benjamin Drung bdrung at ubuntu.com
Tue Jun 18 15:27:17 UTC 2024


On Tue, 2024-06-18 at 10:32 +1200, Michael Hudson-Doyle wrote:
> On Sat, 15 Jun 2024 at 10:46, Benjamin Drung <bdrung at ubuntu.com> wrote:
> > Hi everyone,
> > 
> 
> 
> Hi Benjamin,
>  
> > I just uploaded dpkg 1.22.6ubuntu11 to Ubuntu oracular. This version
> > enables ELF packaging metadata via dpkg-buildflags by default. ELF
> > objects will record the spec https://systemd.io/ELF_PACKAGE_METADATA/
> > 
> 
> 
> So these changes break a few things, because they assume that if the
> environment is affected by dpkg-buildflags, it is also affected by code
> that is only part of running dpkg-buildpackage itself. There are a few
> ways that this can go wrong:
> 
> 1) running "./debian/rules binary" or whatever instead of dpkg-buildpackage
>    (which afaict is still the interface to package building that's dictated
>    by policy)
> 2) code like that in cargo-auto-test that sources dpkg-buildflags output to
>    get behaviour close to a package build without actually doing a package
>    build.
> 
> I don't know what the ideal change for this is. I guess the code in
> add_build_flags could check that the DPKG_BUILDPACKAGE_* variables the spec
> files need are defined before including the spec files in LDFLAGS?

This issue is tracked in [1] now and I am working on a solution (set the
variables in case they are not present in the environment).

[1] https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2069722

-- 
Benjamin Drung
Debian & Ubuntu Developer



More information about the ubuntu-devel mailing list