2018-02-12 09:12:20 +00:00
committed by Git OBS Bridge
6 changed files with 49 additions and 28 deletions

View File

@@ -6,6 +6,13 @@
<param name="filename">sg3_utils</param>
<param name="version">1.43</param>
<param name="revision">factory</param>
<!-- Enable the following to include git tag offset+commit id in
version number -->
<!--
<param name="versionformat">1.43+@TAG_OFFSET@.%h</param>
<param name="match-tag">v1.[0-9][0-9]</param>
<param name="changesgenerate">enable</param>
-->
</service>
<service name="recompress" mode="disabled">
<param name="file">*sg3_utils*.tar</param>

2
dracut.conf Normal file
View File

@@ -0,0 +1,2 @@
# Add new rules file to ensure consistency
install_items+=" /usr/lib/udev/rules.d/54-before-scsi-sg3_id.rules"

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dc6f3e8842d6721d864f7de7164edb1edcb35754de7a4fe27d9cada7669a3b2b
size 811812
oid sha256:8370b094af95c95180ccb374938a9119a3482438b4579409469ee4f2526fa3cf
size 878964

View File

@@ -1,3 +1,32 @@
-------------------------------------------------------------------
Fri Feb 9 13:53:43 CET 2018 - hare@suse.de
- Update to svn r751:
* NVMe bugfixes
* sg_seek: new utility
* sg_stream_ctl: new utility program
- 54-before-scsi-sg3_id.rules: compability rule for systemd
(bsc#1079873)
- Add dracut.conf to install new rule with dracut
-------------------------------------------------------------------
Thu Feb 8 15:37:33 CET 2018 - hare@suse.de
- Merge local patch with git repository
* Delete sgut-libversioning.diff
-------------------------------------------------------------------
Wed Feb 7 16:12:10 CET 2018 - hare@suse.de
- Update to svn r744:
* sg_write_x: new command for normal/atomic/orwrite etc
SCSI WRITE variants
* sg_ses: add NVMe support
* sg_inq: decode NVMe controller / NSIDs
- rescan_scsi_bus.sh: Fix manpage for --forcerescan
- 55-scsi-sg3_id.rules: fixes for scsi_id compability (bsc#1079873)
- 55-scsi-sg3_id.rules: run sg_inq for SPC devices (bsc#1079873)
-------------------------------------------------------------------
Fri Dec 22 09:31:40 CET 2017 - hare@suse.de

View File

@@ -1,7 +1,7 @@
#
# spec file for package sg3_utils
#
# 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
@@ -26,7 +26,7 @@ Group: Hardware/Other
Url: http://sg.danny.cz/sg/sg3_utils.html
Source: sg3_utils-%{version}.tar.xz
Patch1: sgut-libversioning.diff
Source1: dracut.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libtool
BuildRequires: udev
@@ -85,7 +85,6 @@ applications that want to make use of libsgutils.
%prep
%setup -q
%patch1 -p1
%build
autoreconf -fi
@@ -96,9 +95,12 @@ make %{?_smp_mflags}
%make_install
install -m 644 doc/rescan-scsi-bus.sh.8 $RPM_BUILD_ROOT%{_mandir}/man8
mkdir -p $RPM_BUILD_ROOT%{_udevrulesdir}
install -m 644 scripts/54-before-scsi-sg3_id.rules $RPM_BUILD_ROOT%{_udevrulesdir}
install -m 644 scripts/55-scsi-sg3_id.rules $RPM_BUILD_ROOT%{_udevrulesdir}
install -m 644 scripts/58-scsi-sg3_symlink.rules $RPM_BUILD_ROOT%{_udevrulesdir}
install -m 644 scripts/40-usb-blacklist.rules $RPM_BUILD_ROOT%{_udevrulesdir}
mkdir -p $RPM_BUILD_ROOT/usr/lib/dracut/dracut.conf.d
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/usr/lib/dracut/dracut.conf.d/50-sg3_utils.conf
rm -f %{buildroot}%{_libdir}/*.la
%post
@@ -127,8 +129,12 @@ rm -f %{buildroot}%{_libdir}/*.la
%_bindir/rescan-scsi-bus.sh
%_mandir/man8/*.8*
%{_udevrulesdir}/40-usb-blacklist.rules
%{_udevrulesdir}/54-before-scsi-sg3_id.rules
%{_udevrulesdir}/55-scsi-sg3_id.rules
%{_udevrulesdir}/58-scsi-sg3_symlink.rules
%dir /usr/lib/dracut
%dir /usr/lib/dracut/dracut.conf.d
/usr/lib/dracut/dracut.conf.d/50-sg3_utils.conf
%files -n %lname
%defattr(-,root,root)

View File

@@ -1,23 +0,0 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2015-02-13 15:29:13.225224047 +0100
build: use unique SONAME for libsgutils
sg3_utils has added functions between (for example) 1.36 and 1.39
without tracking them (either by using a different SONAME,
or using ELF symbol versions).
---
lib/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -48,7 +48,7 @@ AM_CFLAGS = -Wall -W
lib_LTLIBRARIES = libsgutils2.la
-libsgutils2_la_LDFLAGS = -version-info 2:0:0 -no-undefined
+libsgutils2_la_LDFLAGS = -version-info 2:0:0 -no-undefined -release ${PACKAGE_VERSION}
libsgutils2_la_LIBADD = @GETOPT_O_FILES@ @os_libs@
libsgutils2_la_DEPENDENCIES = @GETOPT_O_FILES@