Accepting request 238576 from Base:System
1 OBS-URL: https://build.opensuse.org/request/show/238576 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sg3_utils?expand=0&rev=36
This commit is contained in:
12
sg3_utils-fix-missing-rule-for-scsi_serial-partitions.patch
Normal file
12
sg3_utils-fix-missing-rule-for-scsi_serial-partitions.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
Index: sg3_utils-1.39/scripts/58-scsi-sg3_symlink.rules
|
||||
===================================================================
|
||||
--- sg3_utils-1.39/scripts/58-scsi-sg3_symlink.rules
|
||||
+++ sg3_utils-1.39/scripts/58-scsi-sg3_symlink.rules
|
||||
@@ -10,6 +10,7 @@ ENV{DM_MULTIPATH_DEVICE_PATH}=="1", GOTO
|
||||
# Select which identifier to use per default
|
||||
# 0: vpd page 0x80 identifier
|
||||
ENV{SCSI_IDENT_SERIAL}=="?*", ENV{DEVTYPE}=="disk", SYMLINK+="disk/by-id/scsi-S$env{SCSI_VENDOR}_$env{SCSI_MODEL}_$env{SCSI_IDENT_SERIAL}"
|
||||
+ENV{SCSI_IDENT_SERIAL}=="?*", ENV{DEVTYPE}=="partition", SYMLINK+="disk/by-id/scsi-S$env{SCSI_VENDOR}_$env{SCSI_MODEL}_$env{SCSI_IDENT_SERIAL}-part%n"
|
||||
# 1: NAA identifier (prefix 3)
|
||||
ENV{SCSI_IDENT_LUN_NAA}=="?*", ENV{DEVTYPE}=="disk", SYMLINK+="disk/by-id/scsi-3$env{SCSI_IDENT_LUN_NAA}"
|
||||
ENV{SCSI_IDENT_LUN_NAA}=="?*", ENV{DEVTYPE}=="partition", SYMLINK+="disk/by-id/scsi-3$env{SCSI_IDENT_LUN_NAA}-part%n"
|
@@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 25 07:53:48 UTC 2014 - rmilasan@suse.com
|
||||
|
||||
- Fix missing rule for generating links for partitions also (bnc#883032)
|
||||
Add:
|
||||
sg3_utils-fix-missing-rule-for-scsi_serial-partitions.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 20 13:15:12 UTC 2014 - jengelh@inai.de
|
||||
|
||||
- Add symbol versions to library
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 17 09:08:42 UTC 2014 - jengelh@inai.de
|
||||
|
||||
|
@@ -26,6 +26,7 @@ Group: Hardware/Other
|
||||
Url: http://sg.danny.cz/sg/sg3_utils.html
|
||||
|
||||
Source: http://sg.danny.cz/sg/p/%name-%version.tar.xz
|
||||
Patch0: sg3_utils-fix-missing-rule-for-scsi_serial-partitions.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: udev
|
||||
BuildRequires: xz
|
||||
@@ -80,9 +81,14 @@ applications that want to make use of libsgutils.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%configure --disable-static --with-pic
|
||||
# sg3_utils has added functions between (for example) 1.36 and 1.39
|
||||
# without tracking them. Add symvers so RPM updates work in all cases.
|
||||
echo 'V_%version { global: *; };' >symvers
|
||||
make %{?_smp_mflags} -C lib LDFLAGS="-Wl,--version-script=$PWD/symvers"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
|
Reference in New Issue
Block a user