From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][V2 PATCH 3/3] dlm: add a new recipe
Date: Tue, 6 Jan 2015 15:35:29 +0100 [thread overview]
Message-ID: <20150106143529.GF19402@jama> (raw)
In-Reply-To: <1420517556-49274-4-git-send-email-leimaohui@cn.fujitsu.com>
[-- Attachment #1: Type: text/plain, Size: 2959 bytes --]
On Tue, Jan 06, 2015 at 12:12:36PM +0800, leimaohui wrote:
> From: leimh <leimaohui@cn.fujitsu.com>
>
> The kernel dlm requires a user daemon to control membership.
>
> Signed-off-by: leimh <leimaohui@cn.fujitsu.com>
> ---
> 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
>
> diff --git a/meta-oe/recipes-extended/dlm/dlm_4.0.2.bb b/meta-oe/recipes-extended/dlm/dlm_4.0.2.bb
> new file mode 100644
> index 0000000..774f136
> --- /dev/null
> +++ b/meta-oe/recipes-extended/dlm/dlm_4.0.2.bb
> @@ -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"
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 with
REQUIRED_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
> +
> +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}
> +}
> +
> --
> 1.8.4.2
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
next prev parent reply other threads:[~2015-01-06 14:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-06 4:12 []meta-oe][V2 PATCH 0/3] add dlm and it's dependencies leimaohui
2015-01-06 4:12 ` [meta-oe][V2 PATCH 1/3] libqb: add new recipe leimaohui
2015-01-06 4:12 ` [meta-oe][V2 PATCH 2/3] corosync_2.3.4: " leimaohui
2015-01-07 10:15 ` Martin Jansa
2015-01-06 4:12 ` [meta-oe][V2 PATCH 3/3] dlm: add a " leimaohui
2015-01-06 14:35 ` Martin Jansa [this message]
2015-01-07 6:02 ` Lei, Maohui
2015-01-07 9:10 ` Martin Jansa
2015-01-09 0:58 ` Lei, Maohui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150106143529.GF19402@jama \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox