All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] containerd: Replace /lib/systemd/system with ${systemd_system_unitdir}
@ 2017-02-08 13:46 Amarnath Valluri
  2017-02-08 13:46 ` [PATCH 2/4] docker: Replace /usr/share with ${datadir} Amarnath Valluri
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Amarnath Valluri @ 2017-02-08 13:46 UTC (permalink / raw)
  To: meta-virtualization

Make use of bitbake variable where appropriate, this makes the recipe portable.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
---
 recipes-containers/containerd/containerd_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-containers/containerd/containerd_git.bb b/recipes-containers/containerd/containerd_git.bb
index ca99e55..77c3e93 100644
--- a/recipes-containers/containerd/containerd_git.bb
+++ b/recipes-containers/containerd/containerd_git.bb
@@ -83,6 +83,6 @@ do_install() {
 	fi
 }
 
-FILES_${PN} += "/lib/systemd/system/*"
+FILES_${PN} += "${systemd_system_unitdir}/*"
 
 INHIBIT_PACKAGE_STRIP = "1"
-- 
2.7.4



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

* [PATCH 2/4] docker: Replace /usr/share with ${datadir}
  2017-02-08 13:46 [PATCH 1/4] containerd: Replace /lib/systemd/system with ${systemd_system_unitdir} Amarnath Valluri
@ 2017-02-08 13:46 ` Amarnath Valluri
  2017-02-08 13:46 ` [PATCH 3/4] lxc: Make use of bitbake variables where appropriate Amarnath Valluri
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Amarnath Valluri @ 2017-02-08 13:46 UTC (permalink / raw)
  To: meta-virtualization

Make use of bitbake variable where appropriate, this makes the recipe portable.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
---
 recipes-containers/docker/docker_git.bb | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/recipes-containers/docker/docker_git.bb b/recipes-containers/docker/docker_git.bb
index 62a016a..c22b916 100644
--- a/recipes-containers/docker/docker_git.bb
+++ b/recipes-containers/docker/docker_git.bb
@@ -142,18 +142,18 @@ do_install() {
 		install -m 0755 ${WORKDIR}/docker.init ${D}${sysconfdir}/init.d/docker.init
 	fi
 
-	mkdir -p ${D}/usr/share/docker/
-	cp ${WORKDIR}/hi.Dockerfile ${D}/usr/share/docker/
-	install -m 0755 ${S}/contrib/check-config.sh ${D}/usr/share/docker/
+	mkdir -p ${D}${datadir}/docker/
+	cp ${WORKDIR}/hi.Dockerfile ${D}${datadir}/docker/
+	install -m 0755 ${S}/contrib/check-config.sh ${D}${datadir}/docker/
 }
 
 inherit useradd
 USERADD_PACKAGES = "${PN}"
 GROUPADD_PARAM_${PN} = "-r docker"
 
-FILES_${PN} += "/lib/systemd/system/*"
+FILES_${PN} += "${systemd_unitdir}/system/*"
 
-FILES_${PN}-contrib += "/usr/share/docker/check-config.sh"
+FILES_${PN}-contrib += "${datadir}/docker/check-config.sh"
 RDEPENDS_${PN}-contrib += "bash"
 
 # DO NOT STRIP docker
-- 
2.7.4



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

* [PATCH 3/4] lxc: Make use of bitbake variables where appropriate.
  2017-02-08 13:46 [PATCH 1/4] containerd: Replace /lib/systemd/system with ${systemd_system_unitdir} Amarnath Valluri
  2017-02-08 13:46 ` [PATCH 2/4] docker: Replace /usr/share with ${datadir} Amarnath Valluri
