Package: dpkg
Version: 1.22.7
Severity: important
X-Debbugs-Cc: Graham Inggs <graham.in...@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)

Andreas

Reply via email to