1309 Commits

Author SHA1 Message Date
Michael Vogt
63c82c0ab1 release: 2.53 (really this time after cherry-picking d07bfcd) 2021-10-05 20:32:32 +02:00
Michael Vogt
3546f33f73 release: 2.53
Update changelogs with the 2.53 changes.
2021-10-05 19:59:28 +02:00
Michael Vogt
16085c01a6 Merge remote-tracking branch 'upstream/master' into release-2.52.1-changelog 2021-10-05 15:34:24 +02:00
Michael Vogt
cd99de5594 release: 2.52.1 (#10885)
Update changelog with the 2.52.1 changes.
2021-10-05 14:47:58 +02:00
Maciej Borzecki
f61579386b packaging/ubuntu-16.04: enable fault injection in test builds
For now this is only useful for UC20 testing.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-09-20 15:50:07 +02:00
Maciej Borzecki
94e20f0fdf data/selinux: update the policy to allow s-c to manipulate BPF map and programs
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-09-17 09:41:18 +02:00
Dimitri John Ledkov
27cb6f7197 packaging: backports of golang-go 1.13 are good enough
On some architectures, golang-go is a backport version with a tilde,
which is lower than just 2:1.13. Relax the build-dep to allow
backports of golang-go 1.13 to satisfy build-dep.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
2021-09-15 23:56:34 +01:00
Maciej Borzecki
7771e7c713 packaging/ubuntu: pass GO111MODULE to dh_auto_test
We already invoke dh_auto_build with GO111MODULE support on, pass the flag to
test too.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-09-14 12:53:53 +02:00
Maciej Borzecki
7531f82780 Merge pull request #10754 from bboozzoo/bboozzoo/build-pkgs-without-network
packaging, tests/lib/prepare-restore: build packages without network access, fix building debs with go modules
2021-09-14 08:28:09 +02:00
Maciej Borzecki
075f2fd387 packaging/deb: consistently use -mod=vendor, comment why Sid is special
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-09-13 16:48:23 +02:00
Maciej Borzecki
9ac41cc471 packaging/debian-sid: set the location of mkversion.sh output files
The Debian Sid packaging disables calling `go generate`, thus the only place
where the snapd version information is generated is mkversion.sh call in
override_dh_auto_build. However, that calls happens after dh_auto_configure
which has mirrored the source tree under $PWD/_build, so the version file gets
written to a location that is not used during the build.

Fix this by setting the environment variable for output files location pointing
to the source tree under _build.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-09-13 16:25:28 +02:00
Maciej Borzecki
2868d10ab1 packaging/debian-sid: disable modules, disable go generate
The dependencies provided by the distro have different versions than what we
list in go.mod, which would require a complete rewriting of the file with
patches. For simplicity, just disable the modules altogether. Also disable go
generate and it's causing pain with how go is invoked.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-09-09 16:25:47 +02:00
Maciej Borzecki
1432dfd7a9 packaging/deb: pass mod=vendor, set Go invoke flags, specify package
Where needed use the pacakge import path as dh-goland does not enter the main
module directory. Pass Go invocation flags such that the go generate calls will
use the right flags. Pass -mod vendor where needed.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-09-09 14:26:30 +02:00
Michael Vogt
0b24f5cb00 Merge pull request #10688 from mvo5/netplan-read-only
configcore: add read-only netplan support
2021-09-09 09:19:24 +02:00
Michael Vogt
5e5d130699 packaging: ship the snapd.apparmor.service unit in debian
The `snapd.apparmor.service` was not needed in debian because
it used a version of apparmor that would do the snapd apparmor
profile loading for us. However this support was dropped with
apparmor 3 and when it entered unstable this broke snapd.

This commit ensures it is shipped on debian too.
2021-09-07 16:32:51 +02:00
Michael Vogt
b7c88a730b Merge pull request #10745 from mvo5/unbreak-debian-sid
packaging: ship the `snapd.apparmor.service` unit in debian
2021-09-07 16:32:37 +02:00
Michael Vogt
25d375b153 Merge remote-tracking branch 'upstream/master' into netplan-read-only 2021-09-07 16:19:15 +02:00
Michael Vogt
80fa489cd5 packaging: remove duplicated golang-go build-dependency
While working on a debian-sid snapd update I noticed there is a
duplicated entry for `golang-go`.
2021-09-07 12:56:46 +02:00
Michael Vogt
9a223981ba packaging: ship the snapd.apparmor.service unit in debian
The `snapd.apparmor.service` was not needed in debian because
it used a version of apparmor that would do the snapd apparmor
profile loading for us. However this support was dropped with
apparmor 3 and when it entered unstable this broke snapd.

This commit ensures it is shipped on debian too.
2021-09-07 10:21:41 +02:00
Ian Johnson
d77e83c660 Merge branch 'release/2.52'
Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2021-09-03 23:46:02 -05:00
Ian Johnson
52aaeb3249 release: 2.52
Update changelog with the 2.52 changes.
2021-09-03 18:15:08 -05:00
Michael Vogt
28697c48d1 Merge remote-tracking branch 'upstream/master' into netplan-read-only 2021-09-02 09:56:55 +02:00
Michael Vogt
342b5a80e3 many: update/tidy-up some comments (thanks to Ian and Alberto) 2021-09-01 15:59:58 +02:00
Michael Vogt
d510b8c08d Merge remote-tracking branch 'upstream/master' into go-mod-1 2021-08-31 19:44:42 +02:00
Michael Vogt
c980bde4de Merge pull request #10524 from mvo5/fuse3
packaging: add libfuse3-dev build dependency
2021-08-31 18:12:12 +02:00