dpkg-buildpackage ignores DEB_BUILD_PROFILES
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Mantic |
Fix Released
|
Undecided
|
Unassigned | ||
Noble |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
DEB_BUILD_PROFILES= can be used in Debian to specify a build profile to use with dpkg-buildpackage. We want to use it in the systemd project to build the upstream packages for the Ubuntu autopkgtest cloud CI on Github. But in the Ubuntu's fork of dpkg, DEB_BUILD_
[Fix]
Backport patch from Noble that fixes the issue: https:/
and takes into account if the environment variable is set when reading the profile
[Test]
To reproduce it, simply print the content of DEB_BUILD_PROFILES in d/rules in any package and build with DEB_BUILD_
[Regression Potential]
dpkg-buildpackage is used to build all packages, so in case of unforeseen issues other packages could potentially fail to build. A unit test exercising this change is included in the patch to minimize potential for regressions.
Related branches
- Gianfranco Costamagna (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 46 lines (+17/-1)2 files modifiedscripts/Dpkg/BuildProfiles.pm (+5/-0)
scripts/t/Dpkg_BuildProfiles.t (+12/-1)
- Gianfranco Costamagna (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 44 lines (+17/-1)2 files modifiedscripts/Dpkg/BuildProfiles.pm (+5/-0)
scripts/t/Dpkg_BuildProfiles.t (+12/-1)
- Gianfranco Costamagna (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 15 lines (+2/-2)1 file modifiedscripts/Dpkg/BuildProfiles.pm (+2/-2)
Changed in dpkg (Ubuntu Noble): | |
status: | Confirmed → Fix Committed |
Changed in dpkg (Ubuntu Mantic): | |
status: | Confirmed → In Progress |
Changed in dpkg (Ubuntu Jammy): | |
status: | Confirmed → In Progress |
description: | updated |
MR ready for review https:/ /code.launchpad .net/~bluca/ ubuntu/ +source/ dpkg/+git/ dpkg/+merge/ 461078