Package: dpkg-dev
Version: 1.22.11
Severity: minor
X-Debbugs-Cc: ni...@thykier.net

Hi,

Doing an update of `architecture-properties`, I added two substvars to be expanded the description of `cross-exe-wrapper`'s description.

Package: cross-exe-wrapper
Architecture: any
Multi-Arch: same
Depends:
 ${shlibs:Depends},
 native-architecture | native-architecture-is-amd64 [i386] | 
native-architecture-is-x32 [i386] | native-architecture-is-armhf [armel] | 
native-architecture-is-mips64el [mipsel] | native-architecture-is-ppc64 
[powerpc] | native-architecture-is-sparc64 [sparc] | qemu-user | 
qemu-user-static,
# The dependency ensures that either the architecture we use for installing is
# the native architecture or the native architecture is sibling architecture of
# the package architecture that is known to reliably run its code or a qemu is
# installed. For instance, native-architecture-is-arm64 [armhf] is missing as
# some recent arm64 CPUs no longer run 32bit code. The alternatives also ensure
# that e.g. no qemu is required for installing cross-exe-wrapper:i386 on amd64
# as we can reliably run i386 executables there without emulation.
Description: Wrapper for executing binaries from other architectures
 Provides a tool ${DEB-HOST-GNU-TYPE}-cross-exe-wrapper that can be
 used to run ${DEB-HOST-ARCH} ELF executables on the current CPU
 employing emulation technology if required.


In `debian/rules`, I have the following definition.

execute_before_dh_gencontrol:
        echo "DEB-HOST-ARCH-BITS=$(DEB_HOST_ARCH_BITS)" >> 
debian/architecture-properties.substvars
        echo "DEB-HOST-ARCH-ENDIAN=$(DEB_HOST_ARCH_ENDIAN)" >> 
debian/architecture-properties.substvars
        echo "DEB-HOST-ARCH=$(DEB_HOST_ARCH)" >> 
debian/native-architecture-is.substvars

        echo "DEB-HOST-ARCH=$(DEB_HOST_ARCH)" >> 
debian/cross-exe-wrapper.substvars
        echo "DEB-HOST-GNU-TYPE=$(DEB_HOST_GNU_TYPE)" >> 
debian/cross-exe-wrapper.substvars

When the package is built, I get the following warnings:

   dh_gencontrol
dpkg-gencontrol: warning: package cross-exe-wrapper: substitution variable 
${DEB-HOST-ARCH} unused, but is defined
dpkg-gencontrol: warning: package cross-exe-wrapper: substitution variable 
${DEB-HOST-GNU-TYPE} unused, but is defined
   dh_md5sums

But the generated .deb does seem to have used the substvar:

$ dpkg-deb -f ../cross-exe-wrapper_${VERSION}_amd64.deb Description
Wrapper for executing binaries from other architectures
 Provides a tool x86_64-linux-gnu-cross-exe-wrapper that can be
 used to run amd64 ELF executables on the current CPU
 employing emulation technology if required.


Best regards,
Niels

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to