@ 2017-02-08 13:46 ` Amarnath Valluri
  2017-02-08 13:46 ` [PATCH 4/4] libvirt: Replace systemd units location to match with bitbake environment Amarnath Valluri
  2017-02-09 14:16 ` [PATCH 1/4] containerd: Replace /lib/systemd/system with ${systemd_system_unitdir} Bruce Ashfield
  3 siblings, 0 replies; 8+ messages in thread
From: Amarnath Valluri @ 2017-02-08 13:46 UTC (permalink / raw)
  To: meta-virtualization

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
---
 recipes-containers/lxc/lxc_2.0.0.bb | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/recipes-containers/lxc/lxc_2.0.0.bb b/recipes-containers/lxc/lxc_2.0.0.bb
index dcbd171..2e6b967 100644
--- a/recipes-containers/lxc/lxc_2.0.0.bb
+++ b/recipes-containers/lxc/lxc_2.0.0.bb
@@ -92,10 +92,9 @@ RDEPENDS_${PN}-templates += "bash"
 
 ALLOW_EMPTY_${PN}-networking = "1"
 
-FILES_${PN}-setup += "/etc/tmpfiles.d"
-FILES_${PN}-setup += "/lib/systemd/system"
-FILES_${PN}-setup += "/usr/lib/systemd/system"
-FILES_${PN}-setup += "/etc/init.d"
+FILES_${PN}-setup += "${sysconfdir}/tmpfiles.d"
+FILES_${PN}-setup += "${systemd_system_unitdir}"
+FILES_${PN}-setup += "${sysconfdir}/init.d"
 
 PRIVATE_LIBS_${PN}-ptest = "liblxc.so.1"
 
-- 
2.7.4



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

* [PATCH 4/4] libvirt: Replace systemd units location to match with bitbake environment.
  2017-02-08 13:46 [PATCH 1/4] containerd: Replace /lib/systemd/system with ${systemd_system_unitdir} Amarnath Valluri
  2017-02-08 13:46 ` [PATCH 2/4] docker: Replace /usr/share with ${datadir} Amarnath Valluri
  2017-02-08 13:46 ` [PATCH 3/4] lxc: Make use of bitbake variables where appropriate Amarnath Valluri
@ 2017-02-08 13:46 ` Amarnath Valluri
  2017-02-08 14:15   ` Mark Asselstine
  2017-02-09 14:16 ` [PATCH 1/4] containerd: Replace /lib/systemd/system with ${systemd_system_unitdir} Bruce Ashfield
  3 siblings, 1 reply; 8+ messages in thread
From: Amarnath Valluri @ 2017-02-08 13:46 UTC (permalink / raw)
  To: meta-virtualization

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
---
 recipes-extended/libvirt/libvirt_1.3.5.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/recipes-extended/libvirt/libvirt_1.3.5.bb b/recipes-extended/libvirt/libvirt_1.3.5.bb
index c848c99..206f59f 100644
--- a/recipes-extended/libvirt/libvirt_1.3.5.bb
+++ b/recipes-extended/libvirt/libvirt_1.3.5.bb
@@ -213,6 +213,12 @@ PACKAGECONFIG[wireshark] = "--with-wireshark-dissector,--without-wireshark-disse
 # Enable the Python tool support
 require libvirt-python.inc
 
