Zygmunt Krynicki [Tue, 28 Jan 2025 06:59:45 +0000 (06:59 +0000)]
Merge snapd (2.67-1) import into refs/heads/workingbranch
Michael Hudson-Doyle [Mon, 3 Jun 2024 16:07:56 +0000 (18:07 +0200)]
cmd: adjust manual page sections
XXX: Why?
Gbp-Pq: Name 0010-man-page-sections.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 14:42:35 +0000 (16:42 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Gbp-Pq: Name 0007-i18n-use-dummy-localizations-to-avoid-dependencies.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 15:38:41 +0000 (17:38 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Gbp-Pq: Name 0004-cmd-snap-skip-tests-depending-on-text-wrapping.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 15:21:22 +0000 (17:21 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Gbp-Pq: Name 0003-cmd-snap-seccomp-skip-tests-that-use-m32.patch
Zygmunt Krynicki [Tue, 28 Jan 2025 06:59:45 +0000 (06:59 +0000)]
snapd (2.67-1) unstable; urgency=medium
[ Ernest Lotter ]
* New upstream release, LP: #
2089691
- AppArmor prompting (experimental): allow overlapping rules
- Registry view (experimental): Changes to registry data (from both
users and snaps) can be validated and saved by custodian snaps
- Registry view (experimental): Support 'snapctl get --pristine' to
read the registry data excluding staged transaction changes
- Registry view (experimental): Put registry commands behind
experimental feature flag
- Components: Make modules shipped/created by kernel-modules
components available right after reboot
- Components: Add tab completion for local component files
- Components: Allow installing snaps and components from local files
jointly on the CLI
- Components: Allow 'snapctl model' command for gadget and kernel
snaps
- Components: Add 'snap components' command
- Components: Bug fixes
- eMMC gadget updates (WIP): add syntax support in gadget.yaml for
eMMC schema
- Support for ephemeral recovery mode on hybrid systems
- Support for dm-verity options in snap-bootstrap
- Support for overlayfs options and allow empty what argument for
tmpfs
- Enable ubuntu-image to determine the size of the disk image to
create
- Expose 'snap debug' commands 'validate-seed' and 'seeding'
- Add debug API option to use dedicated snap socket /run/snapd-
snap.socket
- Hide experimental features that are no longer required
(accepted/rejected)
- Mount ubuntu-save partition with no{exec,dev,suid} at install, run
and factory-reset
- Improve memory controller support with cgroup v2
- Support ssh socket activation configurations (used by ubuntu
22.10+)
- Fix generation of AppArmor profile with incorrect revision during
multi snap refresh
- Fix refresh app awareness related deadlock edge case
- Fix not caching delta updated snap download
- Fix passing non root uid, guid to initial tmpfs mount
- Fix ignoring snaps in try mode when amending
- Fix reloading of service activation units to avoid systemd errors
- Fix snapd snap FIPS build on Launchpad to use Advantage Pro FIPS
updates PPA
- Make killing of snap apps best effort to avoid possibility of
malicious failure loop
- Alleviate impact of auto-refresh failure loop with progressive
delay
- Dropped timedatex in selinux-policy to avoid runtime issue
- Fix missing syscalls in seccomp profile
- Modify AppArmor template to allow using SNAP_REEXEC on arch
systems
- Modify AppArmor template to allow using vim.tiny (available in
base snaps)
- Modify AppArmor template to add read-access to debian_version
- Modify AppArmor template to allow owner to read
@{PROC}/@{pid}/sessionid
- {common,personal,system}-files interface: prohibit trailing @ in
filepaths
- {desktop,shutdown,system-observe,upower-observe} interface:
improve for Ubuntu Core Desktop
- custom-device interface: allow @ in custom-device filepaths
- desktop interface: improve launch entry and systray integration
with session
- desktop-legacy interface: allow DBus access to
com.canonical.dbusmenu
- fwupd interface: allow access to nvmem for thunderbolt plugin
- mpris interface: add plasmashell as label
- mount-control interface: add support for nfs mounts
- network-{control,manager} interface: add missing dbus link rules
- network-manager-observe interface: add getDevices methods
- opengl interface: add Kernel Fusion Driver access to opengl
- screen-inhibit-control interface: improve screen inhibit control
for use on core
- udisks2 interface: allow ping of the UDisks2 service
- u2f-devices interface: add Nitrokey Passkey
[dgit import unpatched snapd 2.67-1]
Zygmunt Krynicki [Tue, 28 Jan 2025 06:59:45 +0000 (06:59 +0000)]
Import snapd_2.67.orig.tar.gz
[dgit import orig snapd_2.67.orig.tar.gz]
Zygmunt Krynicki [Tue, 28 Jan 2025 06:59:45 +0000 (06:59 +0000)]
Import snapd_2.67-1.debian.tar.xz
[dgit import tarball snapd 2.67-1 snapd_2.67-1.debian.tar.xz]
Zygmunt Krynicki [Sat, 18 Jan 2025 08:42:06 +0000 (08:42 +0000)]
Merge snapd (2.66.1-2) import into refs/heads/workingbranch
Michael Hudson-Doyle [Mon, 3 Jun 2024 16:07:56 +0000 (18:07 +0200)]
cmd: adjust manual page sections
XXX: Why?
Gbp-Pq: Name 0010-man-page-sections.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 14:42:35 +0000 (16:42 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Gbp-Pq: Name 0007-i18n-use-dummy-localizations-to-avoid-dependencies.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 15:38:41 +0000 (17:38 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Gbp-Pq: Name 0004-cmd-snap-skip-tests-depending-on-text-wrapping.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 15:21:22 +0000 (17:21 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Gbp-Pq: Name 0003-cmd-snap-seccomp-skip-tests-that-use-m32.patch
Zygmunt Krynicki [Sat, 18 Jan 2025 08:42:06 +0000 (08:42 +0000)]
snapd (2.66.1-2) unstable; urgency=medium
[ Zygmunt Krynicki ]
* Add salsa CI/CD pipeline
* Set LC_ALL=C.utf-8 for tests
* Erase special mode of /var/lib/snapd/void
* Adjust integration test to new upstream test suite behavior
* Wrap and sort control files
[ Bastian Germann ]
* Remove Steve Langasek from Uploaders
[dgit import unpatched snapd 2.66.1-2]
Zygmunt Krynicki [Sat, 18 Jan 2025 08:42:06 +0000 (08:42 +0000)]
Import snapd_2.66.1-2.debian.tar.xz
[dgit import tarball snapd 2.66.1-2 snapd_2.66.1-2.debian.tar.xz]
Zygmunt Krynicki [Thu, 28 Nov 2024 09:52:28 +0000 (10:52 +0100)]
Import snapd_2.66.1.orig.tar.gz
[dgit import orig snapd_2.66.1.orig.tar.gz]
Zygmunt Krynicki [Thu, 19 Sep 2024 12:43:40 +0000 (14:43 +0200)]
Merge snapd (2.65.3-1) import into refs/heads/workingbranch
Zygmunt Krynicki [Wed, 5 Jun 2024 08:13:14 +0000 (10:13 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0022-tests-enable-the-snapd-socket-in-autopkgtest.patch
Zygmunt Krynicki [Tue, 4 Jun 2024 09:10:02 +0000 (11:10 +0200)]
tests: create test user for autopkgtests
The smoke test suite depends on running things as the unprivilege
user "test" with the specific UID 12345.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0021-PATCH-tests-create-test-user-for-autopkgtests.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 12:33:44 +0000 (14:33 +0200)]
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
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0018-PATCH-17-18-packaging-update-to-compat-level-13.patch
Zygmunt Krynicki [Fri, 26 Jan 2024 00:11:46 +0000 (01:11 +0100)]
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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0017-PATCH-16-18-spread.yaml-add-autopkgtest-entries-for-.patch
Zygmunt Krynicki [Thu, 30 May 2024 09:45:20 +0000 (11:45 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0016-PATCH-15-18-packaging-cope-with-unset-ID-and-VERSION.patch
Zygmunt Krynicki [Fri, 26 Jan 2024 00:11:46 +0000 (01:11 +0100)]
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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0015-PATCH-14-18-packaging-do-not-hard-code-the-ubuntu-us.patch
Zygmunt Krynicki [Thu, 30 May 2024 09:43:24 +0000 (11:43 +0200)]
packaging: use "go install" to install spread
The former go get command is deprecated with current Go, and no longer works
correctly.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0014-PATCH-13-18-packaging-use-go-install-to-install-spre.patch
Zygmunt Krynicki [Thu, 30 May 2024 12:30:25 +0000 (14:30 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0013-PATCH-12-18-packaging-and-needs-internet-test-restri.patch
Zygmunt Krynicki [Fri, 26 Jan 2024 00:11:46 +0000 (01:11 +0100)]
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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0012-PATCH-11-18-packaging-spread.yaml-use-needs-sudo-to-.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 12:36:55 +0000 (14:36 +0200)]
packaging: rewrite lintian overrides
None of the old overrides applied anymore.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0011-PATCH-10-18-packaging-rewrite-lintian-overrides.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 12:35:07 +0000 (14:35 +0200)]
packaging: add source lintian overrides for EFI binaries
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0010-PATCH-09-18-packaging-add-source-lintian-overrides-f.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 09:41:32 +0000 (11:41 +0200)]
packaging: set LANG=C.utf-8 during tests
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0009-PATCH-08-18-packaging-set-LANG-C.utf-8-during-tests.patch
Michael Hudson-Doyle [Mon, 3 Jun 2024 16:07:56 +0000 (18:07 +0200)]
cmd: adjust manual page sections
XXX: Why?
Gbp-Pq: Name 0010-man-page-sections.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 14:42:35 +0000 (16:42 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Gbp-Pq: Name 0007-i18n-use-dummy-localizations-to-avoid-dependencies.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 15:38:41 +0000 (17:38 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Gbp-Pq: Name 0004-cmd-snap-skip-tests-depending-on-text-wrapping.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 15:21:22 +0000 (17:21 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Gbp-Pq: Name 0003-cmd-snap-seccomp-skip-tests-that-use-m32.patch
Zygmunt Krynicki [Thu, 19 Sep 2024 12:43:40 +0000 (14:43 +0200)]
snapd (2.65.3-1) unstable; urgency=medium
[ Ernest Lotter ]
* New upstream release, LP: #
2077473
- Fix missing aux info from store on snap setup
[dgit import unpatched snapd 2.65.3-1]
Zygmunt Krynicki [Thu, 19 Sep 2024 12:43:40 +0000 (14:43 +0200)]
Import snapd_2.65.3.orig.tar.gz
[dgit import orig snapd_2.65.3.orig.tar.gz]
Zygmunt Krynicki [Thu, 19 Sep 2024 12:43:40 +0000 (14:43 +0200)]
Import snapd_2.65.3-1.debian.tar.xz
[dgit import tarball snapd 2.65.3-1 snapd_2.65.3-1.debian.tar.xz]
Zygmunt Krynicki [Fri, 6 Sep 2024 11:27:51 +0000 (13:27 +0200)]
Merge snapd (2.65.1-1) import into refs/heads/workingbranch
Zygmunt Krynicki [Wed, 5 Jun 2024 08:13:14 +0000 (10:13 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0022-tests-enable-the-snapd-socket-in-autopkgtest.patch
Zygmunt Krynicki [Tue, 4 Jun 2024 09:10:02 +0000 (11:10 +0200)]
tests: create test user for autopkgtests
The smoke test suite depends on running things as the unprivilege
user "test" with the specific UID 12345.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0021-PATCH-tests-create-test-user-for-autopkgtests.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 12:33:44 +0000 (14:33 +0200)]
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
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0018-PATCH-17-18-packaging-update-to-compat-level-13.patch
Zygmunt Krynicki [Fri, 26 Jan 2024 00:11:46 +0000 (01:11 +0100)]
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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0017-PATCH-16-18-spread.yaml-add-autopkgtest-entries-for-.patch
Zygmunt Krynicki [Thu, 30 May 2024 09:45:20 +0000 (11:45 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0016-PATCH-15-18-packaging-cope-with-unset-ID-and-VERSION.patch
Zygmunt Krynicki [Fri, 26 Jan 2024 00:11:46 +0000 (01:11 +0100)]
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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0015-PATCH-14-18-packaging-do-not-hard-code-the-ubuntu-us.patch
Zygmunt Krynicki [Thu, 30 May 2024 09:43:24 +0000 (11:43 +0200)]
packaging: use "go install" to install spread
The former go get command is deprecated with current Go, and no longer works
correctly.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0014-PATCH-13-18-packaging-use-go-install-to-install-spre.patch
Zygmunt Krynicki [Thu, 30 May 2024 12:30:25 +0000 (14:30 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0013-PATCH-12-18-packaging-and-needs-internet-test-restri.patch
Zygmunt Krynicki [Fri, 26 Jan 2024 00:11:46 +0000 (01:11 +0100)]
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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0012-PATCH-11-18-packaging-spread.yaml-use-needs-sudo-to-.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 12:36:55 +0000 (14:36 +0200)]
packaging: rewrite lintian overrides
None of the old overrides applied anymore.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0011-PATCH-10-18-packaging-rewrite-lintian-overrides.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 12:35:07 +0000 (14:35 +0200)]
packaging: add source lintian overrides for EFI binaries
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0010-PATCH-09-18-packaging-add-source-lintian-overrides-f.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 09:41:32 +0000 (11:41 +0200)]
packaging: set LANG=C.utf-8 during tests
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0009-PATCH-08-18-packaging-set-LANG-C.utf-8-during-tests.patch
Michael Hudson-Doyle [Mon, 3 Jun 2024 16:07:56 +0000 (18:07 +0200)]
cmd: adjust manual page sections
XXX: Why?
Gbp-Pq: Name 0010-man-page-sections.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 14:42:35 +0000 (16:42 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Gbp-Pq: Name 0007-i18n-use-dummy-localizations-to-avoid-dependencies.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 15:38:41 +0000 (17:38 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Gbp-Pq: Name 0004-cmd-snap-skip-tests-depending-on-text-wrapping.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 15:21:22 +0000 (17:21 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Gbp-Pq: Name 0003-cmd-snap-seccomp-skip-tests-that-use-m32.patch
Zygmunt Krynicki [Fri, 6 Sep 2024 11:27:51 +0000 (13:27 +0200)]
snapd (2.65.1-1) unstable; urgency=medium
[ Ernest Lotter ]
* New upstream release, LP: #
2077473
- Support building snapd using base Core22 (Snapcraft 8.x)
- FIPS: support building FIPS complaint snapd variant that switches
to FIPS mode when the system boots with FIPS enabled
- AppArmor: update to latest 4.0.2 release
- AppArmor: enable using ABI 4.0 from host parser
- AppArmor: fix parser lookup
- AppArmor: support AppArmor snippet priorities
- AppArmor: allow reading cgroup memory.max file
- AppArmor: allow using snap-exec coming from the snapd snap when
starting a confined process with jailmode
- AppArmor prompting (experimental): add checks for prompting
support, include prompting status in system key, and restart snapd
if prompting flag changes
- AppArmor prompting (experimental): include prompt prefix in
AppArmor rules if prompting is supported and enabled
- AppArmor prompting (experimental): add common types, constraints,
and mappings from AppArmor permissions to abstract permissions
- AppArmor prompting (experimental): add path pattern parsing and
matching
- AppArmor prompting (experimental): add path pattern precedence
based on specificity
- AppArmor prompting (experimental): add packages to manage
outstanding request prompts and rules
- AppArmor prompting (experimental): add prompting API and notice
types, which require snap-interfaces-requests-control interface
- AppArmor prompting (experimental): feature flag can only be
enabled if prompting is supported, handler service connected, and
the service can be started
- Registry views (experimental): rename from aspects to registries
- Registry views (experimental): support reading registry views and
setting/unsetting registry data using snapctl
- Registry views (experimental): fetch and refresh registry
assertions as needed
- Registry views (experimental): restrict view paths from using a
number as first character and view names to storage path style
patterns
- Snap components: support installing snaps and components from
files at the same time (no REST API/CLI)
- Snap components: support downloading components related assertions
from the store
- Snap components: support installing components from the store
- Snap components: support removing components individually and
during snap removal
- Snap components: support kernel modules as components
- Snap components: support for component install, pre-refresh and
post-refresh hooks
- Snap components: initial support for building systems that contain
components
- Refresh app awareness (experimental): add data field for
/v2/changes REST API to allow associating each task with affected
snaps
- Refresh app awareness (experimental): use the app name from
.desktop file in notifications
- Refresh app awareness (experimental): give snap-refresh-observe
interface access to /v2/snaps/{name} endpoint
- Improve snap-confine compatibility with nvidia drivers
- Allow re-exec when SNAP_REEXEC is set for unlisted distros to
simplify testing
- Allow mixing revision and channel on snap install
- Generate GNU build ID for Go binaries
- Add missing etelpmoc.sh for shell completion
- Do not attempt to run snapd on classic when re-exec is disabled
- Packaging/build maintenance for Debian sid, Fedora, Arch, openSuse
- Add snap debug API command to enable running raw queries
- Enable snap-confine snap mount directory detection
- Replace global seccomp filter with deny rules in standard seccomp
template
- Remove support for Ubuntu Core Launcher (superseded by snap-
confine)
- Support creating pending serial bound users after serial assertion
becomes available
- Support disabling cloud-init using kernel command-line
- In hybrid systems, apps can refresh without waiting for restarts
required by essential snaps
- Ship snap-debug-info.sh script used for system diagnostics
- Improve error messages when attempting to run non-existent snap
- Switch to -u UID:GID for strace-static
- Support enabling snapd logging with snap set system
debug.snapd.{log,log-level}
- Add options system.coredump.enable and system.coredump.maxuse to
support using systemd-coredump on Ubuntu Core
- Provide documentation URL for 'snap interface '
- Fix snapd riscv64 build
- Fix restarting activated services instead of their activator units
(i.e. sockets, timers)
- Fix potential unexpected auto-refresh of snap on managed schedule
- Fix potential segfault by guarding against kernel command-line
changes on classic system
- Fix proxy entries in /etc/environment with missing newline that
caused later manual entries to not be usable
- Fix offline remodelling by ignoring prerequisites that will
otherwise be downloaded from store
- Fix devmode seccomp deny regression that caused spamming the log
instead of actual denies
- Fix snap lock leak during refresh
- Fix not re-pinning validation sets that were already pinned when
enforcing new validation sets
- Fix handling of unexpected snapd runtime failure
- Fix /v2/notices REST API skipping notices with duplicate
timestamps
- Fix comparing systemd versions that may contain pre-release
suffixes
- Fix udev potentially starting before snap-device-helper is made
available
- Fix race in snap seed metadata loading
- Fix treating cloud-init exit status 2 as error
- Fix to prevent sending refresh complete notification if snap snap-
refresh-observe interface is connected
- Fix to queue snapctl service commands if run from the default-
configure hook to ensure they get up-to-date config values
- Fix stop service failure when the service is not actually running
anymore
- Fix parsing /proc/PID/mounts with spaces
- Add registry interface that provides snaps access to a particular
registry view
- Add snap-interfaces-requests-control interface to enable prompting
client snaps
- steam-support interface: remove all AppArmor and seccomp
restrictions to improve user experience
- opengl interface: improve compatibility with nvidia drivers
- home interface: autoconnect home on Ubuntu Core Desktop
- serial-port interface: support RPMsg tty
- display-control interface: allow changing LVDS backlight power and
brightness
- power-control interface: support for battery charging thesholds,
type/status and AC type/status
- cpu-control interface: allow CPU C-state control
- raw-usb interface: support RPi5 and Thinkpad x13s
- custom-device interface: allow device file locking
- lxd-support interface: allow LXD to self-manage its own cgroup
- network-manager interface: support MPTCP sockets
- network-control interface: allow plug/slot access to gnutls config
and systemd resolved cache flushing via D-Bus
- network-control interface: allow wpa_supplicant dbus api
- gpio-control interface: support gpiochip* devices
- polkit interface: fix "rw" mount option check
- u2f-devices interface: enable additional security keys
- desktop interface: enable kde theming support
[dgit import unpatched snapd 2.65.1-1]
Zygmunt Krynicki [Fri, 6 Sep 2024 11:27:51 +0000 (13:27 +0200)]
Import snapd_2.65.1.orig.tar.gz
[dgit import orig snapd_2.65.1.orig.tar.gz]
Zygmunt Krynicki [Fri, 6 Sep 2024 11:27:51 +0000 (13:27 +0200)]
Import snapd_2.65.1-1.debian.tar.xz
[dgit import tarball snapd 2.65.1-1 snapd_2.65.1-1.debian.tar.xz]
Zygmunt Krynicki [Fri, 19 Jul 2024 05:15:23 +0000 (07:15 +0200)]
Merge snapd (2.63-4) import into refs/heads/workingbranch
Zygmunt Krynicki [Wed, 5 Jun 2024 08:13:14 +0000 (10:13 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0022-tests-enable-the-snapd-socket-in-autopkgtest.patch
Zygmunt Krynicki [Tue, 4 Jun 2024 09:10:02 +0000 (11:10 +0200)]
[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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0021-PATCH-tests-create-test-user-for-autopkgtests.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 12:33:44 +0000 (14:33 +0200)]
[PATCH 17/18] 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
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0018-PATCH-17-18-packaging-update-to-compat-level-13.patch
Zygmunt Krynicki [Fri, 26 Jan 2024 00:11:46 +0000 (01:11 +0100)]
[PATCH 16/18] 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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0017-PATCH-16-18-spread.yaml-add-autopkgtest-entries-for-.patch
Zygmunt Krynicki [Thu, 30 May 2024 09:45:20 +0000 (11:45 +0200)]
[PATCH 15/18] 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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0016-PATCH-15-18-packaging-cope-with-unset-ID-and-VERSION.patch
Zygmunt Krynicki [Fri, 26 Jan 2024 00:11:46 +0000 (01:11 +0100)]
[PATCH 14/18] 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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0015-PATCH-14-18-packaging-do-not-hard-code-the-ubuntu-us.patch
Zygmunt Krynicki [Thu, 30 May 2024 09:43:24 +0000 (11:43 +0200)]
[PATCH 13/18] packaging: use "go install" to install spread
The former go get command is deprecated with current Go, and no longer works
correctly.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0014-PATCH-13-18-packaging-use-go-install-to-install-spre.patch
Zygmunt Krynicki [Thu, 30 May 2024 12:30:25 +0000 (14:30 +0200)]
[PATCH 12/18] 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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0013-PATCH-12-18-packaging-and-needs-internet-test-restri.patch
Zygmunt Krynicki [Fri, 26 Jan 2024 00:11:46 +0000 (01:11 +0100)]
[PATCH 11/18] 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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0012-PATCH-11-18-packaging-spread.yaml-use-needs-sudo-to-.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 12:36:55 +0000 (14:36 +0200)]
[PATCH 10/18] packaging: rewrite lintian overrides
None of the old overrides applied anymore.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0011-PATCH-10-18-packaging-rewrite-lintian-overrides.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 12:35:07 +0000 (14:35 +0200)]
[PATCH 09/18] packaging: add source lintian overrides for EFI binaries
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0010-PATCH-09-18-packaging-add-source-lintian-overrides-f.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 09:41:32 +0000 (11:41 +0200)]
[PATCH 08/18] packaging: set LANG=C.utf-8 during tests
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0009-PATCH-08-18-packaging-set-LANG-C.utf-8-during-tests.patch
Zygmunt Krynicki [Mon, 27 May 2024 14:30:13 +0000 (16:30 +0200)]
[PATCH 06/18] tests: explicitly remove the mount point
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0008-PATCH-06-18-tests-explicitly-remove-the-mount-point.patch
Zygmunt Krynicki [Mon, 27 May 2024 14:29:49 +0000 (16:29 +0200)]
[PATCH 05/18] tests: use consistent syntax to call snapctl
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0007-PATCH-05-18-tests-use-consistent-syntax-to-call-snap.patch
Zygmunt Krynicki [Mon, 27 May 2024 14:27:51 +0000 (16:27 +0200)]
[PATCH 04/18] tests: use snapctl umount rather than umount
Snapctl creates systemd mount units that may be activated again, so plain
umount is insufficient to correctly undo all the changes.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0006-PATCH-04-18-tests-use-snapctl-umount-rather-than-umo.patch
Zygmunt Bazyli Krynicki [Fri, 24 May 2024 11:48:46 +0000 (13:48 +0200)]
[PATCH 03/18] Merge pull request from GHSA-p9v8-q5m4-pf46
* o/hookstate: recognize "--" in snapctl argument parser
When parsing snapctl argument vector recognize the "--" as an option
terminator, so that dash-options are not recognized afterwards.
Fixes: https://bugs.launchpad.net/snapd/+bug/2065077
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
* tests: add regression test for lp-
2065077
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
---------
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0005-PATCH-03-18-Merge-pull-request-from-GHSA-p9v8-q5m4-p.patch
Michael Hudson-Doyle [Mon, 3 Jun 2024 16:07:56 +0000 (18:07 +0200)]
man-page-sections
Gbp-Pq: Name 0010-man-page-sections.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 14:42:35 +0000 (16:42 +0200)]
[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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Gbp-Pq: Name 0007-i18n-use-dummy-localizations-to-avoid-dependencies.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 15:38:41 +0000 (17:38 +0200)]
[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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Gbp-Pq: Name 0004-cmd-snap-skip-tests-depending-on-text-wrapping.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 15:21:22 +0000 (17:21 +0200)]
[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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Gbp-Pq: Name 0003-cmd-snap-seccomp-skip-tests-that-use-m32.patch
Zygmunt Krynicki [Fri, 19 Jul 2024 05:15:23 +0000 (07:15 +0200)]
snapd (2.63-4) unstable; urgency=medium
* debian: fix lxc/fuse woes
* debian: remove smoke test intended for containers, closes: #
1076490
[dgit import unpatched snapd 2.63-4]
Zygmunt Krynicki [Fri, 19 Jul 2024 05:15:23 +0000 (07:15 +0200)]
Import snapd_2.63-4.debian.tar.xz
[dgit import tarball snapd 2.63-4 snapd_2.63-4.debian.tar.xz]
Zygmunt Krynicki [Mon, 17 Jun 2024 14:21:30 +0000 (16:21 +0200)]
Merge snapd (2.63-3) import into refs/heads/workingbranch
Zygmunt Krynicki [Wed, 5 Jun 2024 08:13:14 +0000 (10:13 +0200)]
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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0022-tests-enable-the-snapd-socket-in-autopkgtest.patch
Zygmunt Krynicki [Tue, 4 Jun 2024 09:10:02 +0000 (11:10 +0200)]
[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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0021-PATCH-tests-create-test-user-for-autopkgtests.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 12:33:44 +0000 (14:33 +0200)]
[PATCH 17/18] 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
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0018-PATCH-17-18-packaging-update-to-compat-level-13.patch
Zygmunt Krynicki [Fri, 26 Jan 2024 00:11:46 +0000 (01:11 +0100)]
[PATCH 16/18] 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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0017-PATCH-16-18-spread.yaml-add-autopkgtest-entries-for-.patch
Zygmunt Krynicki [Thu, 30 May 2024 09:45:20 +0000 (11:45 +0200)]
[PATCH 15/18] 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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0016-PATCH-15-18-packaging-cope-with-unset-ID-and-VERSION.patch
Zygmunt Krynicki [Fri, 26 Jan 2024 00:11:46 +0000 (01:11 +0100)]
[PATCH 14/18] 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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0015-PATCH-14-18-packaging-do-not-hard-code-the-ubuntu-us.patch
Zygmunt Krynicki [Thu, 30 May 2024 09:43:24 +0000 (11:43 +0200)]
[PATCH 13/18] packaging: use "go install" to install spread
The former go get command is deprecated with current Go, and no longer works
correctly.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0014-PATCH-13-18-packaging-use-go-install-to-install-spre.patch
Zygmunt Krynicki [Thu, 30 May 2024 12:30:25 +0000 (14:30 +0200)]
[PATCH 12/18] 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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0013-PATCH-12-18-packaging-and-needs-internet-test-restri.patch
Zygmunt Krynicki [Fri, 26 Jan 2024 00:11:46 +0000 (01:11 +0100)]
[PATCH 11/18] 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.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0012-PATCH-11-18-packaging-spread.yaml-use-needs-sudo-to-.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 12:36:55 +0000 (14:36 +0200)]
[PATCH 10/18] packaging: rewrite lintian overrides
None of the old overrides applied anymore.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0011-PATCH-10-18-packaging-rewrite-lintian-overrides.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 12:35:07 +0000 (14:35 +0200)]
[PATCH 09/18] packaging: add source lintian overrides for EFI binaries
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0010-PATCH-09-18-packaging-add-source-lintian-overrides-f.patch
Zygmunt Krynicki [Mon, 3 Jun 2024 09:41:32 +0000 (11:41 +0200)]
[PATCH 08/18] packaging: set LANG=C.utf-8 during tests
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0009-PATCH-08-18-packaging-set-LANG-C.utf-8-during-tests.patch
Zygmunt Krynicki [Mon, 27 May 2024 14:30:13 +0000 (16:30 +0200)]
[PATCH 06/18] tests: explicitly remove the mount point
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0008-PATCH-06-18-tests-explicitly-remove-the-mount-point.patch
Zygmunt Krynicki [Mon, 27 May 2024 14:29:49 +0000 (16:29 +0200)]
[PATCH 05/18] tests: use consistent syntax to call snapctl
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0007-PATCH-05-18-tests-use-consistent-syntax-to-call-snap.patch
Zygmunt Krynicki [Mon, 27 May 2024 14:27:51 +0000 (16:27 +0200)]
[PATCH 04/18] tests: use snapctl umount rather than umount
Snapctl creates systemd mount units that may be activated again, so plain
umount is insufficient to correctly undo all the changes.
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0006-PATCH-04-18-tests-use-snapctl-umount-rather-than-umo.patch
Zygmunt Bazyli Krynicki [Fri, 24 May 2024 11:48:46 +0000 (13:48 +0200)]
[PATCH 03/18] Merge pull request from GHSA-p9v8-q5m4-pf46
* o/hookstate: recognize "--" in snapctl argument parser
When parsing snapctl argument vector recognize the "--" as an option
terminator, so that dash-options are not recognized afterwards.
Fixes: https://bugs.launchpad.net/snapd/+bug/2065077
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
* tests: add regression test for lp-
2065077
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
---------
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0005-PATCH-03-18-Merge-pull-request-from-GHSA-p9v8-q5m4-p.patch
Michael Hudson-Doyle [Mon, 3 Jun 2024 16:07:56 +0000 (18:07 +0200)]
man-page-sections
Gbp-Pq: Name 0010-man-page-sections.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 14:42:35 +0000 (16:42 +0200)]
[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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Gbp-Pq: Name 0007-i18n-use-dummy-localizations-to-avoid-dependencies.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 15:38:41 +0000 (17:38 +0200)]
[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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Gbp-Pq: Name 0004-cmd-snap-skip-tests-depending-on-text-wrapping.patch
Zygmunt Krynicki [Thu, 17 Jan 2019 15:21:22 +0000 (17:21 +0200)]
[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.
Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Gbp-Pq: Name 0003-cmd-snap-seccomp-skip-tests-that-use-m32.patch