• Bug#1099308: dpkg-dev: Use of uninitialized value $v{"DEB_HOST_MULTIARC

    From Santiago Vila@1:229/2 to All on Sun Mar 2 03:00:01 2025
    XPost: linux.debian.bugs.dist
    From: sanvila@debian.org

    Package: dpkg-dev
    Version: 1.22.15

    Hello Guillem et al.

    I was going to ask ftpmaster to remove the "hello-traditional" package,
    but decided to still make a "last release" so that it's archived in snapshot.d.o.

    To my surprise the package failed to build on hurd-i386:

    [...]
    Use of uninitialized value $v{"DEB_HOST_MULTIARCH"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_ARCH_ABI"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_ARCH_BITS"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_ARCH_CPU"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_ARCH_ENDIAN"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_ARCH_LIBC"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_ARCH_OS"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_GNU_CPU"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_GNU_SYSTEM"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_GNU_TYPE"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_MULTIARCH"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    dpkg-source --before-build .
    dpkg-buildpackage: info: host architecture hurd-i386
    invalid host_arch hurd-i386 at /usr/bin/dpkg-checkbuilddeps line 122. dpkg-buildpackage: error: build dependencies/conflicts unsatisfied; aborting

    Is this a bug in dpkg-dev?

    ( The package now has autotools-dev as its only build-dependency,
    which is clearly strange but not technically a bug )

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Guillem Jover@1:229/2 to Santiago Vila on Sun Mar 2 04:50:01 2025
    XPost: linux.debian.bugs.dist, linux.debian.ports.hurd
    From: guillem@debian.org

    Hi!

    On Sun, 2025-03-02 at 02:50:35 +0100, Santiago Vila wrote:
    Package: dpkg-dev
    Version: 1.22.15

    I was going to ask ftpmaster to remove the "hello-traditional" package,
    but decided to still make a "last release" so that it's archived in snapshot.d.o.

    To my surprise the package failed to build on hurd-i386:

    [...]
    Use of uninitialized value $v{"DEB_HOST_MULTIARCH"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_ARCH_ABI"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_ARCH_BITS"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_ARCH_CPU"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_ARCH_ENDIAN"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_ARCH_LIBC"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_ARCH_OS"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_GNU_CPU"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_GNU_SYSTEM"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_GNU_TYPE"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    Use of uninitialized value $v{"DEB_TARGET_MULTIARCH"} in concatenation (.) or string at /usr/bin/dpkg-architecture line 354.
    dpkg-source --before-build .
    dpkg-buildpackage: info: host architecture hurd-i386
    invalid host_arch hurd-i386 at /usr/bin/dpkg-checkbuilddeps line 122. dpkg-buildpackage: error: build dependencies/conflicts unsatisfied; aborting

    Is this a bug in dpkg-dev?

    That would seem a bit strange as I do not recall recent changes that
    would affect his.

    In any case, just to make sure, I was unable to reproduce this on my
    hurd-i386 VM. I even tried on an amd64 chroot to remove the
    build-essential and gcc packages (which is where the arch comes from),
    but those fail gracefully too.

    ( The package now has autotools-dev as its only build-dependency,
    which is clearly strange but not technically a bug )

    This looks like the chroot might have issues? Perhaps the prefixed
    fixchroot command in front of dpkg-buildpackage is interacting badly
    with it? (Which seems specific to the hurd-* ports).

    I'm CCing the debian-hurd list.

    Thanks,
    Guillem

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)