Debian Patches

Status for snapd/2.65.3-1

Patch Description Author Forwarded Bugs Origin Last update
0003-cmd-snap-seccomp-skip-tests-that-use-m32.patch cmd/snap-seccomp: skip tests that use -m32
Apparently Debian's amd64 compiler somehow cannot compile -m32 mode
binaries. The compilation error is:

multipass@debian-10:~/packaging/snapd/cmd/snap-seccomp$ go test
cannot build multi-lib syscall runner: exit status 1
In file included from /usr/include/errno.h:25,
from /tmp/check-3806730340354206876/1/seccomp_syscall_runner.c:3:
/usr/include/features.h:424:12: fatal error: sys/cdefs.h: No such file or directory
# include <sys/cdefs.h>
^~~~~~~~~~~~~
compilation terminated.
OK: 2 passed, 11 skipped

I was unable to resolve this issue, let's disable this test until we can get to
the bottom of it.
Zygmunt Krynicki <me@zygoon.pl> no 2019-01-17
0004-cmd-snap-skip-tests-depending-on-text-wrapping.patch cmd/snap: skip tests depending on text wrapping
Upstream snapd contains tests that check the output of various commands
along with the --help command-line argument. The output is wrapped to
match terminal width and for readability. The algorithm for wrapping
has apparently changed across versions of github.com/jessevdk/go-flags.

Since this test is not critical for anything it can be disabled to let
the package build.
Zygmunt Krynicki <me@zygoon.pl> no 2019-01-17
0007-i18n-use-dummy-localizations-to-avoid-dependencies.patch i18n: use dummy localizations to avoid dependencies
Upstream snapd uses the github.com/ojii/gettext.go package for access to
translation catalogs. This package is currently not available in Debian
and prevents building the package. As such, replace the real
implementation with a simple dummy one that always uses the English
input strings.
Zygmunt Krynicki <me@zygoon.pl> no 2019-01-17
0010-man-page-sections.patch cmd: adjust manual page sections Michael Hudson-Doyle <mwhudson@debian.org> no 2024-06-03
0009-PATCH-08-18-packaging-set-LANG-C.utf-8-during-tests.patch packaging: set LANG=C.utf-8 during tests Zygmunt Krynicki <zygmunt.krynicki@canonical.com> no 2024-06-03
0010-PATCH-09-18-packaging-add-source-lintian-overrides-f.patch packaging: add source lintian overrides for EFI binaries Zygmunt Krynicki <zygmunt.krynicki@canonical.com> no 2024-06-03
0011-PATCH-10-18-packaging-rewrite-lintian-overrides.patch packaging: rewrite lintian overrides
None of the old overrides applied anymore.
Zygmunt Krynicki <zygmunt.krynicki@canonical.com> no 2024-06-03
0012-PATCH-11-18-packaging-spread.yaml-use-needs-sudo-to-.patch packaging,spread.yaml: use needs-sudo to setup sudo
Sudo access is managed by the "needs-sudo" flag. We can drop our custom logic
and associated manipulation. This also ensures the testbed is correctly
selected, and incompatible systems are rejected.
Zygmunt Krynicki <zygmunt.krynicki@canonical.com> no 2024-01-26
0013-PATCH-12-18-packaging-and-needs-internet-test-restri.patch packaging: and needs-internet test restriction
Internet is required to pull Go dependencies to build and install spread, as
well as to download snap packages from the store.
Zygmunt Krynicki <zygmunt.krynicki@canonical.com> no 2024-05-30
0014-PATCH-13-18-packaging-use-go-install-to-install-spre.patch packaging: use "go install" to install spread
The former go get command is deprecated with current Go, and no longer works
correctly.
Zygmunt Krynicki <zygmunt.krynicki@canonical.com> no 2024-05-30
0015-PATCH-14-18-packaging-do-not-hard-code-the-ubuntu-us.patch packaging: do not hard-code the "ubuntu" username/password
Spread needs to login to an account with a non-empty password. Set the password
of the autopkgtest user account to the same value as the account name.
Zygmunt Krynicki <zygmunt.krynicki@canonical.com> no 2024-01-26
0016-PATCH-15-18-packaging-cope-with-unset-ID-and-VERSION.patch packaging: cope with unset ID and VERSION_ID
There is no guarantee that ID and VERSION_ID are set in /etc/os-release.
Provide defaults for ID and VERSION_ID so that spread runs with _some_ system
name. Spread rejects system names with two consecutive dashes, so use a
special-case for unset VERSION_ID since we know it is used in a context of the
Debian archive.
Zygmunt Krynicki <zygmunt.krynicki@canonical.com> no 2024-05-30
0017-PATCH-16-18-spread.yaml-add-autopkgtest-entries-for-.patch spread.yaml: add autopkgtest entries for Debian
Add entries for Debian unstable "sid" to allow running the integration test
suite while traversing migrations in the Debian archive.
Zygmunt Krynicki <zygmunt.krynicki@canonical.com> no 2024-01-26
0018-PATCH-17-18-packaging-update-to-compat-level-13.patch packaging: update to compat level 13
Update for compatibility level 9 to 13 [1].

- remove --fail-missing from dh
- remove --with=systemd from dh
- drop autoreconf dependencies (obsolete since level 10)

[1] https://manpages.debian.org/testing/debhelper/debhelper-compat-upgrade-checklist.7.en.html#v13
Zygmunt Krynicki <zygmunt.krynicki@canonical.com> no 2024-06-03
0021-PATCH-tests-create-test-user-for-autopkgtests.patch tests: create test user for autopkgtests
The smoke test suite depends on running things as the unprivilege
user "test" with the specific UID 12345.
Zygmunt Krynicki <zygmunt.krynicki@canonical.com> no 2024-06-04
0022-tests-enable-the-snapd-socket-in-autopkgtest.patch tests: enable the snapd socket in autopkgtest
For reasons I don't quite understand, and cannot reproduce when running
autopkgtest locally, when the system is tested on the Debian infrastructure
snapd ends up installed but not enabled.

Enable the socket to at least have a chance to run something.
Zygmunt Krynicki <zygmunt.krynicki@canonical.com> no 2024-06-05

All known versions for source package 'snapd'

Links