Skip to contentSkip to conversation

keyutils: add new recipe for version 1.6.

PATCH In review Yongxin Liu 2 participants 6 messages Jul 8, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 keyutils: add new recipe for version 1.6.

---
 meta-oe/recipes-security/keyutils/keyutils_1.6.bb | 38 +++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 meta-oe/recipes-security/keyutils/keyutils_1.6.bb
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +38 -0
new file mode 100644
index 000000000..3a26c902a
@@ -0,0 +1,38 @@
+SUMMARY = "Linux Key Management Utilities"
+DESCRIPTION = "These tools are used to control the key management system built into the Linux."
+
+SECTION = "base"
+
+LICENSE = "LGPLv2.1+ & GPLv2.0+"
+LIC_FILES_CHKSUM = "file://LICENCE.GPL;md5=5f6e72824f5da505c1f4a7197f004b45 \
+                    file://LICENCE.LGPL;md5=7d1cacaa3ea752b72ea5e525df54a21f"
+
+PV = "1.6+git${SRCPV}"
+
+SRC_URI = "\
+    git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git \
+"
+
+SRCREV = "4723f0185d11b13df243ad3cd41fbddfed53b5b1"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = "'CFLAGS=${CFLAGS} -Wall'"
+
+INSTALL_FLAGS = "\
+    LIBDIR=${libdir} \
+    USRLIBDIR=${libdir} \
+    BINDIR=${bindir} \
+    SBINDIR=${sbindir} \
+    ETCDIR=${sysconfdir} \
+    SHAREDIR=${datadir} \
+    MANDIR=${mandir} \
+    INCLUDEDIR=${includedir} \
+    DESTDIR=${D} \
+"
+
+do_install() {
+    cd ${S} && oe_runmake ${INSTALL_FLAGS} install
+}
+
+FILES_${PN} += "${datadir}/request-key-debug.sh"
Signature · 1 line
2.14.4
#1 lore raw

PATCH v2 2/2 ndctl: v63 -> v65

Add keyutils to DEPENDS.
Set FILES to package /usr/share/daxctl/daxctl.conf.

---
 meta-oe/recipes-core/ndctl/{ndctl_v63.bb => ndctl_v65.bb} | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
 rename meta-oe/recipes-core/ndctl/{ndctl_v63.bb => ndctl_v65.bb} (88%)
meta-oe/recipes-core/ndctl/ndctl_v65.bb renamed from meta-oe/recipes-core/ndctl/ndctl_v63.bb +4 -2
similarity index 88%
rename from meta-oe/recipes-core/ndctl/ndctl_v63.bb
rename to meta-oe/recipes-core/ndctl/ndctl_v65.bb
index 2f299b1ba..69ee1d476 100644
@@ -10,10 +10,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e66651809cac5da60c8b80e9e4e79e08"
 
 inherit autotools-brokensep pkgconfig bash-completion systemd
 
-SRCREV = "cb2d678dd6d286dd96d31548c32449a8b883ae32"
+SRCREV = "ed17fd14608d8de072c8c090ffc5fcf78c4f48ff"
 SRC_URI = "git://github.com/pmem/ndctl.git"
 
-DEPENDS = "kmod udev json-c"
+DEPENDS = "kmod udev json-c keyutils"
 
 S = "${WORKDIR}/git"
 
