summaryrefslogtreecommitdiff
path: root/recipes-support
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2017-08-15 18:50:39 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-12-22 02:00:44 +0100
commit27509acd9cdda16099baf97b178134bdd5253382 (patch)
tree24d9200d9b87cc360bbc884f7366b13c1c4d1db8 /recipes-support
parentf18124fad8437cd480d3de1051e1610bd1aae878 (diff)
snapd: remove patch files no longer used
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'recipes-support')
-rw-r--r--recipes-support/snapd/files/0001-packaging-use-templates-for-relevant-systemd-units.patch156
-rw-r--r--recipes-support/snapd/files/0002-cmd-snap-do-not-allow-classic-snaps-on-other-distrib.patch47
-rw-r--r--recipes-support/snapd/files/0003-cmd-disable-check-for-xfs-xqm.h.patch26
-rw-r--r--recipes-support/snapd/files/0004-data-systemd-don-t-fail-to-start-if-etc-environment-.patch27
-rw-r--r--recipes-support/snapd/files/0005-cmd-add-poky-to-the-list-of-distros-which-don-t-supp.patch30
5 files changed, 0 insertions, 286 deletions
diff --git a/recipes-support/snapd/files/0001-packaging-use-templates-for-relevant-systemd-units.patch b/recipes-support/snapd/files/0001-packaging-use-templates-for-relevant-systemd-units.patch
deleted file mode 100644
index 4132f8b..0000000
--- a/recipes-support/snapd/files/0001-packaging-use-templates-for-relevant-systemd-units.patch
+++ /dev/null
@@ -1,156 +0,0 @@
-From 0ad3491ce6d26c3dc772a4397b98cb706dc53fbf Mon Sep 17 00:00:00 2001
-From: Simon Fels <simon.fels@canonical.com>
-Date: Fri, 24 Mar 2017 17:54:48 +0100
-Subject: [PATCH 1/4] packaging: use templates for relevant systemd units
-
-To make packaging across different distributionis a bit easier we
-now use templates for some of our systemd units and replace things
-which are in a different location with sed at build time.
----
- data/systemd/snapd.autoimport.service | 10 ----------
- data/systemd/snapd.autoimport.service.in | 10 ++++++++++
- data/systemd/snapd.refresh.service | 11 -----------
- data/systemd/snapd.refresh.service.in | 11 +++++++++++
- data/systemd/snapd.service | 11 -----------
- data/systemd/snapd.service.in | 11 +++++++++++
- packaging/ubuntu-16.04/rules | 11 +++++++++++
- 7 files changed, 43 insertions(+), 32 deletions(-)
- delete mode 100644 data/systemd/snapd.autoimport.service
- create mode 100644 data/systemd/snapd.autoimport.service.in
- delete mode 100644 data/systemd/snapd.refresh.service
- create mode 100644 data/systemd/snapd.refresh.service.in
- delete mode 100644 data/systemd/snapd.service
- create mode 100644 data/systemd/snapd.service.in
-
-diff --git a/data/systemd/snapd.autoimport.service b/data/systemd/snapd.autoimport.service
-deleted file mode 100644
-index 2c75f15..0000000
---- a/data/systemd/snapd.autoimport.service
-+++ /dev/null
-@@ -1,10 +0,0 @@
--[Unit]
--Description=Auto import assertions from block devices
--After=snapd.service snapd.socket
--
--[Service]
--Type=oneshot
--ExecStart=/usr/bin/snap auto-import
--
--[Install]
--WantedBy=multi-user.target
-diff --git a/data/systemd/snapd.autoimport.service.in b/data/systemd/snapd.autoimport.service.in
-new file mode 100644
-index 0000000..04b9a7e
---- /dev/null
-+++ b/data/systemd/snapd.autoimport.service.in
-@@ -0,0 +1,10 @@
-+[Unit]
-+Description=Auto import assertions from block devices
-+After=snapd.service snapd.socket
-+
-+[Service]
-+Type=oneshot
-+ExecStart=@bindir@/snap auto-import
-+
-+[Install]
-+WantedBy=multi-user.target
-diff --git a/data/systemd/snapd.refresh.service b/data/systemd/snapd.refresh.service
-deleted file mode 100644
-index 893217f..0000000
---- a/data/systemd/snapd.refresh.service
-+++ /dev/null
-@@ -1,11 +0,0 @@
--[Unit]
--Description=Automatically refresh installed snaps
--After=network-online.target snapd.socket
--Requires=snapd.socket
--ConditionPathExistsGlob=/snap/*/current
--Documentation=man:snap(1)
--
--[Service]
--Type=oneshot
--ExecStart=/usr/bin/snap refresh
--Environment=SNAP_REFRESH_FROM_EMERGENCY_TIMER=1
-diff --git a/data/systemd/snapd.refresh.service.in b/data/systemd/snapd.refresh.service.in
-new file mode 100644
-index 0000000..d5cd14b
---- /dev/null
-+++ b/data/systemd/snapd.refresh.service.in
-@@ -0,0 +1,11 @@
-+[Unit]
-+Description=Automatically refresh installed snaps
-+After=network-online.target snapd.socket
-+Requires=snapd.socket
-+ConditionPathExistsGlob=@SNAP_MOUNTDIR@/*/current
-+Documentation=man:snap(1)
-+
-+[Service]
-+Type=oneshot
-+ExecStart=@bindir@/snap refresh
-+Environment=SNAP_REFRESH_FROM_EMERGENCY_TIMER=1
-diff --git a/data/systemd/snapd.service b/data/systemd/snapd.service
-deleted file mode 100644
-index 0863225..0000000
---- a/data/systemd/snapd.service
-+++ /dev/null
-@@ -1,11 +0,0 @@
--[Unit]
--Description=Snappy daemon
--Requires=snapd.socket
--
--[Service]
--ExecStart=/usr/lib/snapd/snapd
--EnvironmentFile=/etc/environment
--Restart=always
--
--[Install]
--WantedBy=multi-user.target
-diff --git a/data/systemd/snapd.service.in b/data/systemd/snapd.service.in
-new file mode 100644
-index 0000000..009e62e
---- /dev/null
-+++ b/data/systemd/snapd.service.in
-@@ -0,0 +1,11 @@
-+[Unit]
-+Description=Snappy daemon
-+Requires=snapd.socket
-+
-+[Service]
-+ExecStart=@libexecdir@/snapd/snapd
-+EnvironmentFile=@SNAPD_ENVIRONMENT_FILE@
-+Restart=always
-+
-+[Install]
-+WantedBy=multi-user.target
-diff --git a/packaging/ubuntu-16.04/rules b/packaging/ubuntu-16.04/rules
-index a1328ac..18611b6 100755
---- a/packaging/ubuntu-16.04/rules
-+++ b/packaging/ubuntu-16.04/rules
-@@ -90,6 +90,16 @@ override_dh_auto_build:
- cd cmd && ( ./configure --prefix=/usr --libexecdir=/usr/lib/snapd $(VENDOR_ARGS))
- $(MAKE) -C cmd all
-
-+ # Generate the real systemd units out of the available templates
-+ cat data/systemd/snapd.service.in | \
-+ sed s:@libexecdir@:/usr/lib:g | \
-+ sed s:@SNAPD_ENVIRONMENT_FILE@:/etc/environment:g > data/systemd/snapd.service
-+ cat data/systemd/snapd.refresh.service.in | \
-+ sed s:@bindir@:/usr/bin:g | \
-+ sed s:@SNAP_MOUNTDIR@:/snap:g > data/systemd/snapd.refresh.service
-+ cat data/systemd/snapd.autoimport.service.in | \
-+ sed s:@bindir@:/usr/bin:g > data/systemd/snapd.autoimport.service
-+
- override_dh_auto_test:
- dh_auto_test -- $(GCCGOFLAGS)
- # a tested default (production) build should have no test keys
-@@ -164,6 +174,7 @@ override_dh_install:
- if [ -d share/locale ]; then \
- cp -R share/locale debian/snapd/usr/share; \
- fi
-+
- # install snapd's systemd units, done here instead of
- # debian/snapd.install because the ubuntu/14.04 release
- # branch adds/changes bits here
---
-2.7.4
-
diff --git a/recipes-support/snapd/files/0002-cmd-snap-do-not-allow-classic-snaps-on-other-distrib.patch b/recipes-support/snapd/files/0002-cmd-snap-do-not-allow-classic-snaps-on-other-distrib.patch
deleted file mode 100644
index b78eec0..0000000
--- a/recipes-support/snapd/files/0002-cmd-snap-do-not-allow-classic-snaps-on-other-distrib.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From 24616e1c2b8ade1700ee77dc9549ae839addebf6 Mon Sep 17 00:00:00 2001
-From: Simon Fels <simon.fels@canonical.com>
-Date: Mon, 27 Mar 2017 10:17:03 +0200
-Subject: [PATCH 2/4] cmd/snap: do not allow classic snaps on other
- distributions
-
-As of right now classic snaps are not supported on other distributions
-than Ubuntu or Debian. This is because of those not allowing us to have
-a global /snap directory, so its moved into /var/lib/snapd/snap instead.
-
-The changed /snap directory breaks classic snaps as those have static
-paths hardcoded to binaries/libraries in /snap for the sake of the
-linker to work.
----
- cmd/snap/cmd_snap_op.go | 9 +++++++++
- 1 file changed, 9 insertions(+)
-
-diff --git a/cmd/snap/cmd_snap_op.go b/cmd/snap/cmd_snap_op.go
-index 50095f4..fb86b41 100644
---- a/cmd/snap/cmd_snap_op.go
-+++ b/cmd/snap/cmd_snap_op.go
-@@ -36,6 +36,7 @@ import (
- "github.com/snapcore/snapd/i18n"
- "github.com/snapcore/snapd/osutil"
- "github.com/snapcore/snapd/progress"
-+ "github.com/snapcore/snapd/release"
- )
-
- func lastLogStr(logs []string) string {
-@@ -438,6 +439,14 @@ func (x *cmdInstall) installOne(name string, opts *client.SnapOptions) error {
- var installFromFile bool
- var changeID string
-
-+ switch release.ReleaseInfo.ID {
-+ case "fedora", "centos", "rhel", "opensuse", "suse":
-+ if opts.Classic {
-+ fmt.Fprintf(Stderr, i18n.G("snap %q can not be installed as classic snaps are not supported on your distribution\n"), name)
-+ return nil
-+ }
-+ }
-+
- cli := Client()
- if strings.Contains(name, "/") || strings.HasSuffix(name, ".snap") || strings.Contains(name, ".snap.") {
- installFromFile = true
---
-2.7.4
-
diff --git a/recipes-support/snapd/files/0003-cmd-disable-check-for-xfs-xqm.h.patch b/recipes-support/snapd/files/0003-cmd-disable-check-for-xfs-xqm.h.patch
deleted file mode 100644
index 4c667e8..0000000
--- a/recipes-support/snapd/files/0003-cmd-disable-check-for-xfs-xqm.h.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From 474abfb5460dcd4af5e651d12631b87d36c5fc66 Mon Sep 17 00:00:00 2001
-From: Simon Fels <simon.fels@canonical.com>
-Date: Mon, 27 Mar 2017 14:18:41 +0200
-Subject: [PATCH 3/4] cmd: disable check for xfs/xqm.h
-
----
- cmd/configure.ac | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/cmd/configure.ac b/cmd/configure.ac
-index 3c921ac..a6b62b3 100644
---- a/cmd/configure.ac
-+++ b/cmd/configure.ac
-@@ -19,7 +19,8 @@ AC_LANG([C])
- # Checks for header files.
- AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h sys/mount.h unistd.h])
- AC_CHECK_HEADERS([sys/quota.h], [], [AC_MSG_ERROR(sys/quota.h unavailable)])
--AC_CHECK_HEADERS([xfs/xqm.h], [], [AC_MSG_ERROR(xfs/xqm.h unavailable)])
-+# YOCTO: Disabled until we have a better way to do this check.
-+# AC_CHECK_HEADERS([xfs/xqm.h], [], [AC_MSG_ERROR(xfs/xqm.h unavailable)])
-
- # Checks for typedefs, structures, and compiler characteristics.
- AC_CHECK_HEADER_STDBOOL
---
-2.7.4
-
diff --git a/recipes-support/snapd/files/0004-data-systemd-don-t-fail-to-start-if-etc-environment-.patch b/recipes-support/snapd/files/0004-data-systemd-don-t-fail-to-start-if-etc-environment-.patch
deleted file mode 100644
index a202745..0000000
--- a/recipes-support/snapd/files/0004-data-systemd-don-t-fail-to-start-if-etc-environment-.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From d5a4787c00900a0a637507c978b3fec13edaf34b Mon Sep 17 00:00:00 2001
-From: Simon Fels <simon.fels@canonical.com>
-Date: Mon, 1 Aug 2016 12:08:13 +0200
-Subject: [PATCH 4/4] data/systemd: don't fail to start if /etc/environment
- does not exist
-
-On some systems /etc/environment is not available by default and
-should be prevent snapd from starting.
----
- data/systemd/snapd.service.in | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/data/systemd/snapd.service.in b/data/systemd/snapd.service.in
-index 009e62e..35f083d 100644
---- a/data/systemd/snapd.service.in
-+++ b/data/systemd/snapd.service.in
-@@ -4,7 +4,6 @@ Requires=snapd.socket
-
- [Service]
- ExecStart=@libexecdir@/snapd/snapd
--EnvironmentFile=@SNAPD_ENVIRONMENT_FILE@
- Restart=always
-
- [Install]
---
-2.7.4
-
diff --git a/recipes-support/snapd/files/0005-cmd-add-poky-to-the-list-of-distros-which-don-t-supp.patch b/recipes-support/snapd/files/0005-cmd-add-poky-to-the-list-of-distros-which-don-t-supp.patch
deleted file mode 100644
index 5e29cfd..0000000
--- a/recipes-support/snapd/files/0005-cmd-add-poky-to-the-list-of-distros-which-don-t-supp.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 8462eb4536d0fa1e0ed704bc205b288341b66775 Mon Sep 17 00:00:00 2001
-From: Simon Fels <simon.fels@canonical.com>
-Date: Wed, 29 Mar 2017 17:33:34 +0200
-Subject: [PATCH] cmd: add poky to the list of distros which don't support
- reexec
-
-'poky' is the std. release id for the Yocto reference distribution. This
-wont cover all Yocto based product as Yocto is a meta distribution so
-users are fine to change the release id to whatever they want. However
-this clearly takes care just about our reference Yocto system.
----
- cmd/cmd.go | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/cmd/cmd.go b/cmd/cmd.go
-index c70b6cc..c681b39 100644
---- a/cmd/cmd.go
-+++ b/cmd/cmd.go
-@@ -62,7 +62,7 @@ func ExecInCoreSnap() {
-
- // can we re-exec? some distributions will need extra work before re-exec really works.
- switch release.ReleaseInfo.ID {
-- case "fedora", "centos", "rhel", "opensuse", "suse":
-+ case "fedora", "centos", "rhel", "opensuse", "suse", "poky":
- logger.Debugf("re-exec not supported on distro %q yet", release.ReleaseInfo.ID)
- return
- }
---
-2.7.4
-