• Bug#1099749: bookworm-pu: package iptables-netflow/2.6-4+deb12u1

    From Andreas Beckmann@21:1/5 to All on Fri Mar 7 15:30:02 2025
    XPost: linux.debian.devel.release

    This is a multi-part MIME message sent by reportbug.


    Package: release.debian.org
    Severity: normal
    Tags: bookworm
    User: release.debian.org@packages.debian.org
    Usertags: pu
    X-Debbugs-Cc: iptables-netflow@packages.debian.org
    Control: affects -1 + src:iptables-netflow

    [ Reason ]
    An update to src:linux in bullseye backported a change that breaks a few third-party modules (due to unexporting find_module()).
    This is not a problem in bookworm itself (the -dkms module works fine
    for the bookworm kernel as the find_module() usage is guarded by
    preprocessor conditionals), but on upgrades from bullseye to bookworm
    because linux-headers-* from both bullseye and bookworm will be
    installed.
    Also building the kernel module is very slow if there are other -dkms
    packages installed because there is a useless dkms recursion in the
    configure script.

    [ Impact ]
    Failed distupgrades that need manual fixing.

    [ Tests ]
    Local autopkgtest run in bookworm.
    Manual installation in a bookworm chroot with these headers installed:
    linux-headers-5.10.0-34-amd64
    linux-headers-6.1.0-0.deb11.31-amd64
    linux-headers-6.1.0-29-amd64

    [ Risks ]
    Low.

    [ Checklist ]
    [*] *all* changes are documented in the d/changelog
    [*] I reviewed all changes and I approve them
    [*] attach debdiff against the package in (old)stable
    [*] the issue is verified as fixed in unstable

    [ Changes ]
    * Improve dkms debugging output in make.log
    * Don't check for or call dkms (recursively) if the configure script
    has been called by 'dkms build', as that slows down the configure
    script significantly.
    * Update the LINUX_VERSION_CODE constraint for find_module() usage to
    take into account versions that got the unexport change backported.

    [ Other info ]
    As the window for the next point release will close soon, I'm going to
    directly upload the changes.


    Andreas

    diff --git a/debian/changelog b/debian/changelog
    index dc892b1..3e1cd08 100644
    --- a/debian/changelog
    +++ b/debian/changelog
    @@ -1,3 +1,13 @@
    +iptables-netflow (2.6-4+deb12u1) bookworm; urgency=medium
    +
    + * Non-maintainer upload.
    + * Dump the generated compat_def.h.
    + * Avoid dkms recursion.
    + * Unexporting find_module() has been backported to Linux v5.10.220.
    + (Closes: #1076456, #1088678)
    +
    + -- Andreas Beckmann <anbe@debian.org> Fri, 07 Mar 2025 14:48:52 +0100
    +
    iptables-netflow (2.6-4) unstable; urgency=medium

    * Acknowledge NMU. Thanks Andreas!
    diff --git a/debian/gbp.conf b/debian/gbp.conf
    index cec628c..b7202c9 100644
    --- a/debian/gbp.conf
    +++ b/debian/gbp.conf
    @@ -1,2 +1,3 @@
    [DEFAULT]
    +debian-branch = bookworm
    pristine-tar = True
    diff --git a/debian/patches/1005-Do-not-check-for-dkms-if-called-from-dkms.patch b/debian/patches/1005-Do-not-check-for-dkms-if-called-from-dkms.patch
    new file mode 100644
    index 0000000..1a9ac64
    --- /dev/null
    +++ b/debian/patches/1005-Do-not-check-for-dkms-if-called-from-dkms.patch
    @@ -0,0 +1,28 @@
    +From f158
  • From Adam D Barratt@21:1/5 to All on Sat Mar 8 17:20:03 2025
    XPost: linux.debian.devel.release

    package release.debian.org
    tags 1099749 = bookworm pending
    thanks

    Hi,

    The upload referenced by this bug report has been flagged for acceptance into the proposed-updates queue for Debian bookworm.

    Thanks for your contribution!

    Upload details
    ==============

    Package: iptables-netflow
    Version: 2.6-4+deb12u1

    Explanation: fix build with newer bullseye kernels

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