• Bug#1107130: snapd: stop using gcc-multilib

    From Helmut Grohne@21:1/5 to All on Sun Jun 1 22:30:01 2025
    Source: snapd
    Version: 2.68.3-2
    Tags: patch
    User: debian-cross@lists.debian.org
    Usertags: cross-satisfiability

    We want to remove the gcc-multilib package. snapd happens to use it for
    testing 32bit seccomp functionality on amd64. An alternative to using
    -m32 is to use real cross toolchains. These are more generic than
    multilib. I'm attaching a patch that converts snapd to use targeted
    cross toolchains for the snap-seccomp test. As a result, it no longer
    needs to be skipped. Since the gcc-multilib dependency also is a problem
    to cross building, the change improves that aspect as well. Please
    consider applying the patch in the forky cycle.

    Helmut

    diff --minimal -Nru snapd-2.68.3/debian/changelog snapd-2.68.3/debian/changelog --- snapd-2.68.3/debian/changelog 2025-03-25 13:33:00.000000000 +0100
    +++ snapd-2.68.3/debian/changelog 2025-06-01 21:54:11.000000000 +0200
    @@ -1,3 +1,10 @@
    +snapd (2.68.3-2.1) UNRELEASED; urgency=medium
    +
    + * Non-maintainer upload.
    + * Stop using gcc-multilib and fix snap-seccomp test. (Closes: #-1)
    +
    + -- Helmut Grohne <helmut@subdivi.de> Sun, 01 Jun 2025 21:54:11 +0200
    +
    snapd (2.68.3-2) unstable; urgency=medium

    * switch to pkgconf
    diff --minimal -Nru snapd-2.68.3/debian/control snapd-2.68.3/debian/control
    --- snapd-2.68.3/debian/control 2025-03-25 13:33:00.000000000 +0100
    +++ snapd-2.68.3/debian/control 2025-06-01 21:54:11.000000000 +0200
    @@ -16,7 +16,8 @@
    ca-certificates,
    dbus,
    fakeroot,
    - gcc-multilib [amd64],
    + gcc-i686-linux-gnu [amd64] <!nocheck>,
    + libc6-dev-i386-cross [amd64] <!nocheck>,
    gettext,
    gnupg2,
    golang-dbus-dev,
    diff --m