• Bug#1109972: perl: FTCBFS: cross build support files need updating for

    From Niko Tyni@21:1/5 to All on Sun Jul 27 12:40:01 2025
    Source: perl
    Version: 5.40.1-4
    Severity: normal
    Tags: patch
    User: [email protected]
    Usertags: ftcbfs

    The upstream changes for CVE-2025-40909 introduced a new Configure
    variable `d_fdopendir`. Unfortunately this broke cross builds as seen
    at http://crossqa.debian.net/src/perl because I didn't think of updating
    the bundled support files [1].

    A minimal fix is to add

    d_fdopendir='define'

    to the config.sh.static files under debian/cross/, as in the attached
    patch. Some of those files are outdated as the architectures are not
    built on the buildds anymore etc., but it seems easiest to update them
    all for this. The extra variable should not hurt in any case.

    I have tested that this fixes cross building an armhf package on amd64.

    I'll try to get this in trixie if it's not too late. The files in
    debian/cross are not used for anything during native builds, so the risk
    of regressions is very low.

    [1] Building Perl currently requires running native probes with the
    Configure script. Fixing this to support cross builds is not
    trivial. So we work around it by bundling the configuration
    information from native builds in the source package, and using
    those for cross building. While this is far from the desired goal
    of full cross build support, the approach at least keeps the rest
    of the machinery working.

    See debian/cross/README for more information.

    --
    Niko Tyni [email protected]

    From 466f731b016573f5df1f4ff5094727e3fe92d23e Mon Sep 17 00:00:00 2001
    From: Niko Tyni <[email protected]>
    Date: Sun, 27 Jul 2025 13:15:41 +0300
    Subject: [PATCH] Update cross support files for CVE-2025-40909

    ---
    debian/cross/alpha/config.sh.static | 1 +
    debian/cross/amd64/config.sh.static | 1 +
    debian/cross/arm64/config.sh.static | 1 +
    debian/cross/armel/config.sh.static | 1 +
    debian/cross/armhf/config.sh.static | 1 +
    debian/cross/hppa/config.sh.static | 1 +
    debian/cross/hurd-amd64/config.sh.static | 1 +
    debian/cross/hurd-i386/config.sh.static | 1 +
    debian/cross/i386/config.sh.static | 1 +
    debian/cross/ia64/config.sh.static | 1 +
    debian/cross/kfreebsd-amd64/config.sh.static | 1 +
    debian/cross/kfreebsd-i386/config.sh.static | 1 +
    debian/cross/loong64/config.sh.static | 1 +
    debian/cross/m68k/config.sh.static | 1 +
    debian/cross/mips/config.sh.static | 1 +
    debian/cross/mips64el/config.sh.static | 1 +
    debian/cross/mipsel/config.sh.static | 1 +
    debian/cross/powerpc/config.sh.static | 1 +
    debian/cross/powerpcspe/config.sh.static | 1 +
    debian/cros