dpkg 1.22.0ubuntu1 breaking changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
dpkg added new compiler flags in 1.22.0ubuntu1 [0][1] which have caused misbuilt packages.
Two known cases are qemu and dovecot.
qemu was fixed in 1:8.04+
Please note that -fcf-protection is incompatible with -mindirect-branch. Most packages which use -mindirect-branch were likely addressed when -fcf-protection was introduced in 19.10 [3]. Debian is likely more affected in this regard.
For dovecot (LP#2036268) [4], the source of the issue is the dependency libunwind is misbuilt when `-mbranch-
Looking at codesearch [6] there are likely many packages affected by libunwind, which may not FTBFS but are misbuilt. There are likely other dependencies, besides libunwind, that also misbuild.
Identifying these regressions in each package is laborious and adds long tail labor. If we can identify batches of misbuilds (like libunwind dependencies) we can avoid excess work and fix packages promptly. Some misbuilds will FTBFS and others will fail tests silently.
dpkg's new compiler flags offer security protections to the Ubuntu Archive and should not be reverted. I suggest that we identify regressions caused by recent dpkg sooner than later. I do not know the scale of affected packages, but this may warrant expensive archive rebuilds which are ran with and without recent dpkg changes.
[0] https:/
[1] https:/
[2] https:/
[3] https:/
[4] https:/
[5] https:/
[6] https:/
tags: | added: rls-nn-incoming |
Debian devs might be interested in https:/ /bugs.launchpad .net/ubuntu/ +source/ gcc-11/ +bug/1940029