Skip to contentSkip to conversation

cgroup-lite: support usrmerge

PATCH In review [email protected] 2 participants 6 messages Aug 30, 2019 – Sep 3, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 cgroup-lite: support usrmerge

From: Changqing Li <[email protected]>

---
 recipes-containers/cgroup-lite/cgroup-lite_1.15.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-containers/cgroup-lite/cgroup-lite_1.15.bb +3 -3
index 7b48c3a..45cc287 100644
@@ -22,9 +22,9 @@ SYSTEMD_AUTO_ENABLE_${PN} = "mask"
 
 
 do_install() {
-	install -d ${D}/bin
-	install -m 0755 ${S}/scripts/cgroups-mount ${D}/bin
-	install -m 0755 ${S}/scripts/cgroups-umount ${D}/bin
+	install -d ${D}/${base_bindir}
+	install -m 0755 ${S}/scripts/cgroups-mount ${D}/${base_bindir}
+	install -m 0755 ${S}/scripts/cgroups-umount ${D}/${base_bindir}
 
 	install -d ${D}${sysconfdir}/init.d
 	install -m 0755 ${WORKDIR}/cgroups-init ${D}${sysconfdir}/init.d/cgroups-init
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 diod: support usrmerge

From: Changqing Li <[email protected]>

---
 recipes-extended/diod/diod_1.0.24.bb               |  3 ++
 ...0001-drod-add-option-to-config-systemddir.patch | 51 ++++++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 recipes-extended/diod/files/0001-drod-add-option-to-config-systemddir.patch
recipes-extended/diod/diod_1.0.24.bb +3 -0
index bb5707e..a4a8528 100644
@@ -16,9 +16,12 @@ SRC_URI = "git://github.com/chaos/diod.git;protocol=git \
            file://0001-build-allow-builds-to-work-with-separate-build-dir.patch \
            file://0002-auto.diod.in-remove-bashisms.patch \
            file://0001-diod-ops.c-add-header-file-for-makedev.patch \
+           file://0001-drod-add-option-to-config-systemddir.patch \
           "
 DEPENDS = "libcap ncurses tcp-wrappers lua"
 
+EXTRA_OECONF = "--with-systemddir=${systemd_unitdir}/system"
+
 S = "${WORKDIR}/git"
 
 inherit autotools systemd
recipes-extended/diod/files/0001-drod-add-option-to-config-systemddir.patch new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
2.7.4
#2 lore raw

Re: [PATCH 2/2] diod: support usrmerge

Quoted 2 lines · On Fri, Aug 30, 2019 at 2:20 AM <[email protected]> wrote:

From: Changqing Li <[email protected]>

Again, this could use a long log.

Did you consider a diod upgrade ? Any estimate on how hard it would be ?

I'll merge this, but if you can reply to the question I have above, that would be great, since we'll archive why we didn't do the uprev at this point.

Bruce

Quoted 90 lines
---
 recipes-extended/diod/diod_1.0.24.bb               |  3 ++
 ...0001-drod-add-option-to-config-systemddir.patch | 51 ++++++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 recipes-extended/diod/files/0001-drod-add-option-to-config-systemddir.patch
recipes-extended/diod/diod_1.0.24.bb +3 -0
index bb5707e..a4a8528 100644
@@ -16,9 +16,12 @@ SRC_URI = "git://github.com/chaos/diod.git;protocol=git \
            file://0001-build-allow-builds-to-work-with-separate-build-dir.patch \
            file://0002-auto.diod.in-remove-bashisms.patch \
            file://0001-diod-ops.c-add-header-file-for-makedev.patch \
+           file://0001-drod-add-option-to-config-systemddir.patch \
           "
 DEPENDS = "libcap ncurses tcp-wrappers lua"
 
+EXTRA_OECONF = "--with-systemddir=${systemd_unitdir}/system"
+
 S = "${WORKDIR}/git"
 
 inherit autotools systemd
recipes-extended/diod/files/0001-drod-add-option-to-config-systemddir.patch new file +51 -1
new file mode 100644
index 0000000..8b70d8f
@@ -0,0 +1,51 @@
+From 365159534b1981dfe291ecc05d2455f32652a166 Mon Sep 17 00:00:00 2001
+From: Changqing Li <[email protected]>
+Date: Mon, 26 Aug 2019 18:00:39 +0800
+Subject: [PATCH] drod: add option to config systemddir
+
+Upstream-Status: Pending
+
+Not need to send upstream, since upstream have refactor
+related code, but not released. and this version release
+4 years ago, not proper to just backport one or more
+commits, this patch maybe could be dropped after upgrade.
+
+Signed-off-by: Changqing Li <[email protected]>
+---
+ configure.ac        | 9 +++++++++
+ scripts/Makefile.am | 2 +-
+ 2 files changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 1cb8579..3e4a5ec 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -25,6 +25,15 @@ AC_DEFINE([_GNU_SOURCE], 1,
+           [Define _GNU_SOURCE so that we get all necessary prototypes])
+
+ ##
++#Add option to config systemddir
++##
++AC_ARG_WITH([systemddir],
++  [AS_HELP_STRING([--with-systemddir=DIR], [systemd dir])],
++  [systemddir=$withval],
++  [systemddir="/lib/systemd/system"])
++AC_SUBST([systemddir], [$systemddir])
++
++##
+ # Checks for programs
+ ##
+ AC_PROG_CC
+diff --git a/scripts/Makefile.am b/scripts/Makefile.am
+index 2aba728..40822b7 100644
+--- a/scripts/Makefile.am
++++ b/scripts/Makefile.am
+@@ -1,4 +1,4 @@
+-systemddir=/lib/systemd/system
++systemddir=@systemddir@
+
+ install-data-local:
+       $(top_srcdir)/config/install-sh -m 755 ./auto.diod \
+--
+2.7.4
+
--

2.7.4

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#3 lore raw

Re: [PATCH 2/2] diod: support usrmerge

In reply to [email protected]

merged

Bruce

Quoted 92 lines · On Fri, Aug 30, 2019 at 2:20 AM <[email protected]> wrote:

From: Changqing Li <[email protected]>

---
 recipes-extended/diod/diod_1.0.24.bb               |  3 ++
 ...0001-drod-add-option-to-config-systemddir.patch | 51 ++++++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 recipes-extended/diod/files/0001-drod-add-option-to-config-systemddir.patch
recipes-extended/diod/diod_1.0.24.bb +3 -0
index bb5707e..a4a8528 100644
@@ -16,9 +16,12 @@ SRC_URI = "git://github.com/chaos/diod.git;protocol=git \
            file://0001-build-allow-builds-to-work-with-separate-build-dir.patch \
            file://0002-auto.diod.in-remove-bashisms.patch \
            file://0001-diod-ops.c-add-header-file-for-makedev.patch \
+           file://0001-drod-add-option-to-config-systemddir.patch \
           "
 DEPENDS = "libcap ncurses tcp-wrappers lua"
 
+EXTRA_OECONF = "--with-systemddir=${systemd_unitdir}/system"
+
 S = "${WORKDIR}/git"
 
 inherit autotools systemd
recipes-extended/diod/files/0001-drod-add-option-to-config-systemddir.patch new file +51 -1
new file mode 100644
index 0000000..8b70d8f
@@ -0,0 +1,51 @@
+From 365159534b1981dfe291ecc05d2455f32652a166 Mon Sep 17 00:00:00 2001
+From: Changqing Li <[email protected]>
+Date: Mon, 26 Aug 2019 18:00:39 +0800
+Subject: [PATCH] drod: add option to config systemddir
+
+Upstream-Status: Pending
+
+Not need to send upstream, since upstream have refactor
+related code, but not released. and this version release
+4 years ago, not proper to just backport one or more
+commits, this patch maybe could be dropped after upgrade.
+
+Signed-off-by: Changqing Li <[email protected]>
+---
+ configure.ac        | 9 +++++++++
+ scripts/Makefile.am | 2 +-
+ 2 files changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 1cb8579..3e4a5ec 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -25,6 +25,15 @@ AC_DEFINE([_GNU_SOURCE], 1,
+           [Define _GNU_SOURCE so that we get all necessary prototypes])
+
+ ##
++#Add option to config systemddir
++##
++AC_ARG_WITH([systemddir],
++  [AS_HELP_STRING([--with-systemddir=DIR], [systemd dir])],
++  [systemddir=$withval],
++  [systemddir="/lib/systemd/system"])
++AC_SUBST([systemddir], [$systemddir])
++
++##
+ # Checks for programs
+ ##
+ AC_PROG_CC
+diff --git a/scripts/Makefile.am b/scripts/Makefile.am
+index 2aba728..40822b7 100644
+--- a/scripts/Makefile.am
++++ b/scripts/Makefile.am
+@@ -1,4 +1,4 @@
+-systemddir=/lib/systemd/system
++systemddir=@systemddir@
+
+ install-data-local:
+       $(top_srcdir)/config/install-sh -m 755 ./auto.diod \
+--
+2.7.4
+
--

2.7.4

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#4 lore raw
In reply to [email protected]
Quoted 3 lines · On Fri, Aug 30, 2019 at 2:20 AM <[email protected]> wrote:

From: Changqing Li <[email protected]>

I'll take the patch, but in the future, we should have a long log here. I'd expect that log to point out that by using ${base_bindir} versus 'bin', we can adjust to the binary directory changes when usrmerge is enabled.

Bruce

Quoted 30 lines
---
 recipes-containers/cgroup-lite/cgroup-lite_1.15.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-containers/cgroup-lite/cgroup-lite_1.15.bb +3 -4
index 7b48c3a..45cc287 100644
@@ -22,9 +22,9 @@ SYSTEMD_AUTO_ENABLE_${PN} = "mask"
 
 
 do_install() {
-       install -d ${D}/bin
-       install -m 0755 ${S}/scripts/cgroups-mount ${D}/bin
-       install -m 0755 ${S}/scripts/cgroups-umount ${D}/bin
+       install -d ${D}/${base_bindir}
+       install -m 0755 ${S}/scripts/cgroups-mount ${D}/${base_bindir}
+       install -m 0755 ${S}/scripts/cgroups-umount ${D}/${base_bindir}
 
        install -d ${D}${sysconfdir}/init.d
        install -m 0755 ${WORKDIR}/cgroups-init ${D}${sysconfdir}/init.d/cgroups-init
--

2.7.4

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#5 lore raw
In reply to [email protected]

merged

Bruce

Quoted 33 lines · On Fri, Aug 30, 2019 at 2:20 AM <[email protected]> wrote:

From: Changqing Li <[email protected]>

---
 recipes-containers/cgroup-lite/cgroup-lite_1.15.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-containers/cgroup-lite/cgroup-lite_1.15.bb +3 -4
index 7b48c3a..45cc287 100644
@@ -22,9 +22,9 @@ SYSTEMD_AUTO_ENABLE_${PN} = "mask"
 
 
 do_install() {
-       install -d ${D}/bin
-       install -m 0755 ${S}/scripts/cgroups-mount ${D}/bin
-       install -m 0755 ${S}/scripts/cgroups-umount ${D}/bin
+       install -d ${D}/${base_bindir}
+       install -m 0755 ${S}/scripts/cgroups-mount ${D}/${base_bindir}
+       install -m 0755 ${S}/scripts/cgroups-umount ${D}/${base_bindir}
 
        install -d ${D}${sysconfdir}/init.d
        install -m 0755 ${WORKDIR}/cgroups-init ${D}${sysconfdir}/init.d/cgroups-init
--

2.7.4

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II