@@ -28,3 +28,5 @@ do_configure_prepend() {
 
 SYSTEMD_SERVICE_${PN} = "ndctl-monitor.service"
 SYSTEMD_AUTO_ENABLE_${PN} = "disable"
+
+FILES_${PN} += "${datadir}/daxctl/daxctl.conf"
Signature · 1 line
2.14.4
#2 lore raw
In reply to Yongxin Liu

meta-oe/recipes-security/keyutils/keyutils_1.6.bb

Quoted 11 lines · Yongxin Liu
---
 meta-oe/recipes-security/keyutils/keyutils_1.6.bb | 38 +++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 meta-oe/recipes-security/keyutils/keyutils_1.6.bb
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +0 -0
new file mode 100644
index 000000000..3a26c902a

This recipe is in meta-security and contains ptests. Did you want the ptests and other fixes too?

- armin

Quoted 39 lines
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +38 -0
@@ -0,0 +1,38 @@
+SUMMARY = "Linux Key Management Utilities"
+DESCRIPTION = "These tools are used to control the key management system built into the Linux."
+
+SECTION = "base"
+
+LICENSE = "LGPLv2.1+ & GPLv2.0+"
+LIC_FILES_CHKSUM = "file://LICENCE.GPL;md5=5f6e72824f5da505c1f4a7197f004b45 \
+                    file://LICENCE.LGPL;md5=7d1cacaa3ea752b72ea5e525df54a21f"
+
+PV = "1.6+git${SRCPV}"
+
+SRC_URI = "\
+    git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git \
+"
+
+SRCREV = "4723f0185d11b13df243ad3cd41fbddfed53b5b1"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = "'CFLAGS=${CFLAGS} -Wall'"
+
+INSTALL_FLAGS = "\
+    LIBDIR=${libdir} \
+    USRLIBDIR=${libdir} \
+    BINDIR=${bindir} \
+    SBINDIR=${sbindir} \
+    ETCDIR=${sysconfdir} \
+    SHAREDIR=${datadir} \
+    MANDIR=${mandir} \
+    INCLUDEDIR=${includedir} \
+    DESTDIR=${D} \
+"
+
+do_install() {
+    cd ${S} && oe_runmake ${INSTALL_FLAGS} install
+}
+
+FILES_${PN} += "${datadir}/request-key-debug.sh"
#3 lore raw
Quoted 18 lines

-----Original Message-----
From: akuster808 [mailto:[email protected]]
Sent: Monday, July 8, 2019 09:59
To: Liu, Yongxin; [email protected]; openembedded- [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 1/2] keyutils: add new recipe for version 1.6.

Quoted 3 lines · Yongxin Liu
---
 meta-oe/recipes-security/keyutils/keyutils_1.6.bb | 38

+++++++++++++++++++++++

Quoted 3 lines
 1 file changed, 38 insertions(+)
 create mode 100644 meta-oe/recipes-security/keyutils/keyutils_1.6.bb
Quoted 8 lines

meta-

Quoted 1 line
meta- renamed from meta-oe/recipes-security/keyutils/keyutils_1.6.bb +0 -0

oe/recipes-security/keyutils/keyutils_1.6.bb

meta-oe/recipes-security/keyutils/keyutils_1.6.bb

Quoted 4 lines

new file mode 100644
index 000000000..3a26c902a

meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +0 -0

This recipe is in meta-security and contains ptests. Did you want the ptests and other fixes too?

This recipe is intended to be used by other recipes in OE. For other layers, I think they can use their own keyutils.

Thanks,
Yongxin

Quoted 44 lines

- armin

meta-oe/recipes-security/keyutils/keyutils_1.6.bb line 2

Quoted 3 lines
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +2 -0
@@ -0,0 +1,38 @@
+SUMMARY = "Linux Key Management Utilities"
+DESCRIPTION = "These tools are used to control the key management

system built into the Linux."

meta-oe/recipes-security/keyutils/keyutils_1.6.bb

Quoted 5 lines
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +5 -0
+
+SECTION = "base"
+
+LICENSE = "LGPLv2.1+ & GPLv2.0+"
+LIC_FILES_CHKSUM =

"file://LICENCE.GPL;md5=5f6e72824f5da505c1f4a7197f004b45 \

meta-oe/recipes-security/keyutils/keyutils_1.6.bb line 8

Quoted 1 line
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +1 -0
+

file://LICENCE.LGPL;md5=7d1cacaa3ea752b72ea5e525df54a21f"

meta-oe/recipes-security/keyutils/keyutils_1.6.bb line 15

Quoted 5 lines
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +5 -0
+
+PV = "1.6+git${SRCPV}"
+
+SRC_URI = "\
+

git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git \

Quoted 25 lines
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +25 -0
+"
+
+SRCREV = "4723f0185d11b13df243ad3cd41fbddfed53b5b1"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = "'CFLAGS=${CFLAGS} -Wall'"
+
+INSTALL_FLAGS = "\
+    LIBDIR=${libdir} \
+    USRLIBDIR=${libdir} \
+    BINDIR=${bindir} \
+    SBINDIR=${sbindir} \
+    ETCDIR=${sysconfdir} \
+    SHAREDIR=${datadir} \
+    MANDIR=${mandir} \
+    INCLUDEDIR=${includedir} \
+    DESTDIR=${D} \
+"
+
+do_install() {
+    cd ${S} && oe_runmake ${INSTALL_FLAGS} install
+}
+
+FILES_${PN} += "${datadir}/request-key-debug.sh"
#4 lore raw
Quoted 20 lines · Yongxin
Quoted 20 lines

-----Original Message-----
From: akuster808 [mailto:[email protected]]
Sent: Monday, July 8, 2019 09:59
To: Liu, Yongxin; [email protected]; openembedded- [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 1/2] keyutils: add new recipe for version 1.6.

Quoted 3 lines · Yongxin Liu
---
 meta-oe/recipes-security/keyutils/keyutils_1.6.bb | 38

+++++++++++++++++++++++

meta-

Quoted 4 lines
 1 file changed, 38 insertions(+)
 create mode 100644 meta-oe/recipes-security/keyutils/keyutils_1.6.bb
meta- renamed from meta-oe/recipes-security/keyutils/keyutils_1.6.bb +0 -0

oe/recipes-security/keyutils/keyutils_1.6.bb

Quoted 8 lines
Quoted 6 lines

meta-oe/recipes-security/keyutils/keyutils_1.6.bb

Quoted 4 lines

new file mode 100644
index 000000000..3a26c902a

meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +0 -0

This recipe is in meta-security and contains ptests. Did you want the ptests and other fixes too?

This recipe is intended to be used by other recipes in OE. For other layers, I think they can use their own keyutils.

I mean, it should move out of meta-security to meta-oe.  And if you don't want to do that, you should pick up the fixes.

Please have a look and compare.
http://git.yoctoproject.org/cgit/cgit.cgi/meta-security/tree/recipes-security/keyutils/keyutils_1.6.bb

- armin

Quoted 48 lines

Thanks,
Yongxin

Quoted 44 lines

- armin

meta-oe/recipes-security/keyutils/keyutils_1.6.bb line 2

Quoted 3 lines
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +2 -0
@@ -0,0 +1,38 @@
+SUMMARY = "Linux Key Management Utilities"
+DESCRIPTION = "These tools are used to control the key management

system built into the Linux."

meta-oe/recipes-security/keyutils/keyutils_1.6.bb

Quoted 5 lines
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +5 -0
+
+SECTION = "base"
+
+LICENSE = "LGPLv2.1+ & GPLv2.0+"
+LIC_FILES_CHKSUM =

"file://LICENCE.GPL;md5=5f6e72824f5da505c1f4a7197f004b45 \

meta-oe/recipes-security/keyutils/keyutils_1.6.bb line 8

Quoted 1 line
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +1 -0
+

file://LICENCE.LGPL;md5=7d1cacaa3ea752b72ea5e525df54a21f"

meta-oe/recipes-security/keyutils/keyutils_1.6.bb line 15

Quoted 5 lines
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +5 -0
+
+PV = "1.6+git${SRCPV}"
+
+SRC_URI = "\
+

git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git \

Quoted 25 lines
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +25 -0
+"
+
+SRCREV = "4723f0185d11b13df243ad3cd41fbddfed53b5b1"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = "'CFLAGS=${CFLAGS} -Wall'"
+
+INSTALL_FLAGS = "\
+    LIBDIR=${libdir} \
+    USRLIBDIR=${libdir} \
+    BINDIR=${bindir} \
+    SBINDIR=${sbindir} \
+    ETCDIR=${sysconfdir} \
+    SHAREDIR=${datadir} \
+    MANDIR=${mandir} \
+    INCLUDEDIR=${includedir} \
+    DESTDIR=${D} \
+"
+
+do_install() {
+    cd ${S} && oe_runmake ${INSTALL_FLAGS} install
+}
+
+FILES_${PN} += "${datadir}/request-key-debug.sh"
#5 lore raw
Quoted 39 lines

-----Original Message-----
From: akuster808 [mailto:[email protected]]
Sent: Monday, July 8, 2019 10:09
To: Liu, Yongxin; [email protected]; openembedded- [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 1/2] keyutils: add new recipe for version 1.6.

Quoted 11 lines · Yongxin
Quoted 11 lines

-----Original Message-----
From: akuster808 [mailto:[email protected]]
Sent: Monday, July 8, 2019 09:59
To: Liu, Yongxin; [email protected]; openembedded- [email protected]
Subject: Re: [oe] [meta-oe][PATCH v2 1/2] keyutils: add new recipe for version 1.6.

On 7/7/19 6:52 PM, Yongxin Liu wrote:

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
---
 meta-oe/recipes-security/keyutils/keyutils_1.6.bb | 38

+++++++++++++++++++++++

Review

Quoted 4 lines
 1 file changed, 38 insertions(+)
 create mode 100644 meta-oe/recipes-security/keyutils/keyutils_1.6.bb
(quoted diff) +0 -0

b/meta-

Quoted 7 lines
Quoted 7 lines

oe/recipes-security/keyutils/keyutils_1.6.bb

meta-oe/recipes-security/keyutils/keyutils_1.6.bb

Quoted 4 lines

new file mode 100644
index 000000000..3a26c902a

meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +0 -0

This recipe is in meta-security and contains ptests. Did you want the ptests and other fixes too?

Quoted 5 lines
Quoted 2 lines

This recipe is intended to be used by other recipes in OE. For other layers, I think they can use their own keyutils.

I mean, it should move out of meta-security to meta-oe.  And if you don't want to do that, you should pick up the fixes.

Thanks Armin. I will move it from meta-security to meta-oe.

--Yongxin

Quoted 55 lines

Please have a look and compare.
http://git.yoctoproject.org/cgit/cgit.cgi/meta-security/tree/recipes-
security/keyutils/keyutils_1.6.bb

- armin

Quoted 48 lines

Thanks,
Yongxin

Quoted 44 lines

- armin

meta-oe/recipes-security/keyutils/keyutils_1.6.bb line 2

Quoted 3 lines
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +2 -0
@@ -0,0 +1,38 @@
+SUMMARY = "Linux Key Management Utilities"
+DESCRIPTION = "These tools are used to control the key management

system built into the Linux."

meta-oe/recipes-security/keyutils/keyutils_1.6.bb

Quoted 5 lines
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +5 -0
+
+SECTION = "base"
+
+LICENSE = "LGPLv2.1+ & GPLv2.0+"
+LIC_FILES_CHKSUM =

"file://LICENCE.GPL;md5=5f6e72824f5da505c1f4a7197f004b45 \

meta-oe/recipes-security/keyutils/keyutils_1.6.bb line 8

Quoted 1 line
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +1 -0
+

file://LICENCE.LGPL;md5=7d1cacaa3ea752b72ea5e525df54a21f"

meta-oe/recipes-security/keyutils/keyutils_1.6.bb line 15

Quoted 5 lines
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +5 -0
+
+PV = "1.6+git${SRCPV}"
+
+SRC_URI = "\
+

git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git \

Quoted 25 lines
meta-oe/recipes-security/keyutils/keyutils_1.6.bb new file +25 -0
+"
+
+SRCREV = "4723f0185d11b13df243ad3cd41fbddfed53b5b1"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = "'CFLAGS=${CFLAGS} -Wall'"
+
+INSTALL_FLAGS = "\
+    LIBDIR=${libdir} \
+    USRLIBDIR=${libdir} \
+    BINDIR=${bindir} \
+    SBINDIR=${sbindir} \
+    ETCDIR=${sysconfdir} \
+    SHAREDIR=${datadir} \
+    MANDIR=${mandir} \
+    INCLUDEDIR=${includedir} \
+    DESTDIR=${D} \
+"
+
+do_install() {
+    cd ${S} && oe_runmake ${INSTALL_FLAGS} install
+}
+
+FILES_${PN} += "${datadir}/request-key-debug.sh"