From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH] open-iscsi : add new recipe
Date: Mon, 24 Nov 2014 12:32:18 +0100 [thread overview]
Message-ID: <20141124113218.GD2456@jama> (raw)
In-Reply-To: <1416555843-1935-1-git-send-email-lixin.fnst@cn.fujitsu.com>
[-- Attachment #1: Type: text/plain, Size: 4748 bytes --]
On Fri, Nov 21, 2014 at 03:44:03PM +0800, Li xin wrote:
> Open-iSCSI project is a high performance, transport independent,
> multi-platform implementation of RFC3720.
Causes new QA warning:
open-iscsi-2.0-871: open-iscsi requires /bin/bash, but no providers in its RDEPENDS [file-rdeps]
>
> Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
> ---
> .../files/iscsi_sysfs.c-add-include-files.patch | 26 ++++++++++++++++
> .../open-iscsi/files/open-iscsi.service | 18 +++++++++++
> .../open-iscsi/open-iscsi_2.0-871.bb | 35 ++++++++++++++++++++++
> 3 files changed, 79 insertions(+)
> create mode 100644 meta-oe/recipes-support/open-iscsi/files/iscsi_sysfs.c-add-include-files.patch
> create mode 100644 meta-oe/recipes-support/open-iscsi/files/open-iscsi.service
> create mode 100644 meta-oe/recipes-support/open-iscsi/open-iscsi_2.0-871.bb
>
> diff --git a/meta-oe/recipes-support/open-iscsi/files/iscsi_sysfs.c-add-include-files.patch b/meta-oe/recipes-support/open-iscsi/files/iscsi_sysfs.c-add-include-files.patch
> new file mode 100644
> index 0000000..43c1c36
> --- /dev/null
> +++ b/meta-oe/recipes-support/open-iscsi/files/iscsi_sysfs.c-add-include-files.patch
> @@ -0,0 +1,26 @@
> +From e8ecb307b6402b39d033e20f4df4f3374e7c0685 Mon Sep 17 00:00:00 2001
> +From: Li xin <lixin.fnst@cn.fujitsu.com>
> +Date: Fri, 21 Nov 2014 12:02:51 +0900
> +Subject: [PATCH] usr/iscsi_sysfs.c : add include files
> +
> +Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
> +---
> + usr/iscsi_sysfs.c | 2 ++
> + 1 file changed, 2 insertions(+)
> +
> +diff --git a/usr/iscsi_sysfs.c b/usr/iscsi_sysfs.c
> +index cb9a5a1..f6bd78a 100644
> +--- a/usr/iscsi_sysfs.c
> ++++ b/usr/iscsi_sysfs.c
> +@@ -14,6 +14,8 @@
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> + * General Public License for more details.
> + */
> ++#include <sys/types.h>
> ++#include <sys/stat.h>
> + #include <fcntl.h>
> + #include <unistd.h>
> + #include <stdlib.h>
> +--
> +1.8.4.2
> +
> diff --git a/meta-oe/recipes-support/open-iscsi/files/open-iscsi.service b/meta-oe/recipes-support/open-iscsi/files/open-iscsi.service
> new file mode 100644
> index 0000000..debb2d6
> --- /dev/null
> +++ b/meta-oe/recipes-support/open-iscsi/files/open-iscsi.service
> @@ -0,0 +1,18 @@
> +[Unit]
> +Description=Open-iSCSI
> +Documentation=man:iscsid(8) man:iscsiadm(8)
> +After=network.target
> +
> +[Service]
> +Type=forking
> +PIDFile=/var/run/iscsid.pid
> +ExecStartPre=-/sbin/modprobe -q iscsi_tcp
> +ExecStartPre=-/sbin/modprobe -q ib_iser
> +ExecStart=/usr/sbin/iscsid -p /var/run/iscsid.pid
> +ExecStartPost=-/usr/sbin/iscsiadm -m node --loginall=automatic
> +ExecStopPost=/bin/sync
> +ExecStopPost=-/sbin/modprobe -r ib_iser
> +ExecStopPost=-/sbin/modprobe -r iscsi_tcp
> +
> +[Install]
> +WantedBy=multi-user.target
> diff --git a/meta-oe/recipes-support/open-iscsi/open-iscsi_2.0-871.bb b/meta-oe/recipes-support/open-iscsi/open-iscsi_2.0-871.bb
> new file mode 100644
> index 0000000..c8a87d3
> --- /dev/null
> +++ b/meta-oe/recipes-support/open-iscsi/open-iscsi_2.0-871.bb
> @@ -0,0 +1,35 @@
> +DESCRIPTION = "Open-iSCSI project is a high performance, transport \
> +independent, multi-platform implementation of RFC3720."
> +HOMEPAGE = "http://www.open-iscsi.org/"
> +LICENSE = "GPL-2.0"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
> +
> +SRC_URI = "http://www.open-iscsi.org/bits/${BP}.tar.gz"
> +SRC_URI[md5sum] = "0c403e8c9ad41607571ba0e6e8ff196e"
> +SRC_URI[sha256sum] = "bcea8746ae82f2ada7bc05d2aa59bcda1ca0d5197f05f2e16744aae59f0a7dcb"
> +SRC_URI += "file://iscsi_sysfs.c-add-include-files.patch \
> + file://open-iscsi.service"
> +
> +TARGET_CC_ARCH += "${LDFLAGS}"
> +
> +do_compile () {
> + oe_runmake user
> +}
> +
> +do_install_append () {
> + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then
> + install -d ${D}${systemd_unitdir}/system
> + install -m 0644 ${WORKDIR}/open-iscsi.service ${D}${systemd_unitdir}/system/
> + fi
> +}
> +
> +do_install () {
> + oe_runmake DESTDIR="${D}" install_user
> +}
> +
> +inherit ${@base_contains('VIRTUAL-RUNTIME_init_manager','systemd','systemd','',d)}
> +
> +SYSTEMD_PACKAGES = "${PN}"
> +SYSTEMD_SERVICE_${PN} = "open-iscsi.service"
> +SYSTEMD_AUTO_ENABLE = "enable"
> +
> --
> 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:[~2014-11-24 11:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-21 7:44 [meta-oe][PATCH] open-iscsi : add new recipe Li xin
2014-11-21 14:03 ` Joe MacDonald
2014-11-27 8:03 ` [meta-networking][PATCH v2] open-iscsi : add recipe Li xin
2014-11-30 20:55 ` Joe MacDonald
2014-12-02 16:19 ` Koen Kooi
2014-12-02 17:41 ` Joe MacDonald
2014-11-24 11:32 ` Martin Jansa [this message]
2014-11-27 9:14 ` [meta-oe][PATCH] open-iscsi : add new recipe Koen Kooi
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=20141124113218.GD2456@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 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.