Blame SOURCES/0014-libiscsi-fix-build-against-latest-upstream-again.patch

fef8d1
From 55af753f593243bcd1ab4c7e82620bdee432915b Mon Sep 17 00:00:00 2001
46c2f0
From: Chris Leech <cleech@redhat.com>
46c2f0
Date: Thu, 7 Nov 2019 09:16:17 -0800
46c2f0
Subject: [PATCH] libiscsi: fix build against latest upstream, again
46c2f0
46c2f0
---
46c2f0
 libiscsi/Makefile   | 4 ++--
46c2f0
 libiscsi/libiscsi.c | 6 +++---
46c2f0
 2 files changed, 5 insertions(+), 5 deletions(-)
46c2f0
46c2f0
diff --git a/libiscsi/Makefile b/libiscsi/Makefile
46c2f0
index f2cf248..462d666 100644
46c2f0
--- a/libiscsi/Makefile
46c2f0
+++ b/libiscsi/Makefile
46c2f0
@@ -10,7 +10,7 @@ WARNFLAGS ?= -Wall -Wstrict-prototypes
46c2f0
 CFLAGS = $(OPTFLAGS) $(WARNFLAGS) -I../include -I../usr \
46c2f0
 		-D$(OSNAME) -fPIC -D_GNU_SOURCE -fvisibility=hidden \
46c2f0
 		-I../libopeniscsiusr
46c2f0
-LDFLAGS = -L../libopeniscsiusr -lopeniscsiusr
46c2f0
+LDFLAGS = -L../libopeniscsiusr -lopeniscsiusr -lkmod -lcrypto
46c2f0
 LIB = libiscsi.so.0
46c2f0
 TESTS = tests/test_discovery_sendtargets tests/test_discovery_firmware
46c2f0
 TESTS += tests/test_login tests/test_logout tests/test_params
46c2f0
@@ -19,7 +19,7 @@ TESTS += tests/test_set_auth tests/test_get_auth
46c2f0
 
46c2f0
 COMMON_SRCS = sysdeps.o
46c2f0
 # sources shared between iscsid, iscsiadm and iscsistart
46c2f0
-ISCSI_LIB_SRCS = netlink.o transport.o cxgbi.o be2iscsi.o iscsi_timer.o initiator_common.o iscsi_err.o session_info.o iscsi_util.o io.o auth.o discovery.o login.o log.o md5.o sha1.o iface.o idbm.o sysfs.o iscsi_sysfs.o iscsi_net_util.o iscsid_req.o iser.o uip_mgmt_ipc.o
46c2f0
+ISCSI_LIB_SRCS = netlink.o transport.o cxgbi.o be2iscsi.o iscsi_timer.o initiator_common.o iscsi_err.o session_info.o iscsi_util.o io.o auth.o discovery.o login.o log.o iface.o idbm.o sysfs.o iscsi_sysfs.o iscsi_net_util.o iscsid_req.o iser.o uip_mgmt_ipc.o
46c2f0
 FW_PARAM_SRCS = fw_entry.o prom_lex.o prom_parse.tab.o fwparam_ppc.o fwparam_sysfs.o
46c2f0
 
46c2f0
 # sources shared with the userspace utils, note we build these separately
46c2f0
diff --git a/libiscsi/libiscsi.c b/libiscsi/libiscsi.c
46c2f0
index 7003388..c598aee 100644
46c2f0
--- a/libiscsi/libiscsi.c
46c2f0
+++ b/libiscsi/libiscsi.c
46c2f0
@@ -429,7 +429,7 @@ int libiscsi_node_login(struct libiscsi_context *context,
46c2f0
 
46c2f0
 	CHECK(idbm_for_each_iface(&nr_found, (void*)node->iface, login_helper,
46c2f0
 		(char *)node->name, node->tpgt,
46c2f0
-		(char *)node->address, node->port))
46c2f0
+		(char *)node->address, node->port, false))
46c2f0
 	if (nr_found == 0) {
46c2f0
 		strcpy(context->error_str, "No such node");
46c2f0
 		rc = ENODEV;
46c2f0
@@ -615,7 +615,7 @@ int libiscsi_node_set_parameter(struct libiscsi_context *context,
46c2f0
 
46c2f0
 	CHECK(idbm_for_each_iface(&nr_found, &params, idbm_node_set_param,
46c2f0
 		(char *)node->name, node->tpgt,
46c2f0
-		(char *)node->address, node->port))
46c2f0
+		(char *)node->address, node->port, false))
46c2f0
 	if (nr_found == 0) {
46c2f0
 		strcpy(context->error_str, "No such node");
46c2f0
 		rc = ENODEV;
46c2f0
@@ -677,7 +677,7 @@ int libiscsi_node_get_parameter(struct libiscsi_context *context,
46c2f0
 	   as most settings should be the same independent of the iface. */
46c2f0
 	CHECK(idbm_for_each_iface(&nr_found, context, get_parameter_helper,
46c2f0
 		(char *)node->name, node->tpgt,
46c2f0
-		(char *)node->address, node->port))
46c2f0
+		(char *)node->address, node->port, false))
46c2f0
 	if (nr_found == 0) {
46c2f0
 		strcpy(context->error_str, "No such node");
46c2f0
 		rc = ENODEV;
46c2f0
-- 
fef8d1
2.26.2
46c2f0