Ah, my mistake. I installed only the new dpkg, and dpkg-dev stayed at the previous version. It doesn't upgrade together.
With dpkg-dev also updated to 1.21.1ubuntu2.3, it worked: $ DEB_BUILD_PROFILES=foo dpkg-buildpackage -uc -us 2>&1 | grep -A 1 DEB_BUILD_PROFILES echo $DEB_BUILD_PROFILES noudeb foo -- echo $DEB_BUILD_PROFILES noudeb foo -- echo $DEB_BUILD_PROFILES noudeb foo Jammy verification succeeded. ** Tags removed: verification-failed-jammy ** Tags added: verification-done-jammy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2054741 Title: dpkg-buildpackage ignores DEB_BUILD_PROFILES To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2054741/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs