commit libiscsi for openSUSE:Factory

2020-11-10 Thread root
Hello community,

here is the log from the commit of package libiscsi for openSUSE:Factory 
checked in at 2020-11-10 13:38:50

Comparing /work/SRC/openSUSE:Factory/libiscsi (Old)
 and  /work/SRC/openSUSE:Factory/.libiscsi.new.11331 (New)


Package is "libiscsi"

Tue Nov 10 13:38:50 2020 rev:15 rq:846196 version:1.19.0+git.20201023

Changes:

--- /work/SRC/openSUSE:Factory/libiscsi/libiscsi.changes2020-08-15 
21:19:00.731576485 +0200
+++ /work/SRC/openSUSE:Factory/.libiscsi.new.11331/libiscsi.changes 
2020-11-10 13:39:29.952468041 +0100
@@ -1,0 +2,17 @@
+Thu Nov  5 10:50:08 UTC 2020 - Martin Pluskal 
+
+- Update to version 1.19.0+git.20201023:
+  * test-tool: add COMPARE AND WRITE MiscompareSense test
+  * lib: parse Information fixed sense field
+  * lib: parse Information sense descriptor type
+  * lib: check length for sense key specific sense data descriptors
+  * lib: drop generic sense data descriptor VALID check
+  * test-tool: add version descriptor checks for more SBC-3 versions
+  * test-tool: Fix CmdSN tests
+  * test-tool/test_async_lu_reset_simple: Move an assert statement
+  * Remove an unused function from the iSER code
+  * test-tool: add LogoutDuringIOAsync test case
+  * test-tool: rename async write dispatch/complete counters
+  * pdu: fix use after free during cancellation
+
+---

Old:

  libiscsi-1.19.0+git.20200812.obscpio

New:

  libiscsi-1.19.0+git.20201023.obscpio



Other differences:
--
++ libiscsi.spec ++
--- /var/tmp/diff_new_pack.r0tJKP/_old  2020-11-10 13:39:30.892466173 +0100
+++ /var/tmp/diff_new_pack.r0tJKP/_new  2020-11-10 13:39:30.896466166 +0100
@@ -18,7 +18,7 @@
 
 %define sover 9
 Name:   libiscsi
-Version:1.19.0+git.20200812
+Version:1.19.0+git.20201023
 Release:0
 Summary:iSCSI client library and utilities
 License:GPL-2.0-only AND LGPL-2.1-only
@@ -80,7 +80,6 @@
 %autosetup
 
 %build
-%global optflags %{optflags} -fcommon
 autoreconf -fiv
 %configure \
   --enable-manpages \

++ _servicedata ++
--- /var/tmp/diff_new_pack.r0tJKP/_old  2020-11-10 13:39:30.948466062 +0100
+++ /var/tmp/diff_new_pack.r0tJKP/_new  2020-11-10 13:39:30.952466054 +0100
@@ -3,4 +3,4 @@
 g...@github.com:sahlberg/libiscsi.git
   e6bcdf5fdbf39729399c4f0914661ca1055107a1
 https://github.com/sahlberg/libiscsi.git
-  e9cefe7e421b19f9b984ff3fc8e76856cb439d14
\ No newline at end of file
+  957cc9623223dcbf9dcf7ee27455dabfb7bd29eb
\ No newline at end of file

