Accepting request 72822 from network

Fix build with new glibc. (forwarded request 72748 from a_jaeger)

OBS-URL: https://build.opensuse.org/request/show/72822
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/open-iscsi?expand=0&rev=23
This commit is contained in:
Sascha Peilicke 2011-06-07 07:08:05 +00:00 committed by Git OBS Bridge
commit 35f584c10e
3 changed files with 20 additions and 0 deletions

13
open-iscsi-header.patch Normal file
View File

@ -0,0 +1,13 @@
Index: open-iscsi-2.0-870-rc1/usr/iscsi_sysfs.c
===================================================================
--- open-iscsi-2.0-870-rc1.orig/usr/iscsi_sysfs.c
+++ open-iscsi-2.0-870-rc1/usr/iscsi_sysfs.c
@@ -22,6 +22,8 @@
#include <string.h>
#include <errno.h>
#include <dirent.h>
+#include <sys/stat.h>
+
#include "log.h"
#include "initiator.h"

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 6 09:20:29 UTC 2011 - aj@suse.de
- Fix build with newer glibc.
-------------------------------------------------------------------
Fri Mar 12 18:05:27 CET 2010 - mmarek@suse.cz

View File

@ -62,6 +62,7 @@ Patch26: %{name}-remove-dump-char
Patch27: %{name}-load-ibft-before-reading-sys-firmware
Patch28: %{name}-remove-trailing-tilde
Patch29: open-iscsi-2.0-870-rc1-static.patch
Patch30: %{name}-header.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -120,6 +121,7 @@ Authors:
%patch27 -p1
%patch28 -p1
%patch29
%patch30 -p1
%build
%{__make} OPTFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing -DLOCK_DIR=\\\"/etc/iscsi\\\""