diff --git a/.cvsignore b/.cvsignore index 16c9034..5da8dd8 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -tgt-20070803.tar.bz2 +tgt-20071227.tar.bz2 diff --git a/scsi-target-utils.spec b/scsi-target-utils.spec index 57a9ae2..a1ecd78 100644 --- a/scsi-target-utils.spec +++ b/scsi-target-utils.spec @@ -1,8 +1,8 @@ -%define date 20070803 +%define date 20071227 Name: scsi-target-utils Version: 0.0 -Release: 3.%{date}snap%{?dist} +Release: 4.%{date}snap%{?dist} Summary: The SCSI target daemon and utility programs Group: System Environment/Daemons @@ -10,6 +10,7 @@ License: GPLv2 URL: http://stgt.berlios.de Source0: http://stgt.berlios.de/releases/tgt-%{date}.tar.bz2 Source1: tgtd.init +Patch0: tgt-20071227-define.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: openssl-devel pkgconfig @@ -21,6 +22,7 @@ Currently, software iSCSI targets are supported. %prep %setup -q -n tgt-%{date} +%patch -p1 %build if pkg-config openssl ; then @@ -68,6 +70,10 @@ fi %{_initrddir}/tgtd %changelog +* Sun Feb 10 2008 Terje Rosten - 0.0-4.20071227snap +- update to 20071227 snapshot +- add patch to compile with newer glibc + * Sat Feb 9 2008 Terje Rosten - 0.0-3.20070803snap - rebuild diff --git a/sources b/sources index 02bf3cd..9c74f93 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b5f1cbe03ee6b973e0f2ea7184c48dff tgt-20070803.tar.bz2 +938f655338cb86315ef3ff5cabee339e tgt-20071227.tar.bz2 diff --git a/tgt-20071227-define.patch b/tgt-20071227-define.patch new file mode 100644 index 0000000..5651e0a --- /dev/null +++ b/tgt-20071227-define.patch @@ -0,0 +1,33 @@ +diff -uNr -x '*~' tgt-20071227.orig/usr/iscsi/iscsid.c tgt-20071227/usr/iscsi/iscsid.c +--- tgt-20071227.orig/usr/iscsi/iscsid.c 2007-12-27 04:31:37.000000000 +0100 ++++ tgt-20071227/usr/iscsi/iscsid.c 2008-02-10 19:08:40.000000000 +0100 +@@ -24,6 +24,7 @@ + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA + */ ++#define _GNU_SOURCE 1 + #include + #include + #include +diff -uNr -x '*~' tgt-20071227.orig/usr/iscsi/isns.c tgt-20071227/usr/iscsi/isns.c +--- tgt-20071227.orig/usr/iscsi/isns.c 2007-12-27 04:31:37.000000000 +0100 ++++ tgt-20071227/usr/iscsi/isns.c 2008-02-10 19:11:53.000000000 +0100 +@@ -19,6 +19,7 @@ + * 02110-1301 USA + */ + ++#define _GNU_SOURCE 1 + #include + #include + #include +diff -uNr -x '*~' tgt-20071227.orig/usr/mgmt.c tgt-20071227/usr/mgmt.c +--- tgt-20071227.orig/usr/mgmt.c 2007-12-27 04:31:37.000000000 +0100 ++++ tgt-20071227/usr/mgmt.c 2008-02-10 19:12:21.000000000 +0100 +@@ -19,6 +19,7 @@ + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA + */ ++#define _GNU_SOURCE 1 + #include + #include + #include