From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by mail.openembedded.org (Postfix) with ESMTP id AA3F371A30 for ; Tue, 29 Nov 2016 20:00:43 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id m203so26098933wma.3 for ; Tue, 29 Nov 2016 12:00:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=afAO6phHMKORqp16LzIzj/yVqRzcFgIJ5Y1aQP6aBos=; b=Ald4GnFBsxiQpowLtEWC9gZGWO5TrlUVmoc21YzwgGK1oOR/oci+OfZP+2z6LlywAp TtSU9Z1OSCloobO1N5URnbehcFRhZS2GCX2OwEJfVVxms3Lo9GIlOYkiL4NT3TVtAlns JFX5otLOmMk1hz3eGk9LOYaz2nZaN6q4ADLMHQY+SmReeiHnehob5n7u0xoXb2CeE+Bs nGHLplukMwV5lnfax4Fvf1FNjtZY9VyTN6/wiwAeBir6PK6UeRQrUkyTnj5ydHq5vkVE rj+gCRgw7jGlYYMi9abVYMDR/pVgehtCPodeKVsqPCBLtwr6Z+DNCOqihF8fOU9qo1DD pVIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=afAO6phHMKORqp16LzIzj/yVqRzcFgIJ5Y1aQP6aBos=; b=NU1QgktGTWoqhwI5lksUjjpUS0XNaZ8TYb0VRNpRmXFBpRoRIKdXFAzqAEGCrInEQ+ p+DX9rBBo/5V7sLecW77OPg3LWSY3rsdvQ73E/BCYBubf9c+cuBHw+GEo91eE5TSEUFb vv4vDsRIHtBxzDf2HxihDMKsm8gjaFkWqzu/7SqG354McrSGWQDtkVXjdzjzrdNiMMMO nQkHjH3WnTEw4sAWxuCok+zHHbu2lW8397axkglSIxKRbKQw7w5tqP9gufjMegF3NO/w zXjvS6eA4EHceAvEKL+6LVa4N4UbHyNzwKYdaXvs8q6JuxGdm9c6tUJK+L5c8OtALZrN 96kw== X-Gm-Message-State: AKaTC023+r+N6lmztLNgxd4F9ZHVrnCiNy/DovdYNCdCjDnI2KuyUot/45n4HR1K1D1+Kw== X-Received: by 10.28.234.201 with SMTP id g70mr24090780wmi.104.1480449643734; Tue, 29 Nov 2016 12:00:43 -0800 (PST) Received: from localhost ([217.30.68.212]) by smtp.gmail.com with ESMTPSA id r7sm69488222wjp.43.2016.11.29.12.00.42 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Nov 2016 12:00:42 -0800 (PST) From: Martin Jansa X-Google-Original-From: Martin Jansa Date: Tue, 29 Nov 2016 21:00:45 +0100 To: openembedded-devel@lists.openembedded.org Message-ID: <20161129200045.GE2700@jama> References: <1479913709-20703-1-git-send-email-joe_macdonald@mentor.com> MIME-Version: 1.0 In-Reply-To: <1479913709-20703-1-git-send-email-joe_macdonald@mentor.com> User-Agent: Mutt/1.7.1 (2016-10-04) Subject: Re: [meta-networking][PATCH] iscsi-initiator-utils: Update to 2.0.874 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2016 20:00:44 -0000 X-Groupsio-MsgNum: 64115 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YkJPYEFdoxh/AXLE" Content-Disposition: inline --YkJPYEFdoxh/AXLE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 23, 2016 at 10:08:29AM -0500, Joe MacDonald wrote: > The latest iscsi-initiator-utils has been available for a while now, > update our recipe. The new version no longer bundles its own ISNS server, > so this update brings in open-isns as a dependency. >=20 > Additionally, open-iscsi.org is defunct, the new home is at > open-iscsi.com, update the SRC_URI and homepage accordingly. >=20 > Signed-off-by: Joe MacDonald > --- > ...nitiator-utils-Do-not-clean-kernel-source.patch | 44 ++++ > .../iscsi-initiator-utils-dont-use-static.patch | 21 -- > ...text-add-include-for-NI_MAXHOST-definiton.patch | 35 +++ > .../iscsi-initiator-utils-use-var-for-config.patch | 240 ---------------= ------ > ...2.0-873.bb =3D> iscsi-initiator-utils_2.0.874.bb} | 68 +++--- > .../recipes-support/open-isns/open-isns_0.97.bb | 33 +++ > 6 files changed, 151 insertions(+), 290 deletions(-) > create mode 100644 meta-networking/recipes-daemons/iscsi-initiator-utils= /files/iscsi-initiator-utils-Do-not-clean-kernel-source.patch > delete mode 100644 meta-networking/recipes-daemons/iscsi-initiator-utils= /files/iscsi-initiator-utils-dont-use-static.patch > create mode 100644 meta-networking/recipes-daemons/iscsi-initiator-utils= /files/iscsi-initiator-utils-fw_context-add-include-for-NI_MAXHOST-definito= n.patch > delete mode 100644 meta-networking/recipes-daemons/iscsi-initiator-utils= /files/iscsi-initiator-utils-use-var-for-config.patch > rename meta-networking/recipes-daemons/iscsi-initiator-utils/{iscsi-init= iator-utils_2.0-873.bb =3D> iscsi-initiator-utils_2.0.874.bb} (65%) > create mode 100644 meta-networking/recipes-support/open-isns/open-isns_0= =2E97.bb >=20 > diff --git a/meta-networking/recipes-daemons/iscsi-initiator-utils/files/= iscsi-initiator-utils-Do-not-clean-kernel-source.patch b/meta-networking/re= cipes-daemons/iscsi-initiator-utils/files/iscsi-initiator-utils-Do-not-clea= n-kernel-source.patch > new file mode 100644 > index 0000000..2c46611 > --- /dev/null > +++ b/meta-networking/recipes-daemons/iscsi-initiator-utils/files/iscsi-i= nitiator-utils-Do-not-clean-kernel-source.patch > @@ -0,0 +1,44 @@ > +From 4ebab8add4a549c16ab8b124137546c0a7b46a9b Mon Sep 17 00:00:00 2001 > +From: Joe MacDonald > +Date: Tue, 15 Nov 2016 11:11:30 -0500 > +Subject: [PATCH] Do not clean kernel source > + > +The default behaviour should not be to attempt to clean the kernel source > +tree when building userspace. When not cross-compiling, however, this a= ction is > +harmless, but when attempting to build within the sysroot and since this= package > +is purely userspace, the clean step will fail. > + > +Removing the clean step eliminates an unnecessary dependency on the kern= el build > +infrastructure. > + > +Upstream-status: Inappropriate (embedded specific) > + > +Signed-off-by: Joe MacDonald > +--- > + Makefile | 3 +-- > + 1 file changed, 1 insertion(+), 2 deletions(-) > + > +diff --git a/Makefile b/Makefile > +index c8cd00e..9576bba 100644 > +--- a/Makefile > ++++ b/Makefile > +@@ -37,7 +37,7 @@ endif > +=20 > + all: user > +=20 > +-user: iscsiuio/Makefile > ++user: > + $(MAKE) -C utils/sysdeps > + $(MAKE) -C utils/fwparam_ibft > + $(MAKE) -C usr > +@@ -75,7 +75,6 @@ clean: > + $(MAKE) -C utils/fwparam_ibft clean > + $(MAKE) -C utils clean > + $(MAKE) -C usr clean > +- $(MAKE) -C kernel clean > + [ ! -f iscsiuio/Makefile ] || $(MAKE) -C iscsiuio clean > + [ ! -f iscsiuio/Makefile ] || $(MAKE) -C iscsiuio distclean > +=20 > +--=20 > +1.9.1 > + > diff --git a/meta-networking/recipes-daemons/iscsi-initiator-utils/files/= iscsi-initiator-utils-dont-use-static.patch b/meta-networking/recipes-daemo= ns/iscsi-initiator-utils/files/iscsi-initiator-utils-dont-use-static.patch > deleted file mode 100644 > index ce48e2b..0000000 > --- a/meta-networking/recipes-daemons/iscsi-initiator-utils/files/iscsi-i= nitiator-utils-dont-use-static.patch > +++ /dev/null > @@ -1,21 +0,0 @@ > -iscsi-initiator-utils not to use static > - > -Upstream-status: Backport > -This patch is from fedora17. > - > -Signed-off-by: Yao Zhao > -Signed-off-by: Vu Tran > - > -diff --git a/usr/Makefile b/usr/Makefile > -index 673b7f1..fd14a10 100644 > ---- a/usr/Makefile > -+++ b/usr/Makefile > -@@ -61,7 +61,7 @@ iscsiadm: $(ISCSI_LIB_SRCS) $(DISCOVERY_SRCS) iscsiadm= =2Eo session_mgmt.o > -=20 > - iscsistart: $(ISCSI_LIB_SRCS) $(INITIATOR_SRCS) $(FW_BOOT_SRCS) \ > - iscsistart.o statics.o > -- $(CC) $(CFLAGS) -static $^ -o $@ > -+ $(CC) $(CFLAGS) $^ -o $@ > - clean: > - rm -f *.o $(PROGRAMS) .depend $(LIBSYS) > -=20 > diff --git a/meta-networking/recipes-daemons/iscsi-initiator-utils/files/= iscsi-initiator-utils-fw_context-add-include-for-NI_MAXHOST-definiton.patch= b/meta-networking/recipes-daemons/iscsi-initiator-utils/files/iscsi-initia= tor-utils-fw_context-add-include-for-NI_MAXHOST-definiton.patch > new file mode 100644 > index 0000000..37d695f > --- /dev/null > +++ b/meta-networking/recipes-daemons/iscsi-initiator-utils/files/iscsi-i= nitiator-utils-fw_context-add-include-for-NI_MAXHOST-definiton.patch > @@ -0,0 +1,35 @@ > +From 79bea58a554205dd185509fbc4e76b5fc40f9038 Mon Sep 17 00:00:00 2001 > +From: Joe MacDonald > +Date: Tue, 15 Nov 2016 12:36:45 -0500 > +Subject: [PATCH] fw_context: add include for NI_MAXHOST definiton > + > +This appears to build successfully with gcc 4.x but fails on gcc 5+, tho= ugh it's > +not immediately clear why NI_MAXHOST isn't being defined from the include > +chain. Currently engaging with the upstream devs to determine the best = course > +of action, but this is an adequate workaround. > + > +Upstream-status: Pending > + > +Signed-off-by: Joe MacDonald > +--- > + include/fw_context.h | 4 + > + 1 file changed, 1 insertion(+) > + > +diff --git a/include/fw_context.h b/include/fw_context.h > +index 44053d8..0b05cea 100644 > +--- a/include/fw_context.h > ++++ b/include/fw_context.h > +@@ -21,6 +21,10 @@ > + #ifndef FWPARAM_CONTEXT_H_ > + #define FWPARAM_CONTEXT_H_ > +=20 > ++#include > ++#ifndef NI_MAXHOST > ++#define NI_MAXHOST 1025 > ++#endif > + #include > + #include > +=20 > +--=20 > +2.1.4 > + > diff --git a/meta-networking/recipes-daemons/iscsi-initiator-utils/files/= iscsi-initiator-utils-use-var-for-config.patch b/meta-networking/recipes-da= emons/iscsi-initiator-utils/files/iscsi-initiator-utils-use-var-for-config.= patch > deleted file mode 100644 > index 50227a7..0000000 > --- a/meta-networking/recipes-daemons/iscsi-initiator-utils/files/iscsi-i= nitiator-utils-use-var-for-config.patch > +++ /dev/null > @@ -1,240 +0,0 @@ > -iscsi-initiator-utils to use var for config > - > -Upstream-status: Backport > -This patch is from fedora. > - > -Use /var/lib/iscsi/ instead of /etc/iscsi/ for holding > -state files. > - > -Signed-off-by: Yao Zhao > -Signed-off-by: Vu Tran > - > -diff --git a/README b/README > -index 7364b2d..5e8bff8 100644 > ---- a/README > -+++ b/README > -@@ -164,10 +164,10 @@ available on all Linux installations. > -=20 > - The database contains two tables: > -=20 > --- Discovery table (/etc/iscsi/send_targets); > --- Node table (/etc/iscsi/nodes). > -+- Discovery table (/var/lib/iscsi/send_targets); > -+- Node table (/var/lib/iscsi/nodes). > -=20 > --The regular place for iSCSI database files: /etc/iscsi/nodes > -+The regular place for iSCSI database files: /var/lib/iscsi/nodes > -=20 > - The iscsiadm utility is a command-line tool to manage (update, delete, > - insert, query) the persistent database. > -@@ -444,7 +444,7 @@ a scsi_host per HBA port). > - To manage both types of initiator stacks, iscsiadm uses the interface (= iface) > - structure. For each HBA port or for software iscsi for each network > - device (ethX) or NIC, that you wish to bind sessions to you must create > --a iface config /etc/iscsi/ifaces. > -+a iface config /var/lib/iscsi/ifaces. > -=20 > - Prep: > -=20 > -@@ -478,29 +478,29 @@ Running: > - iface0 qla4xxx,00:c0:dd:08:63:e8,20.15.0.7,default,iqn.2005-06.com.redh= at:madmax > - iface1 qla4xxx,00:c0:dd:08:63:ea,20.15.0.9,default,iqn.2005-06.com.redh= at:madmax > -=20 > --Will report iface configurations that are setup in /etc/iscsi/ifaces. > -+Will report iface configurations that are setup in /var/lib/iscsi/iface= s. > - The format is: > -=20 > - iface_name transport_name,hwaddress,ipaddress,net_ifacename,initiatorna= me > -=20 > - For software iscsi, you can create the iface configs by hand, but it is > - reccomended that you use iscsiadm's iface mode. There is a iface.exampl= e in > --/etc/iscsi/ifaces which can be used as a template for the daring. > -+/var/lib/iscsi/ifaces which can be used as a template for the daring. > -=20 > - For each network object you wish to bind a session to you must create > --a seperate iface config in /etc/iscsi/ifaces and each iface config file > -+a seperate iface config in /var/lib/iscsi/ifaces and each iface config = file > - must have a unique name which is less than or equal to 64 characters. > -=20 > - Example: > -=20 > - If you have NIC1 with MAC address 00:0F:1F:92:6B:BF and NIC2 with > - MAC address 00:C0:DD:08:63:E7 and you wanted to do software iscsi over > --TCP/IP. Then in /etc/iscsi/ifaces/iface0 you would enter: > -+TCP/IP. Then in /var/lib/iscsi/ifaces/iface0 you would enter: > -=20 > - iface.transport_name =3D tcp > - iface.hwaddress =3D 00:0F:1F:92:6B:BF > -=20 > --and in /etc/iscsi/ifaces/iface1 you would enter: > -+and in /var/lib/iscsi/ifaces/iface1 you would enter: > -=20 > - iface.transport_name =3D tcp > - iface.hwaddress =3D 00:C0:DD:08:63:E7 > -@@ -550,7 +550,7 @@ cxgb3i.00:07:43:05:97:07 cxgb3i,00:07:43:05:97:07,,, > - qla4xxx.00:0e:1e:04:8b:2e qla4xxx,00:0e:1e:04:8b:2e,,, > -=20 > -=20 > --Will report iface configurations that are setup in /etc/iscsi/ifaces. > -+Will report iface configurations that are setup in /var/lib/iscsi/iface= s. > - The format is: > -=20 > - iface_name transport_name,hwaddress,ipaddress,net_ifacename,initiatorna= me > -@@ -636,7 +636,7 @@ need a seperate network connection to the target for= discovery purposes. > - *This will be fixed in the next version of open-iscsi* > -=20 > - For compatibility reasons, when you run iscsiadm to do discovery, it > --will check for interfaces in /etc/iscsi/iscsi/ifaces that are using > -+will check for interfaces in /var/lib/iscsi/iscsi/ifaces that are using > - tcp for the iface.transport and it will bind the portals that are disco= vered > - so that they will be logged in through those ifaces. This behavior can = also > - be overriden by passing in the interfaces you want to use. For the case > -@@ -654,7 +654,7 @@ we do not bind a session to a iface, then you can us= e the special iface > -=20 > - iscsiadm -m discoverydb -t st -p ip:port -I default --discover -P 1 > -=20 > --And if you did not define any interfaces in /etc/iscsi/ifaces and do > -+And if you did not define any interfaces in /var/lib/iscsi/ifaces and do > - not pass anything into iscsiadm, running iscsiadm will do the default > - behavior, where we allow the network subsystem to decide which > - device to use. > -@@ -696,7 +696,7 @@ To now log into targets it is the same as with sofwa= re iscsi. See section > -=20 > - ./iscsiadm -m discoverydb -t st -p 192.168.1.1:3260 --discover > -=20 > -- This will search /etc/iscsi/send_targets for a record with the > -+ This will search /var/lib/iscsi/send_targets for a record with the > - ID [portal =3D 192.168.1.1:3260 and type =3D sendtargets. If found it > - will perform discovery using the settings stored in the record. > - If a record does not exist, it will be created using the iscsid.conf > -@@ -705,7 +705,7 @@ To now log into targets it is the same as with sofwa= re iscsi. See section > - The argument to -p may also be a hostname instead of an address. > - ./iscsiadm -m discoverydb -t st -p smoehost --discover > -=20 > -- For the ifaces, iscsiadm will first search /etc/iscsi/ifaces for > -+ For the ifaces, iscsiadm will first search /var/lib/iscsi/ifaces for > - interfaces using software iscsi. If any are found then nodes found > - during discovery will be setup so that they can logged in through > - those interfaces. To specify a specific iface, pass the > -@@ -761,7 +761,7 @@ To now log into targets it is the same as with sofwa= re iscsi. See section > - This command will perform discovery, but not manipulate the node DB. > -=20 > - - SendTargets iSCSI Discovery with a specific interface. If you > -- wish to only use a subset of the interfaces in /etc/iscsi/ifaces > -+ wish to only use a subset of the interfaces in /var/lib/iscsi/ifaces > - then you can pass them in during discovery: > -=20 > - ./iscsiadm -m discoverydb -t sendtargets -p 192.168.1.1:3260 \ > -@@ -1072,8 +1072,8 @@ where targetname is the name of the target and ip_= address:port is the address > - and port of the portal. tpgt, is the portal group tag of > - the portal, and is not used in iscsiadm commands except for static > - record creation. And iface name is the name of the iscsi interface > --defined in /etc/iscsi/ifaces. If no interface was defined in > --/etc/iscsi/ifaces or passed in, the default behavior is used. > -+defined in /var/lib/iscsi/ifaces. If no interface was defined in > -+/var/lib/iscsi/ifaces or passed in, the default behavior is used. > - Default here is iscsi_tcp/tcp to be used over which ever NIC the > - network layer decides is best. > -=20 > -@@ -1188,7 +1188,7 @@ If set, iscsid will perform discovery to the addre= ss every > - discovery.isns.discoveryd_poll_inval or > - discovery.sendtargets.discoveryd_poll_inval seconds, > - and it will log into any portals found from the discovery source using > --the ifaces in /etc/iscsi/ifaces. > -+the ifaces in /var/lib/iscsi/ifaces. > -=20 > - Note that for iSNS the poll_interval does not have to be set. If not se= t, > - iscsid will only perform rediscovery when it gets a SCN from the server. > -diff --git a/doc/iscsiadm.8 b/doc/iscsiadm.8 > -index 7c209f6..e94cca0 100644 > ---- a/doc/iscsiadm.8 > -+++ b/doc/iscsiadm.8 > -@@ -89,7 +89,7 @@ This option is only valid for ping submode. > - .TP > - \fB\-I\fR, \fB\-\-interface=3D\fI[iface]\fR > - The interface argument specifies the iSCSI interface to use for the ope= ration. > --iSCSI interfaces (iface) are defined in /etc/iscsi/ifaces. For hardware > -+iSCSI interfaces (iface) are defined in /var/lib/iscsi/ifaces. For hard= ware > - iSCSI (qla4xxx) the iface config must have the hardware address > - (iface.hwaddress =3D port's MAC address) > - and the driver/transport_name (iface.transport_name). The iface's name = is > -@@ -166,7 +166,7 @@ If no other options are specified: for \fIdiscoveryd= b\fR and \fInode\fR, all > - of their respective records are displayed; for \fIsession\fR, all active > - sessions and connections are displayed; for \fIfw\fR, all boot firmware > - values are displayed; for \fIhost\fR, all iSCSI hosts are displayed; and > --for \fIiface\fR, all ifaces setup in /etc/iscsi/ifaces are displayed. > -+for \fIiface\fR, all ifaces setup in /var/lib/iscsi/ifaces are displaye= d. > -=20 > - .TP > - \fB\-n\fR, \fB\-\-name=3D\fIname\fR > -@@ -535,10 +535,10 @@ The configuration file read by \fBiscsid\fR and \f= Biscsiadm\fR on startup. > - The file containing the iSCSI InitiatorName and InitiatorAlias read by > - \fBiscsid\fR and \fBiscsiadm\fR on startup. > - .TP > --/etc/iscsi/nodes/ > -+/var/lib/iscsi/nodes/ > - This directory contains the nodes with their targets. > - .TP > --/etc/iscsi/send_targets > -+/var/lib/iscsi/send_targets > - This directory contains the portals. > -=20 > - .SH "SEE ALSO" > -diff --git a/usr/idbm.c b/usr/idbm.c > -index 4d30aa9..316e54f 100644 > ---- a/usr/idbm.c > -+++ b/usr/idbm.c > -@@ -2468,9 +2468,9 @@ free_info: > - int idbm_init(idbm_get_config_file_fn *fn) > - { > - /* make sure root db dir is there */ > -- if (access(ISCSI_CONFIG_ROOT, F_OK) !=3D 0) { > -- if (mkdir(ISCSI_CONFIG_ROOT, 0660) !=3D 0) { > -- log_error("Could not make %s %d\n", ISCSI_CONFIG_ROOT, > -+ if (access(ISCSIVAR, F_OK) !=3D 0) { > -+ if (mkdir(ISCSIVAR, 0660) !=3D 0) { > -+ log_error("Could not make %s %d\n", ISCSIVAR, > - errno); > - return errno; > - } > -diff --git a/usr/idbm.h b/usr/idbm.h > -index 245f046..f45e86e 100644 > ---- a/usr/idbm.h > -+++ b/usr/idbm.h > -@@ -28,12 +28,16 @@ > - #include "config.h" > - #include "list.h" > -=20 > --#define NODE_CONFIG_DIR ISCSI_CONFIG_ROOT"nodes" > --#define SLP_CONFIG_DIR ISCSI_CONFIG_ROOT"slp" > --#define ISNS_CONFIG_DIR ISCSI_CONFIG_ROOT"isns" > --#define STATIC_CONFIG_DIR ISCSI_CONFIG_ROOT"static" > --#define FW_CONFIG_DIR ISCSI_CONFIG_ROOT"fw" > --#define ST_CONFIG_DIR ISCSI_CONFIG_ROOT"send_targets" > -+#define ISCSIVAR "/var/lib/iscsi/" > -+ > -+#define NODE_CONFIG_DIR ISCSIVAR"nodes" > -+#define SLP_CONFIG_DIR ISCSIVAR"slp" > -+#define ISNS_CONFIG_DIR ISCSIVAR"isns" > -+#define STATIC_CONFIG_DIR ISCSIVAR"static" > -+#define FW_CONFIG_DIR ISCSIVAR"fw" > -+#define ST_CONFIG_DIR ISCSIVAR"send_targets" > -+ > -+ > - #define ST_CONFIG_NAME "st_config" > - #define ISNS_CONFIG_NAME "isns_config" > -=20 > -diff --git a/usr/iface.h b/usr/iface.h > -index 01f7074..2c6ef72 100644 > ---- a/usr/iface.h > -+++ b/usr/iface.h > -@@ -20,7 +20,8 @@ > - #ifndef ISCSI_IFACE_H > - #define ISCSI_IFACE_H > -=20 > --#define IFACE_CONFIG_DIR ISCSI_CONFIG_ROOT"ifaces" > -+#include "idbm.h" > -+#define IFACE_CONFIG_DIR ISCSIVAR"ifaces" > -=20 > - struct iface_rec; > - struct list_head; > diff --git a/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-= initiator-utils_2.0-873.bb b/meta-networking/recipes-daemons/iscsi-initiato= r-utils/iscsi-initiator-utils_2.0.874.bb > similarity index 65% > rename from meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-i= nitiator-utils_2.0-873.bb > rename to meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-ini= tiator-utils_2.0.874.bb > index 4b13155..c3ac5a8 100644 > --- a/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiat= or-utils_2.0-873.bb > +++ b/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiat= or-utils_2.0.874.bb > @@ -4,18 +4,18 @@ independent, multi-platform implementation of RFC3720. = The iscsi package \ > provides the server daemon for the iSCSI protocol, as well as the utilit= y \ > programs used to manage it. iSCSI is a protocol for distributed \ > disk access using SCSI commands sent over Internet Protocol networks." > -HOMEPAGE =3D "http://www.open-iscsi.org/" > +HOMEPAGE =3D "http://www.open-iscsi.com/" > LICENSE =3D "GPLv2 & LGPLv2.1" > SECTION =3D "net" > -DEPENDS =3D "openssl flex-native bison-native" > +DEPENDS =3D "openssl flex-native bison-native open-isns util-linux" > =20 > -LIC_FILES_CHKSUM =3D \ > - "file://COPYING;md5=3D393a5ca445f6965873eca0259a17f833 \ > - file://utils/open-isns/COPYING;md5=3D7fbc338309ac38fefcd64b04bb= 903e34" > +LIC_FILES_CHKSUM =3D "file://COPYING;md5=3D393a5ca445f6965873eca0259a17f= 833" > =20 > -SRC_URI =3D "http://www.open-iscsi.org/bits/open-iscsi-${PV}.tar.gz \ > - file://iscsi-initiator-utils-use-var-for-config.patch \ > - file://iscsi-initiator-utils-dont-use-static.patch \ > +SRCREV ?=3D "8db9717e73d32d2c5131da4f9ad86dfd9065f74b" > + > +SRC_URI =3D "git://github.com/open-iscsi/open-iscsi \ > + file://iscsi-initiator-utils-Do-not-clean-kernel-source.patch= \ > + file://iscsi-initiator-utils-fw_context-add-include-for-NI_MA= XHOST-definiton.patch \ > file://initd.debian \ > file://99_iscsi-initiator-utils \ > file://iscsi-initiator \ > @@ -23,33 +23,43 @@ SRC_URI =3D "http://www.open-iscsi.org/bits/open-iscs= i-${PV}.tar.gz \ > file://iscsi-initiator-targets.service \ > file://set_initiatorname \ > " > -SRC_URI[md5sum] =3D "8b8316d7c9469149a6cc6234478347f7" > -SRC_URI[sha256sum] =3D "7dd9f2f97da417560349a8da44ea4fcfe98bfd5ef284240a= 2cc4ff8e88ac7cd9" > =20 > -S =3D "${WORKDIR}/open-iscsi-${PV}" > +S =3D "${WORKDIR}/git" > +B =3D "${WORKDIR}/build" > + > +inherit update-rc.d systemd autotools > + > +EXTRA_OECONF =3D " \ > + --target=3D${TARGET_SYS} \ > + --host=3D${BUILD_SYS} \ > + --prefix=3D${prefix} \ > + --libdir=3D${libdir} \ > +" > =20 > -inherit update-rc.d systemd > +EXTRA_OEMAKE =3D ' \ > + CC=3D"${CC}" \ > + AR=3D"${AR}" \ > + RANLIB=3D"${RANLIB}" \ > + CFLAGS=3D"${CFLAGS} ${CPPFLAGS} -D_GNU_SOURCE -I. -I../i= nclude -I../../include -I../usr -I../../usr" \ > + LDFLAGS=3D"${LDFLAGS}" \ > + LD=3D"${LD}" \ > + OS=3D"${TARGET_SYS}" \ > + TARGET=3D"${TARGET_OS}" \ > + BASE=3D"${prefix}" \ > + MANDIR=3D"${mandir}" \ > +' > =20 > TARGET_CC_ARCH +=3D "${LDFLAGS}" > + > do_configure () { > - #need to support cross-compiling in open-isns only > - (cd utils/open-isns; gnu-configize; \ > - ./configure --host=3D${TARGET_SYS} --build=3D${BUILD_SYS} --with-se= curity=3Dno ) > + cd ${S}/iscsiuio ; autoreconf --install; ./configure ${EXTRA_OECONF} > } > =20 > do_compile () { > - #make iscsistart one of PROGRAMS if install_user in do_install > - #sed -i -e '/^PROGRAMS =3D /s;$; usr/iscsistart;' Makefile > - > - #fix the ar used in open-isns > - sed -i -e 's:ar cr :$(AR) cr :' ${S}/utils/open-isns/Makefile > - oe_runmake user > + oe_runmake -C ${S} ${EXTRA_OEMAKE} user > } > =20 > do_install () { > - #completely override the install_user as bugs in Makefile > - #oe_runmake DESTDIR=3D"${D}" install_user > - > #install necessary directories > install -d ${D}${sbindir} \ > ${D}${sysconfdir}/init.d \ > @@ -83,8 +93,8 @@ do_install () { > install -m 0644 ${WORKDIR}/iscsi-initiator.service \ > ${WORKDIR}/iscsi-initiator-targets.service \ > ${D}${systemd_unitdir}/system/ > - install -d ${D}${nonarch_libdir}/iscsi > - install -m 0755 ${WORKDIR}/set_initiatorname ${D}${nonarch_libdir}/iscsi > + install -d ${D}${nonarch_libdir}/iscsi > + install -m 0755 ${WORKDIR}/set_initiatorname ${D}${nonarch_libdi= r}/iscsi > else > install -d ${D}/etc/default/volatiles > install -m 0644 ${WORKDIR}/99_iscsi-initiator-utils ${D}/etc/def= ault/volatiles > @@ -93,11 +103,11 @@ do_install () { > =20 > pkg_postinst_${PN}() { > if [ "x$D" =3D "x" ]; then > - if [ -e /etc/init.d/populate-volatile.sh ]; then > + if [ -e /etc/init.d/populate-volatile.sh ]; then > /etc/init.d/populate-volatile.sh update > - elif command -v systemd-tmpfiles >/dev/null; then > + elif command -v systemd-tmpfiles >/dev/null; then > systemd-tmpfiles --create ${sysconfdir}/tmpfiles.d/iscsi.conf > - fi > + fi > fi > } > =20 > diff --git a/meta-networking/recipes-support/open-isns/open-isns_0.97.bb = b/meta-networking/recipes-support/open-isns/open-isns_0.97.bb > new file mode 100644 > index 0000000..fe41093 > --- /dev/null > +++ b/meta-networking/recipes-support/open-isns/open-isns_0.97.bb > @@ -0,0 +1,33 @@ > +# Copyright (C) 2016 Joe MacDonald > +# Released under the MIT license (see COPYING.MIT for the terms) > + > +SUMMARY =3D "iSNS daemon and utility programs" > +DESCRIPTION =3D "This is a partial implementation of RFC4171, the Intern= et \ > +Storage Name Service (iSNS). The distribution includes the iSNS server,= \ > +supporting persisten storage of registrations, isnsadm, a command line \ > +utility for managing nodes, and isnsdd, a corresponding discovery daemon= =2E" > +HOMEPAGE =3D "http://github.com/gonzoleeman/open-isns/" > +LICENSE =3D "GPLv2+ & LGPLv2+" > +LIC_FILES_CHKSUM =3D "file://COPYING;md5=3D321bf41f280cf805086dd5a720b37= 785" > +SECTION =3D "net" > + > +DEPENDS =3D "openssl systemd" > + > +SRC_URI =3D " \ > + git://github.com/open-iscsi/open-isns \ > +" > + > +SRCREV ?=3D "09954404e948e41eb0fce8e28836018b4ce3d20d" > + > +S =3D "${WORKDIR}/git" > + > +inherit systemd autotools-brokensep > + > +EXTRA_OECONF =3D " --prefix=3D${prefix} --enable-shared" > + > +do_install_append () { > + oe_runmake -C ${B} INCDIR=3D${STAGING_INCDIR}/libisns/ install_hdrs > + oe_runmake -C ${B} LIBDIR=3D${D}${libdir} install_lib This seems to bypass sstate and install it directly to sysroot, why did you= use STAGING_INCDIR? ERROR: Following files are installed in sysroot, but not tracked by sstate: qemuarm/usr/include/guid.h qemuarm/usr/include/libisns qemuarm/usr/include/libisns/attrs.h qemuarm/usr/include/libisns/buffer.h qemuarm/usr/include/libisns/isns.h qemuarm/usr/include/libisns/isns-proto.h qemuarm/usr/include/libisns/message.h qemuarm/usr/include/libisns/paths.h qemuarm/usr/include/libisns/source.h qemuarm/usr/include/libisns/types.h qemuarm/usr/include/libisns/util.h qemuarm/usr/lib/libcrossguid.a INFO: Output written in: /home/jenkins/oe/world/shr-core/tmp-glibc/sysroot.cruft.1480448660 > +} > + > +FILES_${PN} +=3D "${libdir}" > --=20 > 1.9.1 >=20 > --=20 > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-devel --=20 Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com --YkJPYEFdoxh/AXLE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQRU+ejDffEzV2Je2oc3VSO3ZXaAHAUCWD3ebAAKCRA3VSO3ZXaA HKwXAJ0eWknPjiCNqhWqtDTfvblXLdA+bACePRg14w5cc8b5Vbqbthah5Pqy8mU= =QWG9 -----END PGP SIGNATURE----- --YkJPYEFdoxh/AXLE--