All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-virtualization][PATCH V2 1/9] docker-distribution: fix the inehrit and systemd settings
@ 2022-06-12  8:00 Chen Qi
  2022-06-12  8:00 ` [meta-virtualization][PATCH V2 2/9] docker-distribution: fix build error on new hosts Chen Qi
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Chen Qi @ 2022-06-12  8:00 UTC (permalink / raw)
  To: meta-virtualization

In order for systemd variables such as SYSTEMD_AUTO_ENABLE to have
effect, we need to inherit the systemd class. We also need to specify
the package which contains the service.

As go.bbclass already inherits goarch.bbclass, we only need to inehrit
go.bbclass.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 .../docker-distribution/docker-distribution_git.bb            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-containers/docker-distribution/docker-distribution_git.bb b/recipes-containers/docker-distribution/docker-distribution_git.bb
index 0dbdc49..395694a 100644
--- a/recipes-containers/docker-distribution/docker-distribution_git.bb
+++ b/recipes-containers/docker-distribution/docker-distribution_git.bb
@@ -16,8 +16,7 @@ S = "${WORKDIR}/git/src/github.com/docker/distribution"
 
 GO_IMPORT = "import"
 
-inherit goarch
-inherit go
+inherit goarch go systemd
 
 # This disables seccomp and apparmor, which are on by default in the
 # go package. 
@@ -66,6 +65,7 @@ FILES:docker-registry += "${systemd_unitdir}/system/docker-registry.service"
 FILES:docker-registry += "${sysconfdir}/docker-distribution/*"
 FILES:docker-registry += "${localstatedir}/lib/registry/"
 
+SYSTEMD_PACKAGES = "docker-registry"
 SYSTEMD_SERVICE:docker-registry = "${@bb.utils.contains('DISTRO_FEATURES','systemd','docker-registry.service','',d)}"
 SYSTEMD_AUTO_ENABLE:docker-registry = "enable"
 
-- 
2.36.0



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-06-14 19:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-12  8:00 [meta-virtualization][PATCH V2 1/9] docker-distribution: fix the inehrit and systemd settings Chen Qi
2022-06-12  8:00 ` [meta-virtualization][PATCH V2 2/9] docker-distribution: fix build error on new hosts Chen Qi
2022-06-12  8:00 ` [meta-virtualization][PATCH V2 3/9] docker-distribution: upgrade to 2.8.1 Chen Qi
2022-06-12  8:00 ` [meta-virtualization][PATCH V2 4/9] skopeo: clean up depends and fix CGO settings Chen Qi
2022-06-12  8:00 ` [meta-virtualization][PATCH V2 5/9] umoci: adjust CGO_CFLAGS and CGO_LDFLAGS settings Chen Qi
2022-06-12  8:00 ` [meta-virtualization][PATCH V2 6/9] oci-runtime-tools: adjust GOROOT, CGO_CFLAGS and CGO_LDFALGS Chen Qi
2022-06-12  8:00 ` [meta-virtualization][PATCH V2 7/9] riddler: " Chen Qi
2022-06-12  8:00 ` [meta-virtualization][PATCH V2 8/9] oci-image-tools: " Chen Qi
2022-06-12  8:00 ` [meta-virtualization][PATCH V2 9/9] netns: " Chen Qi
2022-06-14 19:50 ` [meta-virtualization][PATCH V2 1/9] docker-distribution: fix the inehrit and systemd settings Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.