Hello community, here is the log from the commit of package tcmu-runner for openSUSE:Factory checked in at 2017-05-17 10:54:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tcmu-runner (Old) and /work/SRC/openSUSE:Factory/.tcmu-runner.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tcmu-runner" Wed May 17 10:54:21 2017 rev:2 rq:494985 version:1.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/tcmu-runner/tcmu-runner.changes 2016-10-31 09:55:53.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.tcmu-runner.new/tcmu-runner.changes 2017-05-17 10:54:22.842603393 +0200 @@ -1,0 +2,36 @@ +Mon May 15 16:14:50 UTC 2017 - [email protected] + +- Make Ceph RBD handler aarch64 and x86-64 only for now + + librbd isn't yet available for all platforms + +------------------------------------------------------------------- +Thu May 11 20:46:08 UTC 2017 - [email protected] + +- Build the Ceph RBD handler and package separately; (fate#322524). +- Split the GlusterFS handler into a separate package + + avoid adding an unnecessary dependencies to tcmu-runner core + +------------------------------------------------------------------- +Thu May 11 17:25:11 UTC 2017 - [email protected] + +- Explicitly disable the GlusterFS handler for SLE builds. + +------------------------------------------------------------------- +Thu May 11 15:12:24 UTC 2017 - [email protected] + +- Update to upstream version 1.2.0; (bsc#1038712). + + Add remove devices when tcmulib teardown + + fix builds done outside of source directory + + free tcmu_device after dev->fd is closed + + fix Read_Capacity_16 + + detect INQURY response truncation + + fix incorrect memcpy length + + fix inquiry buffer length calculations + + add tcmu.conf for log level configuration +- Remove upstreamed fixes: + + tcmu-runner-include-falloc-in-qcow.patch + + tcmu-runner-let-cmake-install-man-page.patch + + tcmu-runner-Use-CMake-FULL-library-directory-for-SOs.patch + + include-tcmu-runner-h-in-install.patch + +------------------------------------------------------------------- Old: ---- include-tcmu-runner-h-in-install.patch tcmu-runner-1.0.4.tar.gz tcmu-runner-Use-CMake-FULL-library-directory-for-SOs.patch tcmu-runner-include-falloc-in-qcow.patch tcmu-runner-let-cmake-install-man-page.patch New: ---- tcmu-runner-1.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tcmu-runner.spec ++++++ --- /var/tmp/diff_new_pack.uXoIwb/_old 2017-05-17 10:54:23.446518435 +0200 +++ /var/tmp/diff_new_pack.uXoIwb/_new 2017-05-17 10:54:23.450517872 +0200 @@ -1,7 +1,7 @@ # # spec file for package tcmu-runner # -# 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,8 +16,18 @@ # +%if 0%{?sle_version} == 0 +%define build_handler_glusterfs 1 +%endif + +%if 0%{?sle_version} == 0 || 0%{?sle_version} >= 120300 +%ifarch aarch64 x86_64 +%define build_handler_rbd 1 +%endif +%endif + Name: tcmu-runner -Version: 1.0.4 +Version: 1.2.0 Release: 0 Summary: A userspace daemon that handles the LIO TCM-User backstore License: Apache-2.0 @@ -25,15 +35,16 @@ Url: https://github.com/agrover/%{name} Source: %{name}-%{version}.tar.gz Patch1: %{name}-handler_file-add-libtcmu.patch -Patch2: %{name}-include-falloc-in-qcow.patch -Patch3: %{name}-let-cmake-install-man-page.patch -Patch4: %{name}-Use-CMake-FULL-library-directory-for-SOs.patch -Patch5: include-tcmu-runner-h-in-install.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake BuildRequires: glib2-devel BuildRequires: glibc-devel +%if 0%{?build_handler_glusterfs} BuildRequires: glusterfs-devel +%endif +%if 0%{?build_handler_rbd} +BuildRequires: librbd-devel +%endif BuildRequires: libkmod-devel BuildRequires: libnl3-devel BuildRequires: systemd-rpm-macros @@ -77,25 +88,58 @@ This package contains the runtime library development files for tcmu-runner. -%package -n tcmu-runner-devel +%package devel Summary: Development files for tcmu-runner Group: Development/Libraries/C and C++ Requires: tcmu-runner = %{version} -%description -n tcmu-runner-devel +%description devel These are the development files for tcmu-runner. +%if 0%{?build_handler_glusterfs} +%package handler-glusterfs +Summary: GlusterFS handler for tcmu-runner +Group: System/Libraries +Requires: tcmu-runner = %{version} + +%description handler-glusterfs +This package contains the GlusterFS handler for tcmu-runner, which +allows for LIO/tcmu logical units to be backed by GlusterFS provisioned +storage. +%endif + +%if 0%{?build_handler_rbd} +%package handler-rbd +Summary: Ceph RBD handler for tcmu-runner +Group: System/Libraries +Requires: tcmu-runner = %{version} + +%description handler-rbd +This package contains the Ceph RADOS Block Device (RBD) handler for +tcmu-runner, which allows for LIO/tcmu logical units to be backed by +RBD images. +%endif + %prep %setup %patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 %build +CMAKE_OPTIONS="\ + -DSUPPORT_SYSTEMD=1 \ +%if 0%{?build_handler_glusterfs} + -Dwith-glfs=1 \ +%else + -Dwith-glfs=0 \ +%endif +%if 0%{?build_handler_rbd} + -Dwith-rbd=1 \ +%else + -Dwith-rbd=0 \ +%endif +" %cmake -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \ - -DSUPPORT_SYSTEMD="true" + ${CMAKE_OPTIONS} make %{?_smp_mflags} %install @@ -127,7 +171,7 @@ %{_sbindir}/rctcmu-runner %doc README.md LICENSE %dir %{_libdir}/tcmu-runner -%{_libdir}/tcmu-runner/handler_*.so +%{_libdir}/tcmu-runner/handler_qcow.so %dir %{_datadir}/dbus-1 %dir %{_datadir}/dbus-1/system-services %{_datadir}/dbus-1/system-services/org.kernel.TCMUService1.service @@ -140,14 +184,26 @@ %files -n libtcmu1 %defattr(-,root,root) %{_libdir}/libtcmu.so.1 +%dir %{_sysconfdir}/tcmu +%config(noreplace) %{_sysconfdir}/tcmu/tcmu.conf %files -n libtcmu-devel %defattr(-,root,root) %{_includedir}/libtcmu*.h %{_libdir}/libtcmu.so -%files -n tcmu-runner-devel +%files devel %defattr(-,root,root) %{_includedir}/tcmu-runner.h +%if 0%{?build_handler_glusterfs} +%files handler-glusterfs +%{_libdir}/tcmu-runner/handler_glfs.so +%endif + +%if 0%{?build_handler_rbd} +%files handler-rbd +%{_libdir}/tcmu-runner/handler_rbd.so +%endif + %changelog ++++++ tcmu-runner-1.0.4.tar.gz -> tcmu-runner-1.2.0.tar.gz ++++++ ++++ 6881 lines of diff (skipped) ++++++ tcmu-runner-handler_file-add-libtcmu.patch ++++++ --- /var/tmp/diff_new_pack.uXoIwb/_old 2017-05-17 10:54:23.586498742 +0200 +++ /var/tmp/diff_new_pack.uXoIwb/_new 2017-05-17 10:54:23.586498742 +0200 @@ -1,7 +1,8 @@ -diff -aurp tcmu-runner-1.0.4.orig/CMakeLists.txt tcmu-runner-1.0.4/CMakeLists.txt ---- tcmu-runner-1.0.4.orig/CMakeLists.txt 2016-04-06 12:09:47.000000000 -0700 -+++ tcmu-runner-1.0.4/CMakeLists.txt 2016-05-05 09:03:41.001252082 -0700 -@@ -91,6 +91,7 @@ add_library(handler_file +Index: tcmu-runner-1.2.0/CMakeLists.txt +=================================================================== +--- tcmu-runner-1.2.0.orig/CMakeLists.txt ++++ tcmu-runner-1.2.0/CMakeLists.txt +@@ -131,6 +131,7 @@ add_library(handler_file SHARED file_example.c )
