This commit is contained in:
parent
2e54e398f9
commit
439897d4d8
38
futimens.diff
Normal file
38
futimens.diff
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
--- gzip.c
|
||||||
|
+++ gzip.c
|
||||||
|
@@ -1639,7 +1639,7 @@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (futimens (ofd, ofname, timespec) != 0)
|
||||||
|
+ if (gl_futimens (ofd, ofname, timespec) != 0)
|
||||||
|
{
|
||||||
|
int e = errno;
|
||||||
|
WARN ((stderr, "%s: ", program_name));
|
||||||
|
--- lib/utimens.c
|
||||||
|
+++ lib/utimens.c
|
||||||
|
@@ -75,8 +75,8 @@
|
||||||
|
Return 0 on success, -1 (setting errno) on failure. */
|
||||||
|
|
||||||
|
int
|
||||||
|
-futimens (int fd ATTRIBUTE_UNUSED,
|
||||||
|
- char const *file, struct timespec const timespec[2])
|
||||||
|
+gl_futimens (int fd ATTRIBUTE_UNUSED,
|
||||||
|
+ char const *file, struct timespec const timespec[2])
|
||||||
|
{
|
||||||
|
/* Some Linux-based NFS clients are buggy, and mishandle time stamps
|
||||||
|
of files in NFS file systems in some cases. We have no
|
||||||
|
@@ -185,5 +185,5 @@
|
||||||
|
int
|
||||||
|
utimens (char const *file, struct timespec const timespec[2])
|
||||||
|
{
|
||||||
|
- return futimens (-1, file, timespec);
|
||||||
|
+ return gl_futimens (-1, file, timespec);
|
||||||
|
}
|
||||||
|
--- lib/utimens.h
|
||||||
|
+++ lib/utimens.h
|
||||||
|
@@ -1,3 +1,3 @@
|
||||||
|
#include <time.h>
|
||||||
|
-int futimens (int, char const *, struct timespec const [2]);
|
||||||
|
+int gl_futimens (int, char const *, struct timespec const [2]);
|
||||||
|
int utimens (char const *, struct timespec const [2]);
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun May 20 19:17:21 CEST 2007 - schwab@suse.de
|
||||||
|
|
||||||
|
- Fix compiling with glibc 2.6.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Apr 15 00:03:31 CEST 2007 - schwab@suse.de
|
Sun Apr 15 00:03:31 CEST 2007 - schwab@suse.de
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ Group: Productivity/Archiving/Compression
|
|||||||
Autoreqprov: on
|
Autoreqprov: on
|
||||||
PreReq: %{install_info_prereq}
|
PreReq: %{install_info_prereq}
|
||||||
Version: 1.3.12
|
Version: 1.3.12
|
||||||
Release: 1
|
Release: 9
|
||||||
Summary: GNU Zip Compression Utilities
|
Summary: GNU Zip Compression Utilities
|
||||||
Source: %{name}-%{version}.tar.gz
|
Source: %{name}-%{version}.tar.gz
|
||||||
Patch: zgrep.diff
|
Patch: zgrep.diff
|
||||||
@ -25,6 +25,7 @@ Patch1: tempfile.diff
|
|||||||
Patch2: zmore.diff
|
Patch2: zmore.diff
|
||||||
Patch3: non-exec-stack.diff
|
Patch3: non-exec-stack.diff
|
||||||
Patch4: http://rsync.samba.org/ftp/unpacked/rsync/patches/gzip-rsyncable.diff
|
Patch4: http://rsync.samba.org/ftp/unpacked/rsync/patches/gzip-rsyncable.diff
|
||||||
|
Patch5: futimens.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -46,6 +47,7 @@ Authors:
|
|||||||
%patch2
|
%patch2
|
||||||
%patch3
|
%patch3
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
|
%patch5
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer \
|
CFLAGS="$RPM_OPT_FLAGS -fomit-frame-pointer \
|
||||||
@ -105,6 +107,8 @@ ln -sf zmore.1 $RPM_BUILD_ROOT%{_mandir}/man1/zless.1
|
|||||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun May 20 2007 - schwab@suse.de
|
||||||
|
- Fix compiling with glibc 2.6.
|
||||||
* Sun Apr 15 2007 - schwab@suse.de
|
* Sun Apr 15 2007 - schwab@suse.de
|
||||||
- Update to gzip 1.3.12.
|
- Update to gzip 1.3.12.
|
||||||
* znew now uses $TMPDIR (default /tmp) instead of always using /tmp.
|
* znew now uses $TMPDIR (default /tmp) instead of always using /tmp.
|
||||||
|
Loading…
Reference in New Issue
Block a user