+do_configure_prepend() {
+	systemd_system_unitdir="${@d.getVar('systemd_system_unitdir')}"
+	sed -i -e "s;^SYSTEMD_UNIT_DIR =.*;SYSTEMD_UNIT_DIR = $systemd_system_unitdir;" \
+	     ${S}/daemon/Makefile.am ${S}/src/Makefile.am ${S}/tools/Makefile.am
+}
+
 do_install_append() {
 	install -d ${D}/etc/init.d
 	install -d ${D}/etc/libvirt
-- 
2.7.4



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

* Re: [PATCH 4/4] libvirt: Replace systemd units location to match with bitbake environment.
  2017-02-08 13:46 ` [PATCH 4/4] libvirt: Replace systemd units location to match with bitbake environment Amarnath Valluri
@ 2017-02-08 14:15   ` Mark Asselstine
  2017-02-08 14:37     ` avalluri
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Asselstine @ 2017-02-08 14:15 UTC (permalink / raw)
  To: Amarnath Valluri; +Cc: meta-virtualization

On Wed, Feb 8, 2017 at 8:46 AM, Amarnath Valluri
<amarnath.valluri@intel.com> wrote:
> Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
> ---
>  recipes-extended/libvirt/libvirt_1.3.5.bb | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/recipes-extended/libvirt/libvirt_1.3.5.bb b/recipes-extended/libvirt/libvirt_1.3.5.bb
> index c848c99..206f59f 100644
> --- a/recipes-extended/libvirt/libvirt_1.3.5.bb
> +++ b/recipes-extended/libvirt/libvirt_1.3.5.bb
> @@ -213,6 +213,12 @@ PACKAGECONFIG[wireshark] = "--with-wireshark-dissector,--without-wireshark-disse
>  # Enable the Python tool support
>  require libvirt-python.inc
>
> +do_configure_prepend() {
> +       systemd_system_unitdir="${@d.getVar('systemd_system_unitdir')}"
> +       sed -i -e "s;^SYSTEMD_UNIT_DIR =.*;SYSTEMD_UNIT_DIR = $systemd_system_unitdir;" \
> +            ${S}/daemon/Makefile.am ${S}/src/Makefile.am ${S}/tools/Makefile.am

The others patches look fine but for this one is there no way to pass
the value to make? I almost prefer to have this taken care of via a
patch to the source instead of sed expressions here.

Mark

> +}
> +
>  do_install_append() {
>         install -d ${D}/etc/init.d
>         install -d ${D}/etc/libvirt
> --
> 2.7.4
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization


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

* Re: [PATCH 4/4] libvirt: Replace systemd units location to match with bitbake environment.
  2017-02-08 14:15   ` Mark Asselstine
@ 2017-02-08 14:37     ` avalluri
  2017-02-08 14:38       ` Mark Asselstine
  0 siblings, 1 reply; 8+ messages in thread
From: avalluri @ 2017-02-08 14:37 UTC (permalink / raw)
  To: mark.asselstine; +Cc: meta-virtualization

[-- Attachment #1: Type: text/plain, Size: 1417 bytes --]



On 08.02.2017 16:15, Mark Asselstine wrote:
> On Wed, Feb 8, 2017 at 8:46 AM, Amarnath Valluri
> <amarnath.valluri@intel.com>  wrote:
>> Signed-off-by: Amarnath Valluri<amarnath.valluri@intel.com>
>> ---
>>   recipes-extended/libvirt/libvirt_1.3.5.bb | 6 ++++++
>>   1 file changed, 6 insertions(+)
>>
>> diff --git a/recipes-extended/libvirt/libvirt_1.3.5.bb b/recipes-extended/libvirt/libvirt_1.3.5.bb
>> index c848c99..206f59f 100644
>> --- a/recipes-extended/libvirt/libvirt_1.3.5.bb
>> +++ b/recipes-extended/libvirt/libvirt_1.3.5.bb
>> @@ -213,6 +213,12 @@ PACKAGECONFIG[wireshark] = "--with-wireshark-dissector,--without-wireshark-disse
>>   # Enable the Python tool support
>>   require libvirt-python.inc
>>
>> +do_configure_prepend() {
>> +       systemd_system_unitdir="${@d.getVar('systemd_system_unitdir')}"
>> +       sed -i -e "s;^SYSTEMD_UNIT_DIR =.*;SYSTEMD_UNIT_DIR = $systemd_system_unitdir;" \
>> +            ${S}/daemon/Makefile.am ${S}/src/Makefile.am ${S}/tools/Makefile.am
> The others patches look fine but for this one is there no way to pass
> the value to make? I almost prefer to have this taken care of via a
> patch to the source instead of sed expressions here.
Its value is hard coded in Makefile.am, one thing we can do is to patch 
the configure.ac to make systemd unit dir configurable from outside. I 
can send the V2 with this change.

-Amarnath

[-- Attachment #2: Type: text/html, Size: 2266 bytes --]

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

* Re: [PATCH 4/4] libvirt: Replace systemd units location to match with bitbake environment.
  2017-02-08 14:37     ` avalluri
@ 2017-02-08 14:38       ` Mark Asselstine
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Asselstine @ 2017-02-08 14:38 UTC (permalink / raw)
  To: avalluri; +Cc: meta-virtualization

On Wed, Feb 8, 2017 at 9:37 AM, avalluri <amarnath.valluri@intel.com> wrote:
>
>
> On 08.02.2017 16:15, Mark Asselstine wrote:
>
> On Wed, Feb 8, 2017 at 8:46 AM, Amarnath Valluri
> <amarnath.valluri@intel.com> wrote:
>
> Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
> ---
>  recipes-extended/libvirt/libvirt_1.3.5.bb | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/recipes-extended/libvirt/libvirt_1.3.5.bb
> b/recipes-extended/libvirt/libvirt_1.3.5.bb
> index c848c99..206f59f 100644
> --- a/recipes-extended/libvirt/libvirt_1.3.5.bb
> +++ b/recipes-extended/libvirt/libvirt_1.3.5.bb
> @@ -213,6 +213,12 @@ PACKAGECONFIG[wireshark] =
> "--with-wireshark-dissector,--without-wireshark-disse
>  # Enable the Python tool support
>  require libvirt-python.inc
>
> +do_configure_prepend() {
> +       systemd_system_unitdir="${@d.getVar('systemd_system_unitdir')}"
> +       sed -i -e "s;^SYSTEMD_UNIT_DIR =.*;SYSTEMD_UNIT_DIR =
> $systemd_system_unitdir;" \
> +            ${S}/daemon/Makefile.am ${S}/src/Makefile.am
> ${S}/tools/Makefile.am
>
> The others patches look fine but for this one is there no way to pass
> the value to make? I almost prefer to have this taken care of via a
> patch to the source instead of sed expressions here.
>
> Its value is hard coded in Makefile.am, one thing we can do is to patch the
> configure.ac to make systemd unit dir configurable from outside. I can send
> the V2 with this change.

I prefer that approach. Looking forward to the v2.

Mark

>
> -Amarnath
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>


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

* Re: [PATCH 1/4] containerd: Replace /lib/systemd/system with ${systemd_system_unitdir}
  2017-02-08 13:46 [PATCH 1/4] containerd: Replace /lib/systemd/system with ${systemd_system_unitdir} Amarnath Valluri
                   ` (2 preceding siblings ...)
  2017-02-08 13:46 ` [PATCH 4/4] libvirt: Replace systemd units location to match with bitbake environment Amarnath Valluri
@ 2017-02-09 14:16 ` Bruce Ashfield
  3 siblings, 0 replies; 8+ messages in thread
From: Bruce Ashfield @ 2017-02-09 14:16 UTC (permalink / raw)
  To: Amarnath Valluri; +Cc: meta-virtualization

[-- Attachment #1: Type: text/plain, Size: 1185 bytes --]

All 4 patches in this series are now merged.

Bruce

On Wed, Feb 8, 2017 at 8:46 AM, Amarnath Valluri <amarnath.valluri@intel.com
> wrote:

> Make use of bitbake variable where appropriate, this makes the recipe
> portable.
>
> Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
> ---
>  recipes-containers/containerd/containerd_git.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/recipes-containers/containerd/containerd_git.bb
> b/recipes-containers/containerd/containerd_git.bb
> index ca99e55..77c3e93 100644
> --- a/recipes-containers/containerd/containerd_git.bb
> +++ b/recipes-containers/containerd/containerd_git.bb
> @@ -83,6 +83,6 @@ do_install() {
>         fi
>  }
>
> -FILES_${PN} += "/lib/systemd/system/*"
> +FILES_${PN} += "${systemd_system_unitdir}/*"
>
>  INHIBIT_PACKAGE_STRIP = "1"
> --
> 2.7.4
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"

[-- Attachment #2: Type: text/html, Size: 2361 bytes --]

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

end of thread, other threads:[~2017-02-09 14:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-08 13:46 [PATCH 1/4] containerd: Replace /lib/systemd/system with ${systemd_system_unitdir} Amarnath Valluri
2017-02-08 13:46 ` [PATCH 2/4] docker: Replace /usr/share with ${datadir} Amarnath Valluri
2017-02-08 13:46 ` [PATCH 3/4] lxc: Make use of bitbake variables where appropriate Amarnath Valluri
2017-02-08 13:46 ` [PATCH 4/4] libvirt: Replace systemd units location to match with bitbake environment Amarnath Valluri
2017-02-08 14:15   ` Mark Asselstine
2017-02-08 14:37     ` avalluri
2017-02-08 14:38       ` Mark Asselstine
2017-02-09 14:16 ` [PATCH 1/4] containerd: Replace /lib/systemd/system with ${systemd_system_unitdir} 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.