[]meta-oe][V2 PATCH 0/3] add dlm and it's dependencies
From: leimh <[email protected]>
Add dlm control daemon and tool because the kernel dlm requires a user daemon to control membership. corosync : the dependency of dlm
libqb: the dependency of corosync
leimh (3):
libqb: add new recipe
corosync_2.3.4: add new recipe
dlm: add a new recipe
.../recipes-extended/corosync/corosync_2.3.4.bb | 59 ++++++++++++++++++++++ meta-oe/recipes-extended/dlm/dlm_4.0.2.bb | 47 +++++++++++++++++ meta-oe/recipes-extended/libqb/libqb_0.17.1.bb | 26 ++++++++++ 3 files changed, 132 insertions(+) create mode 100644 meta-oe/recipes-extended/corosync/corosync_2.3.4.bb create mode 100644 meta-oe/recipes-extended/dlm/dlm_4.0.2.bb create mode 100644 meta-oe/recipes-extended/libqb/libqb_0.17.1.bb
Signature · 1 line
1.8.4.2
PATCH v2 1/3 libqb: add new recipe
From: leimh <[email protected]>
An IPC library for high performance servers.
--- meta-oe/recipes-extended/libqb/libqb_0.17.1.bb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meta-oe/recipes-extended/libqb/libqb_0.17.1.bb
meta-oe/recipes-extended/libqb/libqb_0.17.1.bb new file +26 -0
@@ -0,0 +1,26 @@ +SUMMARY = "An IPC library for high performance servers" +DESCRIPTION = "libqb is a library with the primary purpose of providing high performance client server reusable features. \ +It provides high performance logging, tracing, ipc, and poll." + +HOMEPAGE = "https://github.com/clusterlabs/libqb/wiki" + +SECTION = "libs" + +inherit autotools pkgconfig + +SRC_URI = "https://fedorahosted.org/releases/q/u/quarterback/${BP}.tar.xz \ + " + +SRC_URI[md5sum] = "5770b343baa4528f6fec90120ec55048" +SRC_URI[sha256sum] = "7a2115f83bfe20eaa5f2e4ed235e8f2994235d3b87e3e5ca41ba47b320f12e29" + +LICENSE = "LGPL-2.1" + +LIC_FILES_CHKSUM = "file://COPYING;md5=321bf41f280cf805086dd5a720b37785" + +do_configure_prepend() { + ( cd ${S} + ${S}/autogen.sh ) +} + +
Signature · 1 line
1.8.4.2
PATCH v2 2/3 corosync_2.3.4: add new recipe
In reply to leimaohuiFrom: leimh <[email protected]>
The Corosync Cluster Engine and Application Programming Interfaces.
--- .../recipes-extended/corosync/corosync_2.3.4.bb | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 meta-oe/recipes-extended/corosync/corosync_2.3.4.bb
meta-oe/recipes-extended/corosync/corosync_2.3.4.bb new file +59 -0
@@ -0,0 +1,59 @@ +SUMMARY = "The Corosync Cluster Engine and Application Programming Interfaces" +DESCRIPTION = "This package contains the Corosync Cluster Engine Executive, several default \ +APIs and libraries, default configuration files, and an init script." +HOMEPAGE = "http://corosync.github.io/corosync/" + +SECTION = "base" + +inherit autotools pkgconfig systemd + +SRC_URI = "http://build.clusterlabs.org/corosync/releases/${BP}.tar.gz \ + " + +SRC_URI[md5sum] = "4b0f36a1dc014527e5b192265dbd7e70" +SRC_URI[sha256sum] = "3dae93fb1cf5c560295253b0560cbc25421ed053ee373852864f3a60c03247d4" + +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a85eb4ce24033adb6088dd1d6ffc5e5d" + +DEPENDS = "groff-native nss libqb" + +SYSTEMD_SERVICE_${PN} = "corosync.service corosync-notifyd.service" +SYSTEMD_AUTO_ENABLE = "enable" + +INITSCRIPT_NAME = "corosync-daemon" + +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" + +PACKAGECONFIG[systemd] = "--enable-systemd --with-systemddir=${systemd_unitdir}/system/,--with-systemddir=" + +EXTRA_OECONF = "--disable-nss \ + --with-upstartdir=%{_sysconfdir}/init \ +" +EXTRA_OECONF += " --enable-nss " + +do_configure_prepend() { + ( cd ${S} + ${S}/autogen.sh ) +} + +do_install_append() { + install -d ${D}${sysconfdir}/sysconfig/ + install -d ${D}/${sysconfdir}/init.d + install -m 0644 ${S}/init/corosync.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync + install -m 0644 ${S}/init/corosync-notifyd.conf.in ${D}${sysconfdir}/sysconfig/corosync-notifyd.conf + install -m 0644 ${S}/init/corosync.conf.in ${D}${sysconfdir}/sysconfig/corosync.conf + install -m 0644 ${S}/init/corosync.in ${D}${sysconfdir}/init.d/corosync + install -m 0644 ${S}/init/corosync-notifyd.in ${D}${sysconfdir}/init.d/corosync-notifyd + + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then + install -d ${D}${systemd_unitdir}/system + install -m 0644 ${S}/init/corosync.service.in ${D}${systemd_unitdir}/system/corosync.service + install -m 0644 ${S}/init/corosync-notifyd.service.in ${D}${systemd_unitdir}/system/corosync-notifyd.service + sed -i -e 's,@INITWRAPPERSDIR@,${sysconfdir}/init.d,g' ${D}${systemd_unitdir}/system/corosync.service + sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/corosync-notifyd.service + sed -i -e 's,@SBINDIR@,${base_sbindir},g' ${D}${systemd_unitdir}/system/corosync-notifyd.service + fi +} + +FILES_${PN}-dbg += "${libexecdir}/lcrso/.debug"
Signature · 1 line
1.8.4.2
Re: [meta-oe][V2 PATCH 2/3] corosync_2.3.4: add new recipe
Quoted 3 lines · leimaohui
From: leimh <[email protected]>
The Corosync Cluster Engine and Application Programming Interfaces.
Triggers QA warning:
corosync-2.3.4: corosync requires /bin/bash, but no providers in its RDEPENDS [file-rdeps]
Quoted 2 lines
Signed-off-by leimh <[email protected]>
Can you use full name in SOB line?
Quoted 78 lines
--- .../recipes-extended/corosync/corosync_2.3.4.bb | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 meta-oe/recipes-extended/corosync/corosync_2.3.4.bbmeta-oe/recipes-extended/corosync/corosync_2.3.4.bb new file +59
-0@@ -0,0 +1,59 @@ +SUMMARY = "The Corosync Cluster Engine and Application Programming Interfaces" +DESCRIPTION = "This package contains the Corosync Cluster Engine Executive, several default \ +APIs and libraries, default configuration files, and an init script." +HOMEPAGE = "http://corosync.github.io/corosync/" + +SECTION = "base" + +inherit autotools pkgconfig systemd + +SRC_URI = "http://build.clusterlabs.org/corosync/releases/${BP}.tar.gz \ + " + +SRC_URI[md5sum] = "4b0f36a1dc014527e5b192265dbd7e70" +SRC_URI[sha256sum] = "3dae93fb1cf5c560295253b0560cbc25421ed053ee373852864f3a60c03247d4" + +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a85eb4ce24033adb6088dd1d6ffc5e5d" + +DEPENDS = "groff-native nss libqb" + +SYSTEMD_SERVICE_${PN} = "corosync.service corosync-notifyd.service" +SYSTEMD_AUTO_ENABLE = "enable" + +INITSCRIPT_NAME = "corosync-daemon" + +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" + +PACKAGECONFIG[systemd] = "--enable-systemd --with-systemddir=${systemd_unitdir}/system/,--with-systemddir=" + +EXTRA_OECONF = "--disable-nss \ + --with-upstartdir=%{_sysconfdir}/init \ +" +EXTRA_OECONF += " --enable-nss " + +do_configure_prepend() { + ( cd ${S} + ${S}/autogen.sh ) +} + +do_install_append() { + install -d ${D}${sysconfdir}/sysconfig/ + install -d ${D}/${sysconfdir}/init.d + install -m 0644 ${S}/init/corosync.sysconfig.example ${D}${sysconfdir}/sysconfig/corosync + install -m 0644 ${S}/init/corosync-notifyd.conf.in ${D}${sysconfdir}/sysconfig/corosync-notifyd.conf + install -m 0644 ${S}/init/corosync.conf.in ${D}${sysconfdir}/sysconfig/corosync.conf + install -m 0644 ${S}/init/corosync.in ${D}${sysconfdir}/init.d/corosync + install -m 0644 ${S}/init/corosync-notifyd.in ${D}${sysconfdir}/init.d/corosync-notifyd + + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then + install -d ${D}${systemd_unitdir}/system + install -m 0644 ${S}/init/corosync.service.in ${D}${systemd_unitdir}/system/corosync.service + install -m 0644 ${S}/init/corosync-notifyd.service.in ${D}${systemd_unitdir}/system/corosync-notifyd.service + sed -i -e 's,@INITWRAPPERSDIR@,${sysconfdir}/init.d,g' ${D}${systemd_unitdir}/system/corosync.service + sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/corosync-notifyd.service + sed -i -e 's,@SBINDIR@,${base_sbindir},g' ${D}${systemd_unitdir}/system/corosync-notifyd.service + fi +} + +FILES_${PN}-dbg += "${libexecdir}/lcrso/.debug"Signature · 7 lines
1.8.4.2 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
PATCH v2 3/3 dlm: add a new recipe
In reply to leimaohuiFrom: leimh <[email protected]>
The kernel dlm requires a user daemon to control membership.
--- meta-oe/recipes-extended/dlm/dlm_4.0.2.bb | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 meta-oe/recipes-extended/dlm/dlm_4.0.2.bb
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +47 -0
@@ -0,0 +1,47 @@ +DESCRIPTION = "dlm control daemon and tool" + +SECTION = "utils" +HOMEPAGE = "https://fedorahosted.org/cluster/wiki/HomePage" + +SRC_URI = "https://git.fedorahosted.org/cgit/dlm.git/snapshot/${BP}.tar.xz" + +SRC_URI[md5sum] = "efc2ee6093aa6aa0a88aaad83e998a3f" +SRC_URI[sha256sum] = "b89bc557aaffbab0ac005398025f247718a5589cff6574d902eaffe2b20e683e" + +LICENSE = "LGPLv2+ & GPLv2 & GPLv2+" +LIC_FILES_CHKSUM = "file://README.license;md5=8f0bbcdd678df1bce9863492b6c8832d" + +DEPENDS = "corosync systemd" + +inherit pkgconfig systemd + +SYSTEMD_SERVICE_${PN} = "dlm.service" +SYSTEMD_AUTO_ENABLE = "enable" + +export EXTRA_OEMAKE = "" + +do_compile_prepend() { + sed -i "s/libsystemd-daemon/libsystemd/g" ${S}/dlm_controld/Makefile +} + +do_compile () { + oe_runmake 'CC=${CC}' +} + +do_install_append (){ + install -d ${D}${sysconfdir}/sysconfig/ + install -d ${D}${sysconfdir}/init.d/ + install -m 0644 ${S}/init/dlm.sysconfig ${D}${sysconfdir}/sysconfig/dlm + install -m 0644 ${S}/init/dlm.init ${D}${sysconfdir}/init.d/dlm + + # install systemd unit files + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then + install -d ${D}${systemd_unitdir}/system + install -m 0644 ${S}/init/dlm.service ${D}${systemd_unitdir}/system + fi +} + +do_install() { + oe_runmake install DESTDIR=${D} LIBDIR=${libdir} +} +
Signature · 1 line
1.8.4.2
Re: [meta-oe][V2 PATCH 3/3] dlm: add a new recipe
Quoted 20 lines · leimaohui
From: leimh <[email protected]>
The kernel dlm requires a user daemon to control membership.
Signed-off-by leimh <[email protected]>--- meta-oe/recipes-extended/dlm/dlm_4.0.2.bb | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 meta-oe/recipes-extended/dlm/dlm_4.0.2.bbmeta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +4
-0@@ -0,0 +1,47 @@ +DESCRIPTION = "dlm control daemon and tool" + +SECTION = "utils" +HOMEPAGE = "https://fedorahosted.org/cluster/wiki/HomePage"
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb line 14
Quoted 10 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +10
-0+ +SRC_URI = "https://git.fedorahosted.org/cgit/dlm.git/snapshot/${BP}.tar.xz" + +SRC_URI[md5sum] = "efc2ee6093aa6aa0a88aaad83e998a3f" +SRC_URI[sha256sum] = "b89bc557aaffbab0ac005398025f247718a5589cff6574d902eaffe2b20e683e" + +LICENSE = "LGPLv2+ & GPLv2 & GPLv2+" +LIC_FILES_CHKSUM = "file://README.license;md5=8f0bbcdd678df1bce9863492b6c8832d" + +DEPENDS = "corosync systemd"
Does it need explicit systemd dependency?
https://git.fedorahosted.org/cgit/dlm.git/tree/dlm_controld/Makefile
looks like yes with default USE_SD_NOTIFY
If yes, then it should be together withREQUIRED_DISTRO_FEATURES = "systemd"
to prevent world error when systemd isn't in DISTRO_FEATURES
ERROR: Nothing PROVIDES 'systemd' (but meta-oe/meta-oe/recipes-extended/dlm/dlm_4.0.2.bb DEPENDS on or otherwise requires it)
ERROR: systemd was skipped: 'systemd' not in DISTRO_FEATURES
Quoted 41 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +33
-0+ +inherit pkgconfig systemd + +SYSTEMD_SERVICE_${PN} = "dlm.service" +SYSTEMD_AUTO_ENABLE = "enable" + +export EXTRA_OEMAKE = "" + +do_compile_prepend() { + sed -i "s/libsystemd-daemon/libsystemd/g" ${S}/dlm_controld/Makefile +} + +do_compile () { + oe_runmake 'CC=${CC}' +} + +do_install_append (){ + install -d ${D}${sysconfdir}/sysconfig/ + install -d ${D}${sysconfdir}/init.d/ + install -m 0644 ${S}/init/dlm.sysconfig ${D}${sysconfdir}/sysconfig/dlm + install -m 0644 ${S}/init/dlm.init ${D}${sysconfdir}/init.d/dlm + + # install systemd unit files + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then + install -d ${D}${systemd_unitdir}/system + install -m 0644 ${S}/init/dlm.service ${D}${systemd_unitdir}/system + fi +} + +do_install() { + oe_runmake install DESTDIR=${D} LIBDIR=${libdir} +} +Signature · 7 lines
1.8.4.2 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Re: [meta-oe][V2 PATCH 3/3] dlm: add a new recipe
Hi Martin
Quoted 5 lines
Quoted 1 line
+DEPENDS = "corosync systemd"
Does it need explicit systemd dependency?
https://git.fedorahosted.org/cgit/dlm.git/tree/dlm_controld/Makefile
looks like yes with defaultUSE_SD_NOTIFY
Yes.
Quoted 8 lines
If yes, then it should be together with
REQUIRED_DISTRO_FEATURES= "systemd"
to prevent world error when systemd isn't inDISTRO_FEATURES
ERROR: Nothing PROVIDES 'systemd' (but meta-oe/meta-oe/recipes-extended/dlm/dlm_4.0.2.bb DEPENDS on or otherwise requires it)
ERROR: systemd was skipped: 'systemd' not inDISTRO_FEATURES
But I think add REQUIRED_DISTRO_FEATURES can't prevent the world error.
Even if I add the REQUIRED_DISTRO_FEATURES = "systemd",the error still appears.
Unless add "system" into DISTRO_FEATURES.
The following comes from http://www.yoctoproject.org/docs/1.7/ref-manual/ref-manual.html .
********************************************************REQUIRED_DISTRO_FEATURES
When inheriting the distro_features_check class, this variable identifies distribution features that must exist in the current configuration in order for the OpenEmbedded build system to build the recipe. In other words, if the REQUIRED_DISTRO_FEATURES variable lists a feature that does not appear in DISTRO_FEATURES within the current configuration, an error occurs and the build stops.
********************************************************
Cheers
Lei
Quoted 103 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, January 06, 2015 10:35 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][V2 PATCH 3/3] dlm: add a new recipeQuoted 18 lines · leimaohui
From: leimh <[email protected]>
The kernel dlm requires a user daemon to control membership.
Signed-off-by leimh <[email protected]>--- meta-oe/recipes-extended/dlm/dlm_4.0.2.bb | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 meta-oe/recipes-extended/dlm/dlm_4.0.2.bbmeta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +0
-0meta-oe/recipes-extended/dlm/dlm_4.0.2.bb line 6
Quoted 6 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +6
-0@@ -0,0 +1,47 @@ +DESCRIPTION = "dlm control daemon and tool" + +SECTION = "utils" +HOMEPAGE = "https://fedorahosted.org/cluster/wiki/HomePage" + +SRC_URI ="https://git.fedorahosted.org/cgit/dlm.git/snapshot/${BP}.tar.xz"
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb
Quoted 3 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +3
-0+ +SRC_URI[md5sum] = "efc2ee6093aa6aa0a88aaad83e998a3f" +SRC_URI[sha256sum] ="
b89bc557aaffbab0ac005398025f247718a5589cff6574d902eaffe2b20e683e"meta-oe/recipes-extended/dlm/dlm_4.0.2.bb
Quoted 3 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +3
-0+ +LICENSE = "LGPLv2+ & GPLv2 & GPLv2+" +LIC_FILES_CHKSUM ="file://README.license;md5=8f0bbcdd678df1bce9863492b6c8832d"
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb line 14
Quoted 2 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +2
-0+ +DEPENDS = "corosync systemd"Does it need explicit systemd dependency?
https://git.fedorahosted.org/cgit/dlm.git/tree/dlm_controld/Makefile
looks like yes with defaultUSE_SD_NOTIFYIf yes, then it should be together with
REQUIRED_DISTRO_FEATURES= "systemd"
to prevent world error when systemd isn't inDISTRO_FEATURES
ERROR: Nothing PROVIDES 'systemd' (but meta-oe/meta-oe/recipes-extended/dlm/dlm_4.0.2.bb DEPENDS on or otherwise requires it)
ERROR: systemd was skipped: 'systemd' not inDISTRO_FEATURESQuoted 10 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +10
-0+ +inherit pkgconfig systemd + +SYSTEMD_SERVICE_${PN} = "dlm.service" +SYSTEMD_AUTO_ENABLE = "enable" + +export EXTRA_OEMAKE = "" + +do_compile_prepend() { + sed -i "s/libsystemd-daemon/libsystemd/g"meta-oe/recipes-extended/dlm/dlm_4.0.2.bb
Quoted 10 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +10
-0+${S}/dlm_controld/Makefile } + +do_compile () { + oe_runmake 'CC=${CC}' +} + +do_install_append (){ + install -d ${D}${sysconfdir}/sysconfig/ + install -d ${D}${sysconfdir}/init.d/ + install -m 0644 ${S}/init/dlm.sysconfig${D}${sysconfdir}/sysconfig/dlm
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb
Quoted 4 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +4
-0+ install -m 0644 ${S}/init/dlm.init ${D}${sysconfdir}/init.d/dlm + + # install systemd unit files + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)};then
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb line 40
Quoted 2 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +2
-0+ install -d ${D}${systemd_unitdir}/system + install -m 0644 ${S}/init/dlm.service${D}${systemd_unitdir}/system
Quoted 9 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +6
-1+ fi +} + +do_install() { + oe_runmake install DESTDIR=${D} LIBDIR=${libdir} } + --1.8.4.2
Quoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
Martin 'JaMa' Jansa jabber: [email protected]
Re: [meta-oe][V2 PATCH 3/3] dlm: add a new recipe
Quoted 19 lines · Maohui
Hi Martin
Quoted 5 lines
Quoted 1 line
+DEPENDS = "corosync systemd"
Does it need explicit systemd dependency?
https://git.fedorahosted.org/cgit/dlm.git/tree/dlm_controld/Makefile
looks like yes with defaultUSE_SD_NOTIFYYes.
Quoted 8 lines
If yes, then it should be together with
REQUIRED_DISTRO_FEATURES= "systemd"
to prevent world error when systemd isn't inDISTRO_FEATURES
ERROR: Nothing PROVIDES 'systemd' (but meta-oe/meta-oe/recipes-extended/dlm/dlm_4.0.2.bb DEPENDS on or otherwise requires it)
ERROR: systemd was skipped: 'systemd' not inDISTRO_FEATURES
Quoted 3 lines
But I think add
REQUIRED_DISTRO_FEATUREScan't prevent the world error. Even if I add theREQUIRED_DISTRO_FEATURES= "systemd",the error still appears. Unless add "system" intoDISTRO_FEATURES.
It doesn't, because dlm will be skipped just like other recipes incompatible with distro-less configuration.
Quoted 119 lines
The following comes from http://www.yoctoproject.org/docs/1.7/ref-manual/ref-manual.html .
********************************************************REQUIRED_DISTRO_FEATURES
When inheriting thedistro_features_checkclass, this variable identifies distribution features that must exist in the current configuration in order for the OpenEmbedded build system to build the recipe. In other words, if theREQUIRED_DISTRO_FEATURESvariable lists a feature that does not appear inDISTRO_FEATURESwithin the current configuration, an error occurs and the build stops.
********************************************************Cheers
LeiQuoted 103 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, January 06, 2015 10:35 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][V2 PATCH 3/3] dlm: add a new recipeQuoted 18 lines · leimaohui
From: leimh <[email protected]>
The kernel dlm requires a user daemon to control membership.
Signed-off-by leimh <[email protected]>--- meta-oe/recipes-extended/dlm/dlm_4.0.2.bb | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 meta-oe/recipes-extended/dlm/dlm_4.0.2.bbmeta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +0
-0meta-oe/recipes-extended/dlm/dlm_4.0.2.bb line 6
Quoted 6 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +6
-0@@ -0,0 +1,47 @@ +DESCRIPTION = "dlm control daemon and tool" + +SECTION = "utils" +HOMEPAGE = "https://fedorahosted.org/cluster/wiki/HomePage" + +SRC_URI ="https://git.fedorahosted.org/cgit/dlm.git/snapshot/${BP}.tar.xz"
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb
Quoted 3 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +3
-0+ +SRC_URI[md5sum] = "efc2ee6093aa6aa0a88aaad83e998a3f" +SRC_URI[sha256sum] ="
b89bc557aaffbab0ac005398025f247718a5589cff6574d902eaffe2b20e683e"meta-oe/recipes-extended/dlm/dlm_4.0.2.bb
Quoted 3 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +3
-0+ +LICENSE = "LGPLv2+ & GPLv2 & GPLv2+" +LIC_FILES_CHKSUM ="file://README.license;md5=8f0bbcdd678df1bce9863492b6c8832d"
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb line 14
Quoted 2 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +2
-0+ +DEPENDS = "corosync systemd"Does it need explicit systemd dependency?
https://git.fedorahosted.org/cgit/dlm.git/tree/dlm_controld/Makefile
looks like yes with defaultUSE_SD_NOTIFYIf yes, then it should be together with
REQUIRED_DISTRO_FEATURES= "systemd"
to prevent world error when systemd isn't inDISTRO_FEATURES
ERROR: Nothing PROVIDES 'systemd' (but meta-oe/meta-oe/recipes-extended/dlm/dlm_4.0.2.bb DEPENDS on or otherwise requires it)
ERROR: systemd was skipped: 'systemd' not inDISTRO_FEATURESQuoted 10 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +10
-0+ +inherit pkgconfig systemd + +SYSTEMD_SERVICE_${PN} = "dlm.service" +SYSTEMD_AUTO_ENABLE = "enable" + +export EXTRA_OEMAKE = "" + +do_compile_prepend() { + sed -i "s/libsystemd-daemon/libsystemd/g"meta-oe/recipes-extended/dlm/dlm_4.0.2.bb
Quoted 10 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +10
-0+${S}/dlm_controld/Makefile } + +do_compile () { + oe_runmake 'CC=${CC}' +} + +do_install_append (){ + install -d ${D}${sysconfdir}/sysconfig/ + install -d ${D}${sysconfdir}/init.d/ + install -m 0644 ${S}/init/dlm.sysconfig${D}${sysconfdir}/sysconfig/dlm
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb
Quoted 4 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +4
-0+ install -m 0644 ${S}/init/dlm.init ${D}${sysconfdir}/init.d/dlm + + # install systemd unit files + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)};then
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb line 40
Quoted 2 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +2
-0+ install -d ${D}${systemd_unitdir}/system + install -m 0644 ${S}/init/dlm.service${D}${systemd_unitdir}/system
Quoted 9 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +6
-1+ fi +} + +do_install() { + oe_runmake install DESTDIR=${D} LIBDIR=${libdir} } + --1.8.4.2
Quoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
Martin 'JaMa' Jansa jabber: [email protected]Signature · 4 lines
_______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Re: [meta-oe][V2 PATCH 3/3] dlm: add a new recipe
Hi Martin
OK,I will add REQUIRED_DISTRO_FEATURES = "systemd" and then submit my V3 patch later.
Cheers
Lei
Quoted 166 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Wednesday, January 07, 2015 5:10 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][V2 PATCH 3/3] dlm: add a new recipeQuoted 19 lines · Maohui
Hi Martin
Quoted 5 lines
Quoted 1 line
+DEPENDS = "corosync systemd"
Does it need explicit systemd dependency?
https://git.fedorahosted.org/cgit/dlm.git/tree/dlm_controld/Makefile
looks like yes with defaultUSE_SD_NOTIFYYes.
Quoted 8 lines
If yes, then it should be together with
REQUIRED_DISTRO_FEATURES= "systemd"
to prevent world error when systemd isn't inDISTRO_FEATURES
ERROR: Nothing PROVIDES 'systemd' (but meta-oe/meta-oe/recipes-extended/dlm/dlm_4.0.2.bb DEPENDS on or otherwise requires it)
ERROR: systemd was skipped: 'systemd' not inDISTRO_FEATURESQuoted 2 lines
But I think add
REQUIRED_DISTRO_FEATUREScan't prevent the world error. Even if I add theREQUIRED_DISTRO_FEATURES= "systemd",the error stillappears.
Quoted 1 line
Unless add "system" into
DISTRO_FEATURES.It doesn't, because dlm will be skipped just like other recipes incompatible with distro-less configuration.
Quoted 1 line
The following comes from
http://www.yoctoproject.org/docs/1.7/ref-manual/ref-manual.html .
Quoted 3 lines
********************************************************
REQUIRED_DISTRO_FEATURES
When inheriting thedistro_features_checkclass, this variable identifiesdistribution features that must exist in the current configuration in order for the OpenEmbedded build system to build the recipe. In other words, if the
REQUIRED_DISTRO_FEATURESvariable lists a feature that does not appear inDISTRO_FEATURESwithin the current configuration, an error occurs and the build stops.Quoted 112 lines
********************************************************
Cheers
LeiQuoted 97 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Tuesday, January 06, 2015 10:35 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][V2 PATCH 3/3] dlm: add a new recipeQuoted 18 lines · leimaohui
From: leimh <[email protected]>
The kernel dlm requires a user daemon to control membership.
Signed-off-by leimh <[email protected]>--- meta-oe/recipes-extended/dlm/dlm_4.0.2.bb | 47 +++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 meta-oe/recipes-extended/dlm/dlm_4.0.2.bbmeta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +0
-0meta-oe/recipes-extended/dlm/dlm_4.0.2.bb line 6
Quoted 6 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +6
-0@@ -0,0 +1,47 @@ +DESCRIPTION = "dlm control daemon and tool" + +SECTION = "utils" +HOMEPAGE = "https://fedorahosted.org/cluster/wiki/HomePage" + +SRC_URI ="https://git.fedorahosted.org/cgit/dlm.git/snapshot/${BP}.tar.xz"
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb
Quoted 3 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +3
-0+ +SRC_URI[md5sum] = "efc2ee6093aa6aa0a88aaad83e998a3f" +SRC_URI[sha256sum] ="
b89bc557aaffbab0ac005398025f247718a5589cff6574d902eaffe2b20e683e"meta-oe/recipes-extended/dlm/dlm_4.0.2.bb
Quoted 3 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +3
-0+ +LICENSE = "LGPLv2+ & GPLv2 & GPLv2+" +LIC_FILES_CHKSUM ="file://README.license;md5=8f0bbcdd678df1bce9863492b6c8832d"
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb line 14
Quoted 2 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +2
-0+ +DEPENDS = "corosync systemd"Does it need explicit systemd dependency?
https://git.fedorahosted.org/cgit/dlm.git/tree/dlm_controld/Makefile
looks like yes with defaultUSE_SD_NOTIFYIf yes, then it should be together with
REQUIRED_DISTRO_FEATURES= "systemd"
to prevent world error when systemd isn't inDISTRO_FEATURES
ERROR: Nothing PROVIDES 'systemd' (but meta-oe/meta-oe/recipes-extended/dlm/dlm_4.0.2.bb DEPENDS on or otherwise requires it)
ERROR: systemd was skipped: 'systemd' not inDISTRO_FEATURESQuoted 10 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +10
-0+ +inherit pkgconfig systemd + +SYSTEMD_SERVICE_${PN} = "dlm.service" +SYSTEMD_AUTO_ENABLE = "enable" + +export EXTRA_OEMAKE = "" + +do_compile_prepend() { + sed -i "s/libsystemd-daemon/libsystemd/g"meta-oe/recipes-extended/dlm/dlm_4.0.2.bb
Quoted 10 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +10
-0+${S}/dlm_controld/Makefile } + +do_compile () { + oe_runmake 'CC=${CC}' +} + +do_install_append (){ + install -d ${D}${sysconfdir}/sysconfig/ + install -d ${D}${sysconfdir}/init.d/ + install -m 0644 ${S}/init/dlm.sysconfig${D}${sysconfdir}/sysconfig/dlm
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb line 40
Quoted 6 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +6
-0+ install -m 0644 ${S}/init/dlm.init + ${D}${sysconfdir}/init.d/dlm + + # install systemd unit files + if + ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)};then
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb line 42
Quoted 2 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +2
-0+ install -d ${D}${systemd_unitdir}/system + install -m 0644 ${S}/init/dlm.service${D}${systemd_unitdir}/system
Quoted 9 lines
meta-oe/recipes-extended/dlm/dlm_4.0.2.bb new file +6
-1+ fi +} + +do_install() { + oe_runmake install DESTDIR=${D} LIBDIR=${libdir} } + --1.8.4.2
Quoted 8 lines
Quoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
Martin 'JaMa' Jansa jabber: [email protected]Quoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
Martin 'JaMa' Jansa jabber: [email protected]