++ libiscsi-1.19.0+git.20200812.obscpio -> 
libiscsi-1.19.0+git.20201023.obscpio ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libiscsi-1.19.0+git.20200812/include/scsi-lowlevel.h 
new/libiscsi-1.19.0+git.20201023/include/scsi-lowlevel.h
--- old/libiscsi-1.19.0+git.20200812/include/scsi-lowlevel.h2020-08-13 
05:07:10.0 +0200
+++ new/libiscsi-1.19.0+git.20201023/include/scsi-lowlevel.h2020-10-24 
04:19:12.0 +0200
@@ -281,8 +281,10 @@
unsignedsense_specific:1;
unsignedill_param_in_cdb:1;
unsignedbit_pointer_valid:1;
+   unsignedinfo_valid:1;
unsigned char   bit_pointer;
uint16_tfield_pointer;
+   uint64_tinformation;
 };
 
 struct scsi_data {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libiscsi-1.19.0+git.20200812/lib/iscsi-command.c 
new/libiscsi-1.19.0+git.20201023/lib/iscsi-command.c
--- old/libiscsi-1.19.0+git.20200812/lib/iscsi-command.c2020-08-13 
05:07:10.0 +0200
+++ new/libiscsi-1.19.0+git.20201023/lib/iscsi-command.c2020-10-24 
04:19:12.0 +0200
@@ -326,14 +326,21 @@
const unsigned char *p, *const end = sb + sb_len;
 
for (p = sb; p < end; p += p[1]) {
-   if (p[1] < 4) /* length */
-   break;
-   if (!(p[2] & 0x80)) /* VALID bit */
+   uint8_t addl_len = p[1];
+   if (addl_len < 4)
break;
switch (p[0]) {
+   case 0:
+   /* Information descriptor with VALID flag */
+   if (addl_len == 0x0a && p[2] & 0x80) {
+   sense->info_valid = 1;
+   sense->information = scsi_get_uint64(p + 4);
+   }
+   break;
case 2:
/* Sense key specific sense data descriptor */
-   parse_sense_spe

commit libiscsi for openSUSE:Factory

2020-08-15 Thread root
Hello community,

here is the log from the commit of package libiscsi for openSUSE:Factory 
checked in at 2020-08-15 21:18:38

Comparing /work/SRC/openSUSE:Factory/libiscsi (Old)
 and  /work/SRC/openSUSE:Factory/.libiscsi.new.3399 (New)


Package is "libiscsi"

Sat Aug 15 21:18:38 2020 rev:14 rq:826266 version:1.19.0+git.20200812

Changes:

--- /work/SRC/openSUSE:Factory/libiscsi/libiscsi.changes2020-05-29 
21:13:40.226387096 +0200
+++ /work/SRC/openSUSE:Factory/.libiscsi.new.3399/libiscsi.changes  
2020-08-15 21:19:00.731576485 +0200
@@ -1,0 +2,18 @@
+Thu Aug 13 11:36:17 UTC 2020 - Martin Pluskal 
+
+- Update to version 1.19.0+git.20200812:
+  * .travis.yml: Also build for the ppc64le architecture
+  * iscsi-ls: Fix iser url scheme parsing
+  * test-tool: Use block_size instead of hardcoded 512 bytes
+  * examples/iscsi-dd: use common init function for src and dst endpoints
+  * examples/iscsi-dd: use common iscsi_endpoint struct
+  * iscsi-perf: Add explicit casts to avoid two warnings
+  * socket: Make the pdu timeout handling aware of old iscsi context
+  * libiscsi: Make the cancellation aware of the pdus in old iscsi context
+  * pdu: Remove the checking for iscsi->is_loggedin in iscsi_cancel_pdus()
+  * libiscsi: Avoid discontinuities in cmdsn ordering in some cases
+  * test-tool: Use block_size instead of hardcoded 512 bytes
+  * exclude ld_iscsi.so from RPM
+  * include iser-private.h in make dist tarball
+
+---

Old:

  libiscsi-1.19.0+git.20200521.obscpio

New:

  libiscsi-1.19.0+git.20200812.obscpio



Other differences:
--
++ libiscsi.spec ++
--- /var/tmp/diff_new_pack.1KEJck/_old  2020-08-15 21:19:01.675577024 +0200
+++ /var/tmp/diff_new_pack.1KEJck/_new  2020-08-15 21:19:01.679577027 +0200
@@ -18,7 +18,7 @@
 
 %define sover 9
 Name:   libiscsi
-Version:1.19.0+git.20200521
+Version:1.19.0+git.20200812
 Release:0
 Summary:iSCSI client library and utilities
 License:GPL-2.0-only AND LGPL-2.1-only

++ _servicedata ++
--- /var/tmp/diff_new_pack.1KEJck/_old  2020-08-15 21:19:01.723577051 +0200
+++ /var/tmp/diff_new_pack.1KEJck/_new  2020-08-15 21:19:01.723577051 +0200
@@ -3,4 +3,4 @@
 g...@github.com:sahlberg/libiscsi.git
   e6bcdf5fdbf39729399c4f0914661ca1055107a1
 https://github.com/sahlberg/libiscsi.git
-  33c66f2c39a01b4e109270ffcc83e2e2daf73ecb
\ No newline at end of file
+  e9cefe7e421b19f9b984ff3fc8e76856cb439d14
\ No newline at end of file

++ libiscsi-1.19.0+git.20200521.obscpio -> 
libiscsi-1.19.0+git.20200812.obscpio ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libiscsi-1.19.0+git.20200521/.travis.yml 
new/libiscsi-1.19.0+git.20200812/.travis.yml
--- old/libiscsi-1.19.0+git.20200521/.travis.yml2020-05-22 
03:39:49.0 +0200
+++ new/libiscsi-1.19.0+git.20200812/.travis.yml2020-08-13 
05:07:10.0 +0200
@@ -4,6 +4,10 @@
   - linux
   - osx
 
+arch:
+  - amd64
+  - ppc64le
+
 addons:
   apt:
 packages:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libiscsi-1.19.0+git.20200521/Makefile.am 
new/libiscsi-1.19.0+git.20200812/Makefile.am
--- old/libiscsi-1.19.0+git.20200521/Makefile.am2020-05-22 
03:39:49.0 +0200
+++ new/libiscsi-1.19.0+git.20200812/Makefile.am2020-08-13 
05:07:10.0 +0200
@@ -29,5 +29,6 @@
 
 iscsi_includedir = $(includedir)/iscsi
 dist_iscsi_include_HEADERS = include/iscsi.h include/scsi-lowlevel.h
-dist_noinst_HEADERS = include/iscsi-private.h include/md5.h include/slist.h
+dist_noinst_HEADERS = include/iscsi-private.h include/md5.h include/slist.h \
+ include/iser-private.h
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libiscsi-1.19.0+git.20200521/examples/iscsi-dd.c 
new/libiscsi-1.19.0+git.20200812/examples/iscsi-dd.c
--- old/libiscsi-1.19.0+git.20200521/examples/iscsi-dd.c2020-05-22 
03:39:49.0 +0200
+++ new/libiscsi-1.19.0+git.20200812/examples/iscsi-dd.c2020-08-13 
05:07:10.0 +0200
@@ -32,22 +32,23 @@
 uint32_t max_in_flight = 50;
 uint32_t blocks_per_io = 200;
 
+struct iscsi_endpoint {
+   struct iscsi_context *iscsi;
+   int lun;
+   int blocksize;
+   uint64_t num_blocks;
+   struct scsi_inquiry_device_designator tgt_desig;
+};
+
 struct client {
int finished;
uint32_t in_flight;
 
-   struct iscsi_context *src_iscsi;
-   int src_lun;
-   int src_blocksize;
-   uint64_t src_num_blocks;

commit libiscsi for openSUSE:Factory

2020-05-29 Thread root
Hello community,

here is the log from the commit of package libiscsi for openSUSE:Factory 
checked in at 2020-05-29 21:13:37

Comparing /work/SRC/openSUSE:Factory/libiscsi (Old)
 and  /work/SRC/openSUSE:Factory/.libiscsi.new.3606 (New)


Package is "libiscsi"

Fri May 29 21:13:37 2020 rev:13 rq:808956 version:1.19.0+git.20200521

Changes:

--- /work/SRC/openSUSE:Factory/libiscsi/libiscsi.changes2020-04-29 
20:43:29.763816864 +0200
+++ /work/SRC/openSUSE:Factory/.libiscsi.new.3606/libiscsi.changes  
2020-05-29 21:13:40.226387096 +0200
@@ -1,0 +2,15 @@
+Tue May 26 08:40:28 UTC 2020 - Martin Pluskal 
+
+- Update to version 1.19.0+git.20200521:
+  * test-tool, compare and write: Reduce maximum number of blocks from 256 to 
255
+  * test_compareandwrite_invalid_dataout_size: Simplify this test
+  * test-tool: Use asprintf() in sg_send_scsi_cmd()
+  * test-tool: Fix a comment in sg_send_scsi_cmd()
+  * test-tool: Split send_scsi_command()
+  * socket: fix rewrite cmdsn of immediate pdus
+  * iser: eliminate unnecessary memory allocations
+  * iser: use `login_resp_buf` until login is finished
+  * init: free iscsi->opaque before check mallocs/frees counter
+  * reconnect: collect mallocs/frees of the previous reconnection
+
+---

Old:

  libiscsi-1.19.0+git.20200212.obscpio

New:

  libiscsi-1.19.0+git.20200521.obscpio



Other differences:
--
++ libiscsi.spec ++
--- /var/tmp/diff_new_pack.cgNpxV/_old  2020-05-29 21:13:41.002389435 +0200
+++ /var/tmp/diff_new_pack.cgNpxV/_new  2020-05-29 21:13:41.006389447 +0200
@@ -18,7 +18,7 @@
 
 %define sover 9
 Name:   libiscsi
-Version:1.19.0+git.20200212
+Version:1.19.0+git.20200521
 Release:0
 Summary:iSCSI client library and utilities
 License:GPL-2.0-only AND LGPL-2.1-only

++ _service ++
--- /var/tmp/diff_new_pack.cgNpxV/_old  2020-05-29 21:13:41.030389520 +0200
+++ /var/tmp/diff_new_pack.cgNpxV/_new  2020-05-29 21:13:41.030389520 +0200
@@ -1,6 +1,6 @@
 
   
-g...@github.com:sahlberg/libiscsi.git
+https://github.com/sahlberg/libiscsi.git
 git
 enable
 libiscsi

++ _servicedata ++
--- /var/tmp/diff_new_pack.cgNpxV/_old  2020-05-29 21:13:41.046389568 +0200
+++ /var/tmp/diff_new_pack.cgNpxV/_new  2020-05-29 21:13:41.046389568 +0200
@@ -1,4 +1,6 @@
 
 
 g...@github.com:sahlberg/libiscsi.git
-  e6bcdf5fdbf39729399c4f0914661ca1055107a1
\ No newline at end of file
+  e6bcdf5fdbf39729399c4f0914661ca1055107a1
+https://github.com/sahlberg/libiscsi.git
+  33c66f2c39a01b4e109270ffcc83e2e2daf73ecb
\ No newline at end of file

++ libiscsi-1.19.0+git.20200212.obscpio -> 
libiscsi-1.19.0+git.20200521.obscpio ++
 4003 lines of diff (skipped)

++ libiscsi.obsinfo ++
--- /var/tmp/diff_new_pack.cgNpxV/_old  2020-05-29 21:13:41.290390303 +0200
+++ /var/tmp/diff_new_pack.cgNpxV/_new  2020-05-29 21:13:41.290390303 +0200
@@ -1,5 +1,5 @@
 name: libiscsi
-version: 1.19.0+git.20200212
-mtime: 1581484863
-commit: e6bcdf5fdbf39729399c4f0914661ca1055107a1
+version: 1.19.0+git.20200521
+mtime: 1590111589
+commit: 33c66f2c39a01b4e109270ffcc83e2e2daf73ecb
 




commit libiscsi for openSUSE:Factory

2020-04-29 Thread root
Hello community,

here is the log from the commit of package libiscsi for openSUSE:Factory 
checked in at 2020-04-29 20:43:27

Comparing /work/SRC/openSUSE:Factory/libiscsi (Old)
 and  /work/SRC/openSUSE:Factory/.libiscsi.new.2738 (New)


Package is "libiscsi"

Wed Apr 29 20:43:27 2020 rev:12 rq:798446 version:1.19.0+git.20200212

Changes:

--- /work/SRC/openSUSE:Factory/libiscsi/libiscsi.changes2020-02-21 
16:39:37.869706140 +0100
+++ /work/SRC/openSUSE:Factory/.libiscsi.new.2738/libiscsi.changes  
2020-04-29 20:43:29.763816864 +0200
@@ -1,0 +2,5 @@
+Mon Apr 27 19:24:44 UTC 2020 - Martin Liška 
+
+- Enable -fcommon in order to fix boo#1160276.
+
+---



Other differences:
--
++ libiscsi.spec ++
--- /var/tmp/diff_new_pack.Bwz2YT/_old  2020-04-29 20:43:31.231820692 +0200
+++ /var/tmp/diff_new_pack.Bwz2YT/_new  2020-04-29 20:43:31.231820692 +0200
@@ -80,6 +80,7 @@
 %autosetup
 
 %build
+%global optflags %{optflags} -fcommon
 autoreconf -fiv
 %configure \
   --enable-manpages \




commit libiscsi for openSUSE:Factory

2020-02-21 Thread root
Hello community,

here is the log from the commit of package libiscsi for openSUSE:Factory 
checked in at 2020-02-21 16:39:34

Comparing /work/SRC/openSUSE:Factory/libiscsi (Old)
 and  /work/SRC/openSUSE:Factory/.libiscsi.new.26092 (New)


Package is "libiscsi"

Fri Feb 21 16:39:34 2020 rev:11 rq:775204 version:1.19.0+git.20200212

Changes:

--- /work/SRC/openSUSE:Factory/libiscsi/libiscsi.changes2019-09-30 
15:51:14.978517879 +0200
+++ /work/SRC/openSUSE:Factory/.libiscsi.new.26092/libiscsi.changes 
2020-02-21 16:39:37.869706140 +0100
@@ -1,0 +2,14 @@
+Tue Feb 18 13:33:31 UTC 2020 - Martin Pluskal 
+
+- Update to version 1.19.0+git.20200212 (resolves boo#1160276):
+  * drop the LD_PRELOAD tool
+  * remove FIXME
+  * Fix data segment length comparison to unsigned long
+  * iser: queue pdus when cmdsn exceeds maxcmdsn
+  * iser: send immediate data
+  * iser: remove `__packed` from struct iser_cm_hdr declaration
+  * iser: fix struct iser_rx_desc
+  * test-tool: avoid use-after-free on iscsi_logout_sync
+  * Use dynamic memory allocation instead of variable-length arrays
+
+---

Old:

  libiscsi-1.19.0.tar.gz

New:

  _service
  _servicedata
  libiscsi-1.19.0+git.20200212.obscpio
  libiscsi.obsinfo



Other differences:
--
++ libiscsi.spec ++
--- /var/tmp/diff_new_pack.94OqSQ/_old  2020-02-21 16:39:38.485707371 +0100
+++ /var/tmp/diff_new_pack.94OqSQ/_new  2020-02-21 16:39:38.489707378 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libiscsi
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,13 @@
 
 %define sover 9
 Name:   libiscsi
-Version:1.19.0
+Version:1.19.0+git.20200212
 Release:0
 Summary:iSCSI client library and utilities
 License:GPL-2.0-only AND LGPL-2.1-only
 Group:  Development/Libraries/C and C++
 URL:https://github.com/sahlberg/libiscsi
-Source: 
https://github.com/sahlberg/libiscsi/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Source: %{name}-%{version}.tar.gz
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  bc
@@ -89,7 +89,6 @@
 
 %install
 %make_install
-mv "%{buildroot}/%{_bindir}/ld_iscsi.so" "%{buildroot}/%{_libdir}/"
 find %{buildroot} -type f -name "*.la" -delete -print
 
 %post   -n %{name}%{sover} -p /sbin/ldconfig
@@ -106,9 +105,6 @@
 %{_bindir}/iscsi-swp
 %{_bindir}/iscsi-perf
 %{_bindir}/iscsi-readcapacity16
-# preload library that intercepts a handful of system calls and converts
-# iSCSI URLs to look and behave as if they are normal read-only files.
-%{_libdir}/ld_iscsi.so
 %{_mandir}/man1/iscsi-inq.1%{?ext_man}
 %{_mandir}/man1/iscsi-ls.1%{?ext_man}
 %{_mandir}/man1/iscsi-swp.1%{?ext_man}

++ _service ++

  
g...@github.com:sahlberg/libiscsi.git
git
enable
libiscsi
@PARENT_TAG@+git.%cd
  
  
  
  
*.tar
gz
  

++ _servicedata ++


g...@github.com:sahlberg/libiscsi.git
  e6bcdf5fdbf39729399c4f0914661ca1055107a1++
 libiscsi.obsinfo ++
name: libiscsi
version: 1.19.0+git.20200212
mtime: 1581484863
commit: e6bcdf5fdbf39729399c4f0914661ca1055107a1




commit libiscsi for openSUSE:Factory

2019-09-30 Thread root
Hello community,

here is the log from the commit of package libiscsi for openSUSE:Factory 
checked in at 2019-09-30 15:51:11

Comparing /work/SRC/openSUSE:Factory/libiscsi (Old)
 and  /work/SRC/openSUSE:Factory/.libiscsi.new.2352 (New)


Package is "libiscsi"

Mon Sep 30 15:51:11 2019 rev:10 rq:732876 version:1.19.0

Changes:

--- /work/SRC/openSUSE:Factory/libiscsi/libiscsi.changes2019-08-16 
15:30:14.921967958 +0200
+++ /work/SRC/openSUSE:Factory/.libiscsi.new.2352/libiscsi.changes  
2019-09-30 15:51:14.978517879 +0200
@@ -1,0 +2,5 @@
+Tue Sep 24 08:56:59 UTC 2019 - Martin Pluskal 
+
+- Update build dependencies (libgcrypt)
+
+---



Other differences:
--
++ libiscsi.spec ++
--- /var/tmp/diff_new_pack.bNiEPC/_old  2019-09-30 15:51:15.890515451 +0200
+++ /var/tmp/diff_new_pack.bNiEPC/_new  2019-09-30 15:51:15.890515451 +0200
@@ -28,6 +28,7 @@
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  bc
+BuildRequires:  libgcrypt-devel
 BuildRequires:  librdmacm-devel
 BuildRequires:  libtool
 BuildRequires:  pkgconfig
@@ -84,7 +85,7 @@
   --enable-manpages \
   --disable-werror  \
   --disable-static
-make %{?_smp_mflags}
+%make_build
 
 %install
 %make_install




commit libiscsi for openSUSE:Factory

2019-08-16 Thread root
Hello community,

here is the log from the commit of package libiscsi for openSUSE:Factory 
checked in at 2019-08-16 15:30:13

Comparing /work/SRC/openSUSE:Factory/libiscsi (Old)
 and  /work/SRC/openSUSE:Factory/.libiscsi.new.22127 (New)


Package is "libiscsi"

Fri Aug 16 15:30:13 2019 rev:9 rq:723086 version:1.19.0

Changes:

--- /work/SRC/openSUSE:Factory/libiscsi/libiscsi.changes2018-07-02 
23:27:54.233661295 +0200
+++ /work/SRC/openSUSE:Factory/.libiscsi.new.22127/libiscsi.changes 
2019-08-16 15:30:14.921967958 +0200
@@ -1,0 +2,9 @@
+Tue Aug 13 13:41:47 UTC 2019 - Martin Pluskal 
+
+- Update to version 1.19:
+  * Mostly internal changes
+- Drop no longer needed patches:
+  * libiscsi-1.18.0-Fix-32bit-build.patch
+  * libiscsi-rdma.patch
+
+---

Old:

  libiscsi-1.18.0-Fix-32bit-build.patch
  libiscsi-1.18.0.tar.gz
  libiscsi-rdma.patch

New:

  libiscsi-1.19.0.tar.gz



Other differences:
--
++ libiscsi.spec ++
--- /var/tmp/diff_new_pack.AAwMVa/_old  2019-08-16 15:30:15.501967789 +0200
+++ /var/tmp/diff_new_pack.AAwMVa/_new  2019-08-16 15:30:15.513967786 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libiscsi
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,21 +12,19 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
-%define sover 8
+%define sover 9
 Name:   libiscsi
-Version:1.18.0
+Version:1.19.0
 Release:0
 Summary:iSCSI client library and utilities
 License:GPL-2.0-only AND LGPL-2.1-only
 Group:  Development/Libraries/C and C++
 URL:https://github.com/sahlberg/libiscsi
 Source: 
https://github.com/sahlberg/libiscsi/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
-Patch0: %{name}-1.18.0-Fix-32bit-build.patch
-Patch1: libiscsi-rdma.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  bc
@@ -78,7 +76,7 @@
 CUnit.
 
 %prep
-%autosetup -p1
+%autosetup
 
 %build
 autoreconf -fiv

++ libiscsi-1.18.0.tar.gz -> libiscsi-1.19.0.tar.gz ++
 8982 lines of diff (skipped)




commit libiscsi for openSUSE:Factory

2018-07-02 Thread root
Hello community,

here is the log from the commit of package libiscsi for openSUSE:Factory 
checked in at 2018-07-02 23:27:52

Comparing /work/SRC/openSUSE:Factory/libiscsi (Old)
 and  /work/SRC/openSUSE:Factory/.libiscsi.new (New)


Package is "libiscsi"

Mon Jul  2 23:27:52 2018 rev:8 rq:618440 version:1.18.0

Changes:

--- /work/SRC/openSUSE:Factory/libiscsi/libiscsi.changes2018-03-19 
23:31:05.88113 +0100
+++ /work/SRC/openSUSE:Factory/.libiscsi.new/libiscsi.changes   2018-07-02 
23:27:54.233661295 +0200
@@ -1,0 +2,6 @@
+Fri Jun 22 07:57:31 UTC 2018 - mplus...@suse.com
+
+- Fix building of recent rdma (boo#1098749):
+  * libiscsi-rdma.patch
+
+---

New:

  libiscsi-rdma.patch



Other differences:
--
++ libiscsi.spec ++
--- /var/tmp/diff_new_pack.vVyNUk/_old  2018-07-02 23:27:54.993660359 +0200
+++ /var/tmp/diff_new_pack.vVyNUk/_new  2018-07-02 23:27:54.997660354 +0200
@@ -26,6 +26,7 @@
 URL:https://github.com/sahlberg/libiscsi
 Source: 
https://github.com/sahlberg/libiscsi/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Patch0: %{name}-1.18.0-Fix-32bit-build.patch
+Patch1: libiscsi-rdma.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  bc

++ libiscsi-rdma.patch ++
>From f1feb218e2823d236569f0ca3cfad07334f2a304 Mon Sep 17 00:00:00 2001
From: Cole Robinson 
Date: Mon, 30 Apr 2018 18:11:05 -0400
Subject: [PATCH] iser: Use local container_of definition

The code was implicitly dependent on container_of from
inifiniband/verbs.h, however that's been removed in rdma-core
latest release:

https://github.com/linux-rdma/rdma-core/commit/ce0274acffc78ed2861a56bdc34cdd3d60c20e1f

Define container_of locally if it's not already defined
---
 lib/iser.c | 14 ++
 1 file changed, 14 insertions(+)

Index: libiscsi-1.18.0/lib/iser.c
===
--- libiscsi-1.18.0.orig/lib/iser.c
+++ libiscsi-1.18.0/lib/iser.c
@@ -32,6 +32,20 @@
 #include 
 #include 
 
+
+#ifndef container_of
+/**
+  * container_of - cast a member of a structure out to the containing structure
+  * @ptr:the pointer to the member.
+  * @type:   the type of the container struct this is embedded in.
+  * @member: the name of the member within the struct.
+  *
+ */
+#define container_of(ptr, type, member) \
+((type *) ((uint8_t *)(ptr) - offsetof(type, member)))
+#endif
+
+
 #ifdef __linux
 
 static int cq_handle(struct iser_conn *iser_conn);



commit libiscsi for openSUSE:Factory

2018-03-19 Thread root
Hello community,

here is the log from the commit of package libiscsi for openSUSE:Factory 
checked in at 2018-03-19 23:31:04

Comparing /work/SRC/openSUSE:Factory/libiscsi (Old)
 and  /work/SRC/openSUSE:Factory/.libiscsi.new (New)


Package is "libiscsi"

Mon Mar 19 23:31:04 2018 rev:7 rq:586696 version:1.18.0

Changes:

--- /work/SRC/openSUSE:Factory/libiscsi/libiscsi.changes2017-04-24 
09:45:41.954133472 +0200
+++ /work/SRC/openSUSE:Factory/.libiscsi.new/libiscsi.changes   2018-03-19 
23:31:05.88113 +0100
@@ -1,0 +2,5 @@
+Wed Mar 14 08:58:53 UTC 2018 - mplus...@suse.com
+
+- Morernise spec file with spec-clener
+
+---



Other differences:
--
++ libiscsi.spec ++
--- /var/tmp/diff_new_pack.skSKc3/_old  2018-03-19 23:31:06.601085140 +0100
+++ /var/tmp/diff_new_pack.skSKc3/_new  2018-03-19 23:31:06.601085140 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libiscsi
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -21,9 +21,9 @@
 Version:1.18.0
 Release:0
 Summary:iSCSI client library and utilities
-License:GPL-2.0 and LGPL-2.1
+License:GPL-2.0-only AND LGPL-2.1-only
 Group:  Development/Libraries/C and C++
-Url:https://github.com/sahlberg/libiscsi
+URL:https://github.com/sahlberg/libiscsi
 Source: 
https://github.com/sahlberg/libiscsi/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Patch0: %{name}-1.18.0-Fix-32bit-build.patch
 BuildRequires:  autoconf
@@ -77,8 +77,7 @@
 CUnit.
 
 %prep
-%setup -q
-%patch0 -p1
+%autosetup -p1
 
 %build
 autoreconf -fiv
@@ -97,12 +96,11 @@
 %postun -n %{name}%{sover} -p /sbin/ldconfig
 
 %files -n %{name}%{sover}
-%defattr(-,root,root)
 %{_libdir}/libiscsi.so.%{sover}*
 
 %files utils
-%defattr(-,root,root)
-%doc COPYING LICENCE-* README
+%license COPYING
+%doc LICENCE-* README
 %{_bindir}/iscsi-inq
 %{_bindir}/iscsi-ls
 %{_bindir}/iscsi-swp
@@ -111,19 +109,17 @@
 # preload library that intercepts a handful of system calls and converts
 # iSCSI URLs to look and behave as if they are normal read-only files.
 %{_libdir}/ld_iscsi.so
-%{_mandir}/man1/iscsi-inq.1%{ext_man}
-%{_mandir}/man1/iscsi-ls.1%{ext_man}
-%{_mandir}/man1/iscsi-swp.1%{ext_man}
+%{_mandir}/man1/iscsi-inq.1%{?ext_man}
+%{_mandir}/man1/iscsi-ls.1%{?ext_man}
+%{_mandir}/man1/iscsi-swp.1%{?ext_man}
 
 %files devel
-%defattr(-,root,root)
 %{_libdir}/pkgconfig/libiscsi.pc
 %{_includedir}/iscsi/
 %{_libdir}/libiscsi.so
 
 %files test
-%defattr(-,root,root)
 %{_bindir}/iscsi-test-cu
-%{_mandir}/man1/iscsi-test-cu.1%{ext_man}
+%{_mandir}/man1/iscsi-test-cu.1%{?ext_man}
 
 %changelog




commit libiscsi for openSUSE:Factory

2017-04-24 Thread root
Hello community,

here is the log from the commit of package libiscsi for openSUSE:Factory 
checked in at 2017-04-24 09:45:39

Comparing /work/SRC/openSUSE:Factory/libiscsi (Old)
 and  /work/SRC/openSUSE:Factory/.libiscsi.new (New)


Package is "libiscsi"

Mon Apr 24 09:45:39 2017 rev:6 rq:484320 version:1.18.0

Changes:

--- /work/SRC/openSUSE:Factory/libiscsi/libiscsi.changes2016-11-15 
17:54:03.0 +0100
+++ /work/SRC/openSUSE:Factory/.libiscsi.new/libiscsi.changes   2017-04-24 
09:45:41.954133472 +0200
@@ -1,0 +2,5 @@
+Sat Apr  1 10:29:07 UTC 2017 - mplus...@suse.com
+
+- Do not build with -Werror
+
+---



Other differences:
--
++ libiscsi.spec ++
--- /var/tmp/diff_new_pack.zRS2Ct/_old  2017-04-24 09:45:43.085973386 +0200
+++ /var/tmp/diff_new_pack.zRS2Ct/_new  2017-04-24 09:45:43.085973386 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libiscsi
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -33,7 +33,6 @@
 BuildRequires:  libtool
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(cunit)
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
 libiscsi is a clientside library to implement the iSCSI protocol
@@ -74,7 +73,8 @@
 Group:  System/Base
 
 %description test
-A comprehensive iSCSI transport and SCSI block device test suite based on 
CUnit.
+A comprehensive iSCSI transport and SCSI block device test suite based on
+CUnit.
 
 %prep
 %setup -q
@@ -84,11 +84,12 @@
 autoreconf -fiv
 %configure \
  --enable-manpages \
+  --disable-werror  \
  --disable-static
 make %{?_smp_mflags}
 
 %install
-make %{?_smp_mflags} DESTDIR=%{buildroot} install
+%make_install
 mv "%{buildroot}/%{_bindir}/ld_iscsi.so" "%{buildroot}/%{_libdir}/"
 find %{buildroot} -type f -name "*.la" -delete -print
 
@@ -110,19 +111,19 @@
 # preload library that intercepts a handful of system calls and converts
 # iSCSI URLs to look and behave as if they are normal read-only files.
 %{_libdir}/ld_iscsi.so
-%{_mandir}/man1/iscsi-inq.1*
-%{_mandir}/man1/iscsi-ls.1*
-%{_mandir}/man1/iscsi-swp.1*
+%{_mandir}/man1/iscsi-inq.1%{ext_man}
+%{_mandir}/man1/iscsi-ls.1%{ext_man}
+%{_mandir}/man1/iscsi-swp.1%{ext_man}
 
 %files devel
 %defattr(-,root,root)
-%{_libdir}/pkgconfig/*.pc
+%{_libdir}/pkgconfig/libiscsi.pc
 %{_includedir}/iscsi/
 %{_libdir}/libiscsi.so
 
 %files test
 %defattr(-,root,root)
 %{_bindir}/iscsi-test-cu
-%{_mandir}/man1/iscsi-test-cu.1*
+%{_mandir}/man1/iscsi-test-cu.1%{ext_man}
 
 %changelog




commit libiscsi for openSUSE:Factory

2016-11-15 Thread h_root
Hello community,

here is the log from the commit of package libiscsi for openSUSE:Factory 
checked in at 2016-11-15 17:54:01

Comparing /work/SRC/openSUSE:Factory/libiscsi (Old)
 and  /work/SRC/openSUSE:Factory/.libiscsi.new (New)


Package is "libiscsi"

Changes:

--- /work/SRC/openSUSE:Factory/libiscsi/libiscsi.changes2016-11-08 
18:26:00.0 +0100
+++ /work/SRC/openSUSE:Factory/.libiscsi.new/libiscsi.changes   2016-11-15 
17:54:03.0 +0100
@@ -1,0 +2,6 @@
+Mon Nov 14 16:39:09 UTC 2016 - msucha...@suse.com
+
+- Fix 32bit build (gh#sahlberg/libiscsi#221, boo#1009456)
+  * libiscsi-1.18.0-Fix-32bit-build.patch
+
+---

New:

  libiscsi-1.18.0-Fix-32bit-build.patch



Other differences:
--
++ libiscsi.spec ++
--- /var/tmp/diff_new_pack.veq0fX/_old  2016-11-15 17:54:04.0 +0100
+++ /var/tmp/diff_new_pack.veq0fX/_new  2016-11-15 17:54:04.0 +0100
@@ -25,6 +25,7 @@
 Group:  Development/Libraries/C and C++
 Url:https://github.com/sahlberg/libiscsi
 Source: 
https://github.com/sahlberg/libiscsi/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Patch0: %{name}-1.18.0-Fix-32bit-build.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  bc
@@ -33,7 +34,6 @@
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(cunit)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-ExcludeArch:%{arm} %{ix86} ppc
 
 %description
 libiscsi is a clientside library to implement the iSCSI protocol
@@ -78,6 +78,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 autoreconf -fiv

++ libiscsi-1.18.0-Fix-32bit-build.patch ++
>From a239423a0f9250dad9998152fa4b4b46accdf641 Mon Sep 17 00:00:00 2001
From: Michal Suchanek 
Date: Mon, 14 Nov 2016 17:28:31 +0100
Subject: [PATCH] Fix 32bit build.
References: gh#sahlberg/libiscsi#221, boo#1009456

Signed-off-by: Michal Suchanek 
---
 lib/iser.c| 7 ---
 test-tool/test_compareandwrite_invalid_dataout_size.c | 4 ++--
 test-tool/test_writesame10_invalid_dataout_size.c | 4 ++--
 test-tool/test_writesame16_invalid_dataout_size.c | 4 ++--
 4 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/lib/iser.c b/lib/iser.c
index ad3adb3..17832c3 100644
--- a/lib/iser.c
+++ b/lib/iser.c
@@ -23,6 +23,7 @@
 #include 
 #include 
 #include 
+#include 
 #include "iscsi.h"
 #include "iser-private.h"
 #include "iscsi-private.h"
@@ -524,7 +525,7 @@ iser_prepare_read_cmd(struct iser_conn *iser_conn,struct 
iser_pdu *iser_pdu)
}
 
tx_desc->data_dir = DATA_READ;
-   hdr->read_va = htobe64((uint64_t)tx_desc->data_buff);
+   hdr->read_va = htobe64((intptr_t)tx_desc->data_buff);
hdr->read_stag = htobe32((uint32_t)tx_desc->data_mr->rkey);
hdr->flags |= ISER_RSV;
 
@@ -565,7 +566,7 @@ iser_prepare_write_cmd(struct iser_conn *iser_conn, struct 
iser_pdu *iser_pdu)
 
hdr->flags |= ISER_WSV;
hdr->write_stag = htobe32((uint32_t)(tx_desc->data_mr->rkey));
-   hdr->write_va   = htobe64((uint64_t)(tx_desc->data_buff));
+   hdr->write_va   = htobe64((intptr_t)(tx_desc->data_buff));
 
return 0;
 }
@@ -1146,7 +1147,7 @@ static int iser_handle_wc(struct ibv_wc *wc,struct 
iser_conn *iser_conn)
wc->wr_id, wc->status, wc->vendor_err);
return iscsi_service_reconnect_if_loggedin(iscsi);
} else {
-   iscsi_set_error(iscsi, "flush error: wr id %lx\n", 
wc->wr_id);
+   iscsi_set_error(iscsi, "flush error: wr id %" PRIx64 
"\n", wc->wr_id);
 
return 0;
}
diff --git a/test-tool/test_compareandwrite_invalid_dataout_size.c 
b/test-tool/test_compareandwrite_invalid_dataout_size.c
index b27b4f8..76da1e0 100644
--- a/test-tool/test_compareandwrite_invalid_dataout_size.c
+++ b/test-tool/test_compareandwrite_invalid_dataout_size.c
@@ -64,7 +64,7 @@ test_compareandwrite_invalid_dataout_size(void)
 
 
 logging(LOG_VERBOSE, "Check too small DataOut");
-logging(LOG_VERBOSE, "COMPAREANDWRITE with DataOut==%ld (4 blocks) "
+logging(LOG_VERBOSE, "COMPAREANDWRITE with DataOut==%zd (4 blocks) "
 "and TL == 1 ", 4 * block_size);
 
 new_tl = 1;
@@ -74,7 +74,7 @@ test_compareandwrite_invalid_dataout_size(void)
 EXPECT_STATUS_GENERIC_BAD);
 
 logging(LOG_VERBOSE, "Check too large DataOut");
-logging(LOG_VERBOSE, "COMPAREANDWRITE with DataOut==%ld (4 blocks) "
+logging(LOG_VERBOSE, "COMPAREANDWRITE with DataO

commit libiscsi for openSUSE:Factory

2016-11-08 Thread h_root
Hello community,

here is the log from the commit of package libiscsi for openSUSE:Factory 
checked in at 2016-11-08 18:25:59

Comparing /work/SRC/openSUSE:Factory/libiscsi (Old)
 and  /work/SRC/openSUSE:Factory/.libiscsi.new (New)


Package is "libiscsi"

Changes:

--- /work/SRC/openSUSE:Factory/libiscsi/libiscsi.changes2016-05-11 
16:38:06.0 +0200
+++ /work/SRC/openSUSE:Factory/.libiscsi.new/libiscsi.changes   2016-11-08 
18:26:00.0 +0100
@@ -1,0 +2,18 @@
+Sun Nov  6 16:31:38 UTC 2016 - mplus...@suse.com
+
+- Exclued from building on 32 bit architectures
+
+---
+Sun Nov  6 12:12:45 UTC 2016 - jeng...@inai.de
+
+- Resolve orthographic problems in description
+
+---
+Sun Nov  6 09:03:20 UTC 2016 - mplus...@suse.com
+
+- Update to version 1.18.0:
+  * Various test updates
+  * Add support for iSER
+  * Add support for zero-copy reads
+
+---

Old:

  libiscsi-1.17.0.tar.gz

New:

  libiscsi-1.18.0.tar.gz



Other differences:
--
++ libiscsi.spec ++
--- /var/tmp/diff_new_pack.RDNfVz/_old  2016-11-08 18:26:01.0 +0100
+++ /var/tmp/diff_new_pack.RDNfVz/_new  2016-11-08 18:26:01.0 +0100
@@ -16,9 +16,9 @@
 #
 
 
-%define libname %{name}7
+%define sover 8
 Name:   libiscsi
-Version:1.17.0
+Version:1.18.0
 Release:0
 Summary:iSCSI client library and utilities
 License:GPL-2.0 and LGPL-2.1
@@ -28,38 +28,43 @@
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  bc
-BuildRequires:  cunit-devel
+BuildRequires:  librdmacm-devel
 BuildRequires:  libtool
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
+BuildRequires:  pkgconfig(cunit)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+ExcludeArch:%{arm} %{ix86} ppc
 
 %description
-Libiscsi is a clientside library to implement the iSCSI protocol
-that can be used to access resource of an iSCSI Target.
+libiscsi is a clientside library to implement the iSCSI protocol
+that can be used to access resource of an iSCSI target.
 
-%package -n %{libname}
+%package -n %{name}%{sover}
 Summary:iSCSI client library and utilities
 Group:  System/Libraries
 
-%description -n %{libname}
-Libiscsi is a clientside library to implement the iSCSI protocol
-that can be used to access resource of an iSCSI Target.
-
-The library is fully async with regards to iscsi commands and scsi
-tasks, but a sync layer is also provided for ease of use for simpler
-applications.
+%description -n %{name}%{sover}
+libiscsi is a clientside library to implement the iSCSI protocol
+that can be used to access resource of an iSCSI target.
+
+The library is fully asynchronous with regards to iSCSI commands and
+SCSI tasks, but a synchronous layer is also provided for ease of use
+for simpler applications.
 
 %package utils
 Summary:Some utilities for %{name}
 Group:  Productivity/Networking/Other
 
 %description utils
-Some utilities for %{name}
+libiscsi is a clientside library to implement the iSCSI protocol that can
+be used to access resource of an iSCSI target.
+
+This package contains utilities based on %{name}.
 
 %package devel
 Summary:Development files for %{name}
 Group:  Development/Languages/C and C++
-Requires:   %{libname} = %{version}
+Requires:   %{name}%{sover} = %{version}
 
 %description devel
 Development files for %{name}
@@ -82,17 +87,16 @@
 make %{?_smp_mflags}
 
 %install
-make DESTDIR=%{buildroot} install %{?_smp_mflags}
+make %{?_smp_mflags} DESTDIR=%{buildroot} install
 mv "%{buildroot}/%{_bindir}/ld_iscsi.so" "%{buildroot}/%{_libdir}/"
 find %{buildroot} -type f -name "*.la" -delete -print
 
-%post   -n %{libname} -p /sbin/ldconfig
-
-%postun -n %{libname} -p /sbin/ldconfig
+%post   -n %{name}%{sover} -p /sbin/ldconfig
+%postun -n %{name}%{sover} -p /sbin/ldconfig
 
-%files -n %{libname}
+%files -n %{name}%{sover}
 %defattr(-,root,root)
-%{_libdir}/libiscsi.so.7*
+%{_libdir}/libiscsi.so.%{sover}*
 
 %files utils
 %defattr(-,root,root)

++ libiscsi-1.17.0.tar.gz -> libiscsi-1.18.0.tar.gz ++
 7659 lines of diff (skipped)




commit libiscsi for openSUSE:Factory

2016-05-11 Thread h_root
Hello community,

here is the log from the commit of package libiscsi for openSUSE:Factory 
checked in at 2016-05-11 16:38:01

Comparing /work/SRC/openSUSE:Factory/libiscsi (Old)
 and  /work/SRC/openSUSE:Factory/.libiscsi.new (New)


Package is "libiscsi"

Changes:

--- /work/SRC/openSUSE:Factory/libiscsi/libiscsi.changes2016-05-10 
09:27:04.0 +0200
+++ /work/SRC/openSUSE:Factory/.libiscsi.new/libiscsi.changes   2016-05-11 
16:38:06.0 +0200
@@ -1,0 +2,7 @@
+Tue May 10 07:45:44 UTC 2016 - mplus...@suse.com
+
+- Update to 1.17.0 (fate#320080)
+  * Bugfix for a rare condition where if a  DATA-OUT PDU has a 
+callback registered, it can cause a crash on reconnect/timeout.
+
+---

Old:

  libiscsi-1.16.0.tar.gz

New:

  libiscsi-1.17.0.tar.gz



Other differences:
--
++ libiscsi.spec ++
--- /var/tmp/diff_new_pack.8XplQ2/_old  2016-05-11 16:38:07.0 +0200
+++ /var/tmp/diff_new_pack.8XplQ2/_new  2016-05-11 16:38:07.0 +0200
@@ -18,7 +18,7 @@
 
 %define libname %{name}7
 Name:   libiscsi
-Version:1.16.0
+Version:1.17.0
 Release:0
 Summary:iSCSI client library and utilities
 License:GPL-2.0 and LGPL-2.1
@@ -59,7 +59,7 @@
 %package devel
 Summary:Development files for %{name}
 Group:  Development/Languages/C and C++
-Requires:   %{libname} = %{version}-%{release}
+Requires:   %{libname} = %{version}
 
 %description devel
 Development files for %{name}

++ libiscsi-1.16.0.tar.gz -> libiscsi-1.17.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libiscsi-1.16.0/include/iscsi-private.h 
new/libiscsi-1.17.0/include/iscsi-private.h
--- old/libiscsi-1.16.0/include/iscsi-private.h 2016-05-02 00:55:58.0 
+0200
+++ new/libiscsi-1.17.0/include/iscsi-private.h 2016-05-08 21:37:59.0 
+0200
@@ -228,8 +228,6 @@
 
 /* There will not be a response to this pdu, so delete it once it is sent on 
the wire. Don't put it on the wait-queue */
 #define ISCSI_PDU_DELETE_WHEN_SENT 0x0001
-/* Don't call the CANCEL callback when the context is destroyed */
-#define ISCSI_PDU_NO_CALLBACK  0x0002
 /* When reconnecting, just drop all these PDUs. Don't re-queue them.
  * This includes any DATA-OUT PDU as well as all NOPs.
  */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libiscsi-1.16.0/lib/Makefile.am 
new/libiscsi-1.17.0/lib/Makefile.am
--- old/libiscsi-1.16.0/lib/Makefile.am 2016-05-02 00:55:58.0 +0200
+++ new/libiscsi-1.17.0/lib/Makefile.am 2016-05-08 21:37:59.0 +0200
@@ -11,7 +11,7 @@
 endif
 
 SOCURRENT=7
-SOREVISON=1
+SOREVISON=2
 SOAGE=0
 libiscsi_la_LDFLAGS = \
-version-info $(SOCURRENT):$(SOREVISON):$(SOAGE) -bindir $(bindir) \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libiscsi-1.16.0/lib/connect.c 
new/libiscsi-1.17.0/lib/connect.c
--- old/libiscsi-1.16.0/lib/connect.c   2016-05-02 00:55:58.0 +0200
+++ new/libiscsi-1.17.0/lib/connect.c   2016-05-08 21:37:59.0 +0200
@@ -270,25 +270,23 @@
 
while ((pdu = iscsi->outqueue)) {
ISCSI_LIST_REMOVE(&iscsi->outqueue, pdu);
-   if ( !(pdu->flags & ISCSI_PDU_NO_CALLBACK)) {
+   if (iscsi->is_loggedin && pdu->callback) {
/* If an error happened during connect/login,
   we don't want to call any of the callbacks.
 */
-   if (iscsi->is_loggedin) {
-   pdu->callback(iscsi, SCSI_STATUS_CANCELLED,
- NULL, pdu->private_data);
-   } 
+   pdu->callback(iscsi, SCSI_STATUS_CANCELLED,
+ NULL, pdu->private_data);
}
iscsi_free_pdu(iscsi, pdu);
}
while ((pdu = iscsi->waitpdu)) {
ISCSI_LIST_REMOVE(&iscsi->waitpdu, pdu);
-   /* If an error happened during connect/login,
-  we don't want to call any of the callbacks.
-*/
-   if (iscsi->is_loggedin) {
+   if (iscsi->is_loggedin && pdu->callback) {
+   /* If an error happened during connect/login,
+  we don't want to call any of the callbacks.
+*/
pdu->callback(iscsi, SCSI_STATUS_CANCELLED,
- NULL, pdu->private_data);
+  

commit libiscsi for openSUSE:Factory

2016-05-10 Thread h_root
Hello community,

here is the log from the commit of package libiscsi for openSUSE:Factory 
checked in at 2016-05-10 09:27:01

Comparing /work/SRC/openSUSE:Factory/libiscsi (Old)
 and  /work/SRC/openSUSE:Factory/.libiscsi.new (New)


Package is "libiscsi"

Changes:

--- /work/SRC/openSUSE:Factory/libiscsi/libiscsi.changes2015-12-01 
09:18:42.0 +0100
+++ /work/SRC/openSUSE:Factory/.libiscsi.new/libiscsi.changes   2016-05-10 
09:27:04.0 +0200
@@ -1,0 +2,12 @@
+Thu May  5 16:28:17 UTC 2016 - mplus...@suse.com
+
+- Update to 1.16.0
+  * Various test updates.
+  * Add tests for ExtendedCopy and ReceiveCopyResults
+  * Add support for WRITE_ATOMIC_16 and tests
+  * Multipath tests added
+  * Persistent Reservation test updates.
+  * Make sure to process target NOPs in the tests
+  * Fix broken CHAP has handling.
+
+---

Old:

  1.15.0.tar.gz

New:

  libiscsi-1.16.0.tar.gz



Other differences:
--
++ libiscsi.spec ++
--- /var/tmp/diff_new_pack.y9OYQ1/_old  2016-05-10 09:27:05.0 +0200
+++ /var/tmp/diff_new_pack.y9OYQ1/_new  2016-05-10 09:27:05.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libiscsi
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,15 +16,15 @@
 #
 
 
-%define libname %{name}4
+%define libname %{name}7
 Name:   libiscsi
-Version:1.15.0
+Version:1.16.0
 Release:0
 Summary:iSCSI client library and utilities
 License:GPL-2.0 and LGPL-2.1
 Group:  Development/Libraries/C and C++
 Url:https://github.com/sahlberg/libiscsi
-Source: https://github.com/sahlberg/libiscsi/archive/%{version}.tar.gz
+Source: 
https://github.com/sahlberg/libiscsi/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  bc
@@ -59,7 +59,7 @@
 %package devel
 Summary:Development files for %{name}
 Group:  Development/Languages/C and C++
-Requires:   %{libname} = %{version}
+Requires:   %{libname} = %{version}-%{release}
 
 %description devel
 Development files for %{name}
@@ -92,7 +92,7 @@
 
 %files -n %{libname}
 %defattr(-,root,root)
-%{_libdir}/libiscsi.so.4*
+%{_libdir}/libiscsi.so.7*
 
 %files utils
 %defattr(-,root,root)