• Bug#1107971: Uninitialized variable warning with Rules-Requires-Root de

    From Fabian =?iso-8859-1?q?Gr=FCnbichler@1:229/2 to All on Wed Jun 18 09:40:01 2025
    XPost: linux.debian.bugs.dist
    From: f.gruenbichler@proxmox.com

    Package: libdpkg-perl
    Version: 1.22.20
    Severity: minor
    X-Debbugs-Cc: f.gruenbichler@proxmox.com

    Hi!

    Building a packge using

    Rules-Requires-Root: debhelper/upstream-make-install

    using sbuild will print a warning about $keywords_base being
    uninitialized:

    Use of uninitialized value $keywords_base in numeric gt (>) at /usr/share/perl5/Dpkg/BuildDriver/DebianRules.pm line 171.

    Initializing it with 0 or adding a defined check should get rid of this cosmetic issue. It seems only a single package in the archive is using
    this syntax (hurd) ;)

    Sample build log of "hello" with R3 adapted attached (I didn't bother to
    add fakeroot to its B-D, in which case the build would not abort after
    the warning but continue fine, this is just a simple reproducer!).

    -- System Information:
    Debian Release: 13.0
    APT prefers testing-security
    APT policy: (500, 'testing-security'), (500, 'unstable'), (500, 'testing'), (1, 'experimental')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.12.32-amd64 (SMP w/4 CPU threads; PREEMPT)
    Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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 libdpkg-perl depends on:
    ii dpkg 1.22.20
    ii perl 5.40.1-3

    Versions of packages libdpkg-perl recommends:
    ii bzip2 1.0.8-6
    ii libfile-fcntllock-perl 0.22-4+b4
    ii liblocale-gettext-perl 1.07-7+b1
    ii xz-utils 5.8.1-1

    Versions of packages libdpkg-perl suggests:
    ii binutils 2.44-3
    pn bzr <none>
    ii clang-19 [c-compiler] 1:19.1.7-3+b1
    pn debian-keyring <none>
    pn debian-tag2upload-keyring <none>
    ii gcc [c-compiler] 4:14.2.0-1
    ii gcc-14 [c-compiler] 14.2.0-19
    ii git 1:2.49.0-2
    ii gnupg 2.4.7-21
    ii gpgv 2.4.7-21
    ii patch 2.8-1
    ii sensible-utils 0.0.25
    ii sq 1.3.1-2+b1
    ii sqv 1.3.0-3

    -- no debconf information

    [SoupGate killed MIME-encoded file 00000000.ATT (29304 bytes)]

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