Package: dpkg
Version: 1.22.7
Severity: important
X-Debbugs-Cc: Graham Inggs <graham.inggs@gmail.com>
I suspect dpkg 1.22.7 to cause a regression when building nvidia-cuda-toolkit, e.g.
https://buildd.debian.org/status/fetch.php?pkg=nvidia-cuda-toolkit&arch=amd64&ver=12.1.1-2&stamp=1721290167&raw=0
debian/rules has
DEB_BUILD_MAINT_OPTIONS = hardening=+all
DEB_CPPFLAGS_MAINT_APPEND = -I$(CURDIR)/nvidia-cuda-tree-$(DEB_HOST_ARCH)/cuda_cudart/include
DEB_LDFLAGS_MAINT_APPEND = -pthread
include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/pkg-info.mk
and the build log now contains
/bin/sh: 1: CURDIR: not found
/bin/sh: 1: DEB_HOST_ARCH: not found
(and a subsequent failure since some header could not be found)
which makes me suspect that the variables in DEB_CPPFLAGS_MAINT_APPEND
are no longer evaluated and passed on into sh context.
(If I'm not using DEB_CPPFLAGS_MAINT_APPEND correctly, please suggest
what I should do instead)
Previous implementation was preventing one expansion with $(value),
but this quotation is now counter-productive.
Three commits are attached:
2/ regression test
3/ patch
1/ an unrelated suggestion inspired by this bug
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 169:30:27 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,552 |