Browse code

Update sg3_utils and patch rescan-scsi-bus script

Change-Id: Ia59514fe7d92393eaecdd5ab58a93a96589249cf
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3945
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Sharath George

Vinay Kulkarni authored on 2017/10/04 04:28:27
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,11 @@
0
+diff -uNr sg3_utils-1.43/scripts/rescan-scsi-bus.sh sg3_utils-1.43-fix/scripts/rescan-scsi-bus.sh
1
+--- sg3_utils-1.43/scripts/rescan-scsi-bus.sh	2016-02-18 05:48:05.000000000 +0000
2
+@@ -231,6 +231,7 @@
3
+ testonline ()
4
+ {
5
+   : testonline
6
++  ctr=0
7
+   RC=0
8
+   # Set default values
9
+   IPTYPE=31
... ...
@@ -1,13 +1,14 @@
1
-Summary:	Tools and Utilities for interaction with SCSI devices.
2
-Name:		sg3_utils
3
-Version:	1.42
4
-Release:	2%{?dist}
5
-License:	GPLv2
6
-URL:		http://sg.danny.cz/sg/sg3_utils.html
7
-Source0:	http://sg.danny.cz/sg/p/sg3_utils-1.42.tar.xz
8
-%define sha1 sg3_utils=7af36a62d10e2f078b5c96b18e5e3f4f6143f648
9
-Group:		System/Tools.
10
-Vendor:		VMware, Inc.
1
+Summary:        Tools and Utilities for interaction with SCSI devices.
2
+Name:           sg3_utils
3
+Version:        1.43
4
+Release:        1%{?dist}
5
+License:        BSD
6
+URL:            https://github.com/hreinecke/sg3_utils
7
+Source0:        %{name}-%{version}.tar.gz
8
+%define sha1 sg3_utils=235b2d4ebe506ba23fd7960ff9541830e72d305f
9
+Patch0:         sg3_utils-ctr-init.patch
10
+Group:          System/Tools.
11
+Vendor:         VMware, Inc.
11 12
 Distribution:   Photon
12 13
 Provides:       sg_utils.
13 14
 
... ...
@@ -23,6 +24,7 @@ Package containing static library object for development.
23 23
 
24 24
 %prep
25 25
 %setup -q
26
+%patch0 -p1
26 27
 
27 28
 %build
28 29
 %configure
... ...
@@ -36,7 +38,6 @@ install -m 755 scripts/rescan-scsi-bus.sh %{buildroot}/%{_bindir}
36 36
 
37 37
 %postun -p /sbin/ldconfig
38 38
 
39
-
40 39
 %files
41 40
 %defattr(-,root,root)
42 41
 %{_bindir}/*
... ...
@@ -51,7 +52,9 @@ install -m 755 scripts/rescan-scsi-bus.sh %{buildroot}/%{_bindir}
51 51
 %{_includedir}/scsi/*
52 52
 
53 53
 %changelog
54
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.42-2
55
--	GA - Bump release of all rpms
56
-*	Thu Apr 14 2016 Kumar Kaushik <kaushikk@vmware.com> 1.42-1
57
--	Initial build. First version
54
+*   Tue Oct 03 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.43-1
55
+-   Update to v1.43
56
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.42-2
57
+-   GA - Bump release of all rpms
58
+*   Thu Apr 14 2016 Kumar Kaushik <kaushikk@vmware.com> 1.42-1
59
+-   Initial build. First version