Hello community, here is the log from the commit of package libstoragemgmt for openSUSE:Factory checked in at 2017-04-28 10:53:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libstoragemgmt (Old) and /work/SRC/openSUSE:Factory/.libstoragemgmt.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libstoragemgmt" Fri Apr 28 10:53:15 2017 rev:10 rq:490944 version:1.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/libstoragemgmt/libstoragemgmt.changes 2017-02-07 11:57:00.496525741 +0100 +++ /work/SRC/openSUSE:Factory/.libstoragemgmt.new/libstoragemgmt.changes 2017-04-28 10:53:19.134822014 +0200 @@ -1,0 +2,41 @@ +Tue Apr 25 07:27:25 UTC 2017 - [email protected] + +- Add 0001-Fix-gcc-warning-on-non-x86-platform.patch to fix build in + ppc64le/s390x. + +------------------------------------------------------------------- +Mon Apr 24 11:10:59 UTC 2017 - [email protected] + +- Remove dependency for python-M2Crypto which is no longer needed +- Add python-six dependency + +------------------------------------------------------------------- +Fri Mar 24 10:32:50 UTC 2017 - [email protected] + +- Update to version 1.4.0: + * Add Python3 support. + * Add support of lmiwbem. + * Allow plugin test to be run concurrently. + * Bug fixes: + + Fix megaraid plugin for dell PERC. + + Fix local disk rotation speed query on NVMe disk. + + Fix lsmcli incorrect try-expect on local disk query. + + Fix all the gcc compile warnings. + + Fix the obsolete usage of AC_OUTPUT in configure.ac. + * Library adds: + + Query serial of local disk: + lsm_local_disk_serial_num_get()/lsm.LocalDisk.serial_num_get() + + Query LED status of local disk: + lsm_local_disk_led_status_get()/lsm.LocalDisk.led_status_get() + + Query link speed of local disk: + lsm_local_disk_link_speed_get()/lsm.LocalDisk.link_speed_get() +- Changes for version 1.3.5: + * Bug fixes: + + Fix anon_uid/anon_gid handling. + + Fix HPSA plugin on capabilities, system status, system mode. + + Fix running lsmcli on python 2.6. + + Fix missing vpd83 optional property in C library. + * Enhancements: + + Rewrite C simulator plugin to support state saving. + +------------------------------------------------------------------- Old: ---- libstoragemgmt-1.3.4.tar.gz New: ---- 0001-Fix-gcc-warning-on-non-x86-platform.patch libstoragemgmt-1.4.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libstoragemgmt.spec ++++++ --- /var/tmp/diff_new_pack.xwzpQT/_old 2017-04-28 10:53:20.062690877 +0200 +++ /var/tmp/diff_new_pack.xwzpQT/_new 2017-04-28 10:53:20.066690311 +0200 @@ -1,7 +1,7 @@ # # spec file for package libstoragemgmt # -# 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 @@ -16,51 +16,53 @@ # -%bcond_with test - %define libname %{name}1 +%bcond_with test Name: libstoragemgmt -Version: 1.3.4 +Version: 1.4.0 Release: 0 Summary: Storage array management library License: LGPL-2.1+ Group: System/Libraries Url: https://github.com/libstorage/libstoragemgmt Source0: https://github.com/libstorage/libstoragemgmt/releases/download/%{version}/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM 0001-Fix-gcc-warning-on-non-x86-platform.patch -- Fix build in ppc64le/s390x related to getopt_long +Patch0: 0001-Fix-gcc-warning-on-non-x86-platform.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libconfig-devel BuildRequires: pkgconfig -BuildRequires: python-M2Crypto BuildRequires: python-argparse BuildRequires: python-devel BuildRequires: python-pyudev BuildRequires: python-pywbem -%if %{with test} -BuildRequires: chrpath -BuildRequires: libtool -BuildRequires: perl -BuildRequires: procps -BuildRequires: valgrind -BuildRequires: pkgconfig(check) -%endif +BuildRequires: python-six BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(openssl) +BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(udev) Requires: python-%{name} Requires: python-%{name}-clibs +Requires: python-six +%systemd_requires +%py_requires +%if %{with test} +BuildRequires: chrpath +BuildRequires: libtool +BuildRequires: perl +BuildRequires: procps +BuildRequires: valgrind +BuildRequires: pkgconfig(check) +%endif %if 0%{?suse_version} <= 1320 # For SLE12 and openSUSE 13.2 BuildRequires: libyajl-devel %else BuildRequires: pkgconfig(yajl) %endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%systemd_requires -%py_requires %description The libStorageMgmt library will provide a vendor agnostic open source storage @@ -114,9 +116,9 @@ %package smis-plugin Summary: Files for SMI-S generic array support for %{name} Group: System/Libraries +Requires: python-pywbem Requires(post): %{name} = %{version} Requires(postun): %{name} = %{version} -Requires: python-pywbem BuildArch: noarch %py_requires @@ -129,7 +131,6 @@ Group: System/Libraries Requires(post): %{name} = %{version} Requires(postun): %{name} = %{version} -Requires: python-M2Crypto BuildArch: noarch %py_requires @@ -193,6 +194,7 @@ %prep %setup -q +%patch0 -p1 %build %configure \ @@ -255,7 +257,7 @@ %post %service_add_post %{name}.service # Create tmp socket file on package new install. -if [ $1 -eq 1 -a -x /usr/bin/systemd-tmpfiles ]; then +if [ $1 -eq 1 -a -x %{_bindir}/systemd-tmpfiles ]; then %if 0%{?suse_version} <= 1320 systemd-tmpfiles --create %{_tmpfilesdir}/%{name}.conf || : %else @@ -272,78 +274,83 @@ %post smis-plugin if [ $1 -eq 1 ]; then # New install. - /usr/bin/systemctl try-restart ${name}.service || : + %{_bindir}/systemctl try-restart ${name}.service || : fi %postun smis-plugin if [ $1 -eq 0 ]; then # Remove - /usr/bin/systemctl try-restart ${name}.service || : + %{_bindir}/systemctl try-restart ${name}.service || : fi # Need to restart lsmd if plugin is new installed or removed. + %post netapp-plugin if [ $1 -eq 1 ]; then # New install. - /usr/bin/systemctl try-restart ${name}.service || : + %{_bindir}/systemctl try-restart ${name}.service || : fi %postun netapp-plugin if [ $1 -eq 0 ]; then # Remove - /usr/bin/systemctl try-restart ${name}.service || : + %{_bindir}/systemctl try-restart ${name}.service || : fi # Need to restart lsmd if plugin is new installed or removed. + %post targetd-plugin if [ $1 -eq 1 ]; then # New install. - /usr/bin/systemctl try-restart ${name}.service || : + %{_bindir}/systemctl try-restart ${name}.service || : fi %postun targetd-plugin if [ $1 -eq 0 ]; then # Remove - /usr/bin/systemctl try-restart ${name}.service || : + %{_bindir}/systemctl try-restart ${name}.service || : fi # Need to restart lsmd if plugin is new installed or removed. + %post nstor-plugin if [ $1 -eq 1 ]; then # New install. - /usr/bin/systemctl try-restart ${name}.service || : + %{_bindir}/systemctl try-restart ${name}.service || : fi %postun nstor-plugin if [ $1 -eq 0 ]; then # Remove - /usr/bin/systemctl try-restart ${name}.service || : + %{_bindir}/systemctl try-restart ${name}.service || : fi # Need to restart lsmd if plugin is new installed or removed. + %post megaraid-plugin if [ $1 -eq 1 ]; then # New install. - /usr/bin/systemctl try-restart ${name}.service || : + %{_bindir}/systemctl try-restart ${name}.service || : fi %postun megaraid-plugin if [ $1 -eq 0 ]; then # Remove - /usr/bin/systemctl try-restart ${name}.service || : + %{_bindir}/systemctl try-restart ${name}.service || : fi # Need to restart lsmd if plugin is new installed or removed. + %post hpsa-plugin if [ $1 -eq 1 ]; then # New install. - /usr/bin/systemctl try-restart ${name}.service || : + %{_bindir}/systemctl try-restart ${name}.service || : fi %postun hpsa-plugin if [ $1 -eq 0 ]; then # Remove - /usr/bin/systemctl try-restart ${name}.service || : + %{_bindir}/systemctl try-restart ${name}.service || : fi %post udev @@ -366,7 +373,7 @@ %dir %{_sysconfdir}/lsm/pluginconf.d %{_sbindir}/rclibstoragemgmt %ghost %dir /run/lsm -%ghost /run/lsm/ipc +%ghost %dir /run/lsm/ipc %files udev %defattr(-,root,root) ++++++ 0001-Fix-gcc-warning-on-non-x86-platform.patch ++++++ >From 2a2d9a8200f987b42966ab4e96b7769b8f9a159f Mon Sep 17 00:00:00 2001 From: Gris Ge <[email protected]> Date: Wed, 22 Feb 2017 16:18:20 +0800 Subject: [PATCH] udev: Fix gcc warning on non-x86 platform. Issue: Got failure on s390x: scan-scsi-target.c:90:2: error: comparison is always true due to limited range of data type [-Werror=type-limits] Root cause: The error is on these lines: char c; ... while ((c = getopt_long(argc, argv, "rh", longopts, NULL)) != -1) { On non-x86 platform, char is unsigned. Which makes the (c != -1) always true. Fix: Take return of getopt_long() as int. Signed-off-by: Gris Ge <[email protected]> --- tools/udev/scan-scsi-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/udev/scan-scsi-target.c b/tools/udev/scan-scsi-target.c index bb83c65..00126b9 100644 --- a/tools/udev/scan-scsi-target.c +++ b/tools/udev/scan-scsi-target.c @@ -54,7 +54,7 @@ static void __attribute__ ((__noreturn__)) invalid(char **argv, char *devpath) int main(int argc, char **argv) { - char c; + int c; char *devpath; char *sysfs_path; ++++++ libstoragemgmt-1.3.4.tar.gz -> libstoragemgmt-1.4.0.tar.gz ++++++ ++++ 30973 lines of diff (skipped)
