Accepting request 941380 from home:AndreasStieger:branches:Base:System

libstoragemgmt 1.9.3

OBS-URL: https://build.opensuse.org/request/show/941380
OBS-URL: https://build.opensuse.org/package/show/Base:System/libstoragemgmt?expand=0&rev=82
This commit is contained in:
Martin Pluskal 2021-12-27 12:11:25 +00:00 committed by Git OBS Bridge
parent f29544630f
commit 9156d3c76c
5 changed files with 53 additions and 38 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0afd17fbce2776373b65c0f9bceec1496c5977210d6b2fc81c55ac18050dc128
size 1048895

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:171e29e0e0d886bc04121b5e41a78e904b73421f3787b56f48b743dd2d29369f
size 1054617

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Sat Dec 18 07:37:24 UTC 2021 - Andreas Stieger <andreas.stieger@gmx.de>
- update to 1.9.3:
* Fix endianess issues for big endian
* Fix megaraid plugin for volume_raid_info for RAID10, add test
* Megaraid, changes to support latest storcli utility
* Misc. CI test improvements, code clean-up
-------------------------------------------------------------------
Sun Jun 13 13:26:31 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>

View File

@ -26,7 +26,7 @@
%define python3 0
%endif
Name: libstoragemgmt
Version: 1.9.2
Version: 1.9.3
Release: 0
Summary: Storage array management library
License: GPL-2.0-or-later AND LGPL-2.1-or-later
@ -40,13 +40,17 @@ BuildRequires: gcc-c++
BuildRequires: libconfig-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: sysuser-tools
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(udev)
BuildRequires: sysuser-tools
# Packages that have been removed
Obsoletes: %{name}-netapp-plugin < %{version}-%{release}
Obsoletes: %{name}-nfs-plugin-clibs < %{version}-%{release}
Obsoletes: %{name}-nstor-plugin < %{version}-%{release}
%sysusers_requires
%systemd_requires
%if 0%{python3}
@ -73,11 +77,6 @@ BuildRequires: procps
BuildRequires: valgrind
BuildRequires: pkgconfig(check)
%endif
# Packages that have been removed
Obsoletes: %{name}-netapp-plugin < %{version}-%{release}
Obsoletes: %{name}-nfs-plugin-clibs < %{version}-%{release}
Obsoletes: %{name}-nstor-plugin < %{version}-%{release}
%if 0%{python3}
Obsoletes: python3-%{name}-clibs < %{version}-%{release}
%else
@ -295,7 +294,7 @@ install -m 644 tools/udev/90-scsi-ua.rules \
%{buildroot}%{_udevrulesdir}/90-scsi-ua.rules
install -m 755 tools/udev/scan-scsi-target \
%{buildroot}%{_prefix}/lib/udev/scan-scsi-target
mkdir -p %{buildroot}%{_sysusersdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/
@ -425,7 +424,7 @@ fi
%files
%{_mandir}/man1/lsmcli.1%{?ext_man}
%{_mandir}/man1/lsmd.1%{?ext_man}
%{_mandir}/man5/lsmd.conf.5*
%{_mandir}/man5/lsmd.conf.5%{?ext_man}
%{_bindir}/lsmcli
%{_bindir}/lsmd
%{_bindir}/simc_lsmplugin

View File

@ -1,8 +1,9 @@
bsc#1185067, migrate /var/run to /run.
diff -Naur libstoragemgmt-1.9.1.orig/c_binding/lsm_datatypes.cpp libstoragemgmt-1.9.1/c_binding/lsm_datatypes.cpp
--- libstoragemgmt-1.9.1.orig/c_binding/lsm_datatypes.cpp 2021-04-22 14:40:32.652139249 +0800
+++ libstoragemgmt-1.9.1/c_binding/lsm_datatypes.cpp 2021-04-22 14:47:32.747146709 +0800
Index: libstoragemgmt-1.9.3/c_binding/lsm_datatypes.cpp
===================================================================
--- libstoragemgmt-1.9.3.orig/c_binding/lsm_datatypes.cpp
+++ libstoragemgmt-1.9.3/c_binding/lsm_datatypes.cpp
@@ -52,7 +52,7 @@
#ifdef __cplusplus
extern "C" {
@ -12,9 +13,10 @@ diff -Naur libstoragemgmt-1.9.1.orig/c_binding/lsm_datatypes.cpp libstoragemgmt-
int lsm_string_list_append(lsm_string_list *sl, const char *value) {
int rc = LSM_ERR_INVALID_ARGUMENT;
diff -Naur libstoragemgmt-1.9.1.orig/daemon/lsm_daemon.c libstoragemgmt-1.9.1/daemon/lsm_daemon.c
--- libstoragemgmt-1.9.1.orig/daemon/lsm_daemon.c 2021-04-22 14:40:32.644139192 +0800
+++ libstoragemgmt-1.9.1/daemon/lsm_daemon.c 2021-04-22 14:47:47.095249430 +0800
Index: libstoragemgmt-1.9.3/daemon/lsm_daemon.c
===================================================================
--- libstoragemgmt-1.9.3.orig/daemon/lsm_daemon.c
+++ libstoragemgmt-1.9.3/daemon/lsm_daemon.c
@@ -44,7 +44,7 @@
#include <syslog.h>
#include <unistd.h>
@ -24,17 +26,19 @@ diff -Naur libstoragemgmt-1.9.1.orig/daemon/lsm_daemon.c libstoragemgmt-1.9.1/da
#define SOCKET_DIR BASE_DIR "/ipc"
#define PLUGIN_DIR "/usr/bin"
#define LSM_USER "libstoragemgmt"
diff -Naur libstoragemgmt-1.9.1.orig/packaging/daemon/libstoragemgmt.conf libstoragemgmt-1.9.1/packaging/daemon/libstoragemgmt.conf
--- libstoragemgmt-1.9.1.orig/packaging/daemon/libstoragemgmt.conf 2021-04-22 14:40:32.648139221 +0800
+++ libstoragemgmt-1.9.1/packaging/daemon/libstoragemgmt.conf 2021-04-22 14:48:46.227672759 +0800
Index: libstoragemgmt-1.9.3/packaging/daemon/libstoragemgmt.conf
===================================================================
--- libstoragemgmt-1.9.3.orig/packaging/daemon/libstoragemgmt.conf
+++ libstoragemgmt-1.9.3/packaging/daemon/libstoragemgmt.conf
@@ -1,2 +1,2 @@
-D /var/run/lsm 0775 root libstoragemgmt -
-D /var/run/lsm/ipc 0775 root libstoragemgmt -
+D /run/lsm 0775 root libstoragemgmt -
+D /run/lsm/ipc 0775 root libstoragemgmt -
diff -Naur libstoragemgmt-1.9.1.orig/packaging/daemon/libstoragemgmtd libstoragemgmt-1.9.1/packaging/daemon/libstoragemgmtd
--- libstoragemgmt-1.9.1.orig/packaging/daemon/libstoragemgmtd 2021-04-22 14:40:32.648139221 +0800
+++ libstoragemgmt-1.9.1/packaging/daemon/libstoragemgmtd 2021-04-22 14:49:33.028007801 +0800
Index: libstoragemgmt-1.9.3/packaging/daemon/libstoragemgmtd
===================================================================
--- libstoragemgmt-1.9.3.orig/packaging/daemon/libstoragemgmtd
+++ libstoragemgmt-1.9.3/packaging/daemon/libstoragemgmtd
@@ -15,7 +15,7 @@
NAME=lsmd
@ -44,7 +48,7 @@ diff -Naur libstoragemgmt-1.9.1.orig/packaging/daemon/libstoragemgmtd libstorage
LOCK=/var/lock/subsys/libstoragemgmtd
RETVAL=0
@@ -27,8 +27,8 @@
@@ -27,8 +27,8 @@ if [ "`id -u`" != 0 ] ; then
fi
check_dirs() {
@ -55,10 +59,11 @@ diff -Naur libstoragemgmt-1.9.1.orig/packaging/daemon/libstoragemgmtd libstorage
}
status_lsm() {
diff -Naur libstoragemgmt-1.9.1.orig/packaging/libstoragemgmt.spec libstoragemgmt-1.9.1/packaging/libstoragemgmt.spec
--- libstoragemgmt-1.9.1.orig/packaging/libstoragemgmt.spec 2021-04-22 14:40:32.648139221 +0800
+++ libstoragemgmt-1.9.1/packaging/libstoragemgmt.spec 2021-04-22 14:56:16.814918561 +0800
@@ -265,7 +265,7 @@
Index: libstoragemgmt-1.9.3/packaging/libstoragemgmt.spec
===================================================================
--- libstoragemgmt-1.9.3.orig/packaging/libstoragemgmt.spec
+++ libstoragemgmt-1.9.3/packaging/libstoragemgmt.spec
@@ -264,7 +264,7 @@ popd
%pre
getent group libstoragemgmt >/dev/null || groupadd -r libstoragemgmt
getent passwd libstoragemgmt >/dev/null || \
@ -67,10 +72,11 @@ diff -Naur libstoragemgmt-1.9.1.orig/packaging/libstoragemgmt.spec libstoragemgm
-c "daemon account for libstoragemgmt" libstoragemgmt
%post
diff -Naur libstoragemgmt-1.9.1.orig/packaging/libstoragemgmt.spec.in libstoragemgmt-1.9.1/packaging/libstoragemgmt.spec.in
--- libstoragemgmt-1.9.1.orig/packaging/libstoragemgmt.spec.in 2021-04-22 14:40:32.648139221 +0800
+++ libstoragemgmt-1.9.1/packaging/libstoragemgmt.spec.in 2021-04-22 14:56:24.466975698 +0800
@@ -265,7 +265,7 @@
Index: libstoragemgmt-1.9.3/packaging/libstoragemgmt.spec.in
===================================================================
--- libstoragemgmt-1.9.3.orig/packaging/libstoragemgmt.spec.in
+++ libstoragemgmt-1.9.3/packaging/libstoragemgmt.spec.in
@@ -264,7 +264,7 @@ popd
%pre
getent group libstoragemgmt >/dev/null || groupadd -r libstoragemgmt
getent passwd libstoragemgmt >/dev/null || \
@ -79,11 +85,12 @@ diff -Naur libstoragemgmt-1.9.1.orig/packaging/libstoragemgmt.spec.in libstorage
-c "daemon account for libstoragemgmt" libstoragemgmt
%post
diff -Naur libstoragemgmt-1.9.1.orig/python_binding/lsm/_common.py libstoragemgmt-1.9.1/python_binding/lsm/_common.py
--- libstoragemgmt-1.9.1.orig/python_binding/lsm/_common.py 2021-04-22 14:40:32.648139221 +0800
+++ libstoragemgmt-1.9.1/python_binding/lsm/_common.py 2021-04-22 14:50:10.312274721 +0800
@@ -153,7 +153,7 @@
return getattr(self.proxied_obj, _proxy_method_name)(*args, **kwargs)
Index: libstoragemgmt-1.9.3/python_binding/lsm/_common.py
===================================================================
--- libstoragemgmt-1.9.3.orig/python_binding/lsm/_common.py
+++ libstoragemgmt-1.9.3/python_binding/lsm/_common.py
@@ -151,7 +151,7 @@ class Proxy(object):
# variable in client and specified on the command line for the daemon
-UDS_PATH = '/var/run/lsm/ipc'