Debian Patches

Status for snapd/2.57.6-1

Patch Description Author Forwarded Bugs Origin Last update
0002-cmd-snap-seccomp-skip-tests-that-fail-on-4.19.patch [PATCH 2/9] cmd/snap-seccomp: skip tests that fail on 4.19
It seems that the Debian 4.19.0-1 kernel contains a regression in
seccomp execution. While this issue is investigated in parallel along
with the security team, the release of updated snapd package should not
be held by this issue.
Zygmunt Krynicki <me@zygoon.pl> no 2019-01-17
0003-cmd-snap-seccomp-skip-tests-that-use-m32.patch [PATCH 3/9] 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 [PATCH 4/9] 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
0005-advisor-errtracker-use-upstream-bolt-package.patch [PATCH 5/9] advisor,errtracker: use upstream bolt package
Upstream snapd uses a fork of the bolt package that carries additional
patches for bugs that were discovered by snapd developers. Bolt itself
appears to be an abandoned project and is not accepting any new patches.

In various distributions the upstream bolt package may or may not have
been patched but the forked version was definitely not packaged. As
such, to build snapd in Debian the upstream bolt package name must be
used.
Zygmunt Krynicki <me@zygoon.pl> no 2019-01-17
0007-i18n-use-dummy-localizations-to-avoid-dependencies.patch [PATCH 7/9] 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 no
0011-Fix-test-with-godbus-5.0.5.patch Fix test with godbus 5.0.5
Due to https://github.com/godbus/dbus/pull/265, godbus only sends
auth name.
Shengjing Zhu <zhsj@debian.org> no 2022-07-17
0015-fix-build-5bd97b39a03.patch commit 5bd97b39a0321f279f521ee6c8c043778cb3d7d8

tests: fix sbuild test on debian sid (#12043)

* Fix sbuild test on debian sid

The test was failing because of 2 problems:
1. not enough space in the disk to run the test
2. it was failing to find package "github.com/canonical/go-tpm2" in the
file
src/github.com/snapcore/snapd/tests/nested/manual/core20-da-lockout/getdalockout.go

The solution for the second point is to add the dummy file so debian
does not pick it up when building

* tests: rename getdalockout_dummy.go->getdalockout_nosecboot.go

Co-authored-by: Michael Vogt <mvo@ubuntu.com>

diff --git a/spread.yaml b/spread.yaml
index bba703dc14..7eeb1f008b 100644
Sergio Cazzolato <sergio.cazzolato@canonical.com> no 2022-08-23
0016-skip-TestPopulateFromSeedWithConnectHook.patch diff --git a/overlord/devicestate/firstboot_test.go b/overlord/devicestate/firstboot_test.go
index 47ac7a7a90..19b505673b 100644
no

All known versions for source package 'snapd'

Links