• Bug#1109103: Cross-build with profiles does not set DEB_BUILD_OPTIONS=n

    From Ben Hutchings@21:1/5 to All on Fri Jul 11 15:00:01 2025
    Package: sbuild
    Version: 0.89.3
    Severity: normal

    By default, in a cross-build sbuild sets DEB_BUILD_OPTIONS=nocheck
    and DEB_BUILD_PROFILES='cross nocheck'.

    Using the --profiles option replaces rather than adding to this
    default value of DEB_BUILD_PROFILES. I don't like that but I can
    accept it as a reasonable choice.

    However, it also disables the addition to DEB_BUILD_OPTIONS. This is surprising and doesn't seem to be documented in any way. This happens
    even if 'nocheck' is included in the --profiles option argument.

    (dh seems to have a workaround that automatically adds the missing
    'nocheck' to DEB_BUILD_OPTIONS if it is found in DEB_BUILD_PROFILES.
    But packages that do not or cannot use dh, such as linux, are still
    affected by this.)

    Ben.

    -- System Information:
    Debian Release: 13.0
    APT prefers unstable-debug
    APT policy: (500, 'unstable-debug'), (500, 'unstable')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.12.32-amd64 (SMP w/12 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_WARN
    Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages sbuild depends on:
    ii adduser 3.152
    ii libsbuild-perl 0.89.3
    ii perl 5.40.1-3

    Versions of packages sbuild recommends:
    ii autopkgtest 5.49
    ii debootstrap 1.0.141
    ii iproute2 6.15.0-1
    ii mmdebstrap 1.5.7-1
    ii schroot 1.6.13-7
    ii uidmap 1:4.17.4-2

    Versions of packages sbuild suggests:
    ii e2fsprogs 1.47.2-1+b1
    ii kmod 34.2-2
    ii wget 1.25.0-2

    -- debconf-show failed

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)