With dpkg 1.21.1ubuntu2.2 from jammy-updates, I did two builds:
dpkg-buildpackage -uc -us
DEB_BUILD_PROFILES=foo dpkg-buildpackage -uc -us
In both, I saw this output, as expected:
fakeroot debian/rules clean
echo $DEB_BUILD_PROFILES
noudeb
...
debian/rules build
echo $DEB_BUILD_PROFILES
noudeb
...
fakeroot debian/rules binary
echo $DEB_BUILD_PROFILES
noudeb
I then installed dpkg 1.21.1ubuntu2.3 from jammy-updates, repeated the builds, but did NOT see DEB_BUILD_PROFILES set to foo:
$ apt-cache policy dpkg
dpkg:
Installed: 1.21.1ubuntu2.3
Candidate: 1.21.1ubuntu2.3
Version table:
*** 1.21.1ubuntu2.3 500
500 http://br.archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages
100 /var/lib/dpkg/status
So I launched a jammy container, grabbed the source of base-files (a quick build package), and applied this change:
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,7 @@ VENDORFILE = ubuntu
DESTDIR = debian/base-files
%: PROFILES
+ echo $$DEB_BUILD_
dh $@
locale-check:
With dpkg 1.21.1ubuntu2.2 from jammy-updates, I did two builds:
dpkg-buildpackage -uc -us
DEB_BUILD_ PROFILES= foo dpkg-buildpackage -uc -us
In both, I saw this output, as expected:
fakeroot debian/rules clean
echo $DEB_BUILD_PROFILES
noudeb
...
debian/rules build
echo $DEB_BUILD_PROFILES
noudeb
...
fakeroot debian/rules binary
echo $DEB_BUILD_PROFILES
noudeb
I then installed dpkg 1.21.1ubuntu2.3 from jammy-updates, repeated the builds, but did NOT see DEB_BUILD_PROFILES set to foo: br.archive. ubuntu. com/ubuntu jammy-proposed/main amd64 Packages dpkg/status
$ apt-cache policy dpkg
dpkg:
Installed: 1.21.1ubuntu2.3
Candidate: 1.21.1ubuntu2.3
Version table:
*** 1.21.1ubuntu2.3 500
500 http://
100 /var/lib/
$ DEB_BUILD_ PROFILES= foo dpkg-buildpackage -uc -us 2>&1 | grep -A 1 DEB_BUILD_PROFILES
echo $DEB_BUILD_PROFILES
noudeb
--
echo $DEB_BUILD_PROFILES
noudeb
--
echo $DEB_BUILD_PROFILES
noudeb
Could someone please clarify if I did something wrong? In the meantime, this is verification-failed for jammy.