SHA256
3
0
forked from pool/tar
OBS User unknown 2007-05-22 13:12:10 +00:00 committed by Git OBS Bridge
parent 4400e9c2e7
commit 0d04feafeb
3 changed files with 52 additions and 1 deletions

42
tar-1.6.1-futimens.patch Normal file
View File

@ -0,0 +1,42 @@
Index: tar-1.16.1/lib/utimens.c
===================================================================
--- tar-1.16.1.orig/lib/utimens.c
+++ tar-1.16.1/lib/utimens.c
@@ -73,7 +73,7 @@ struct utimbuf
Return 0 on success, -1 (setting errno) on failure. */
int
-futimens (int fd ATTRIBUTE_UNUSED,
+my_futimens (int fd ATTRIBUTE_UNUSED,
char const *file, struct timespec const timespec[2])
{
/* There's currently no interface to set file timestamps with
@@ -166,5 +166,5 @@ futimens (int fd ATTRIBUTE_UNUSED,
int
utimens (char const *file, struct timespec const timespec[2])
{
- return futimens (-1, file, timespec);
+ return my_futimens (-1, file, timespec);
}
Index: tar-1.16.1/lib/utimens.h
===================================================================
--- tar-1.16.1.orig/lib/utimens.h
+++ tar-1.16.1/lib/utimens.h
@@ -1,3 +1,3 @@
#include "timespec.h"
-int futimens (int, char const *, struct timespec const [2]);
+int my_futimens (int, char const *, struct timespec const [2]);
int utimens (char const *, struct timespec const [2]);
Index: tar-1.16.1/src/misc.c
===================================================================
--- tar-1.16.1.orig/src/misc.c
+++ tar-1.16.1/src/misc.c
@@ -518,7 +518,7 @@ set_file_atime (int fd, char const *file
}
#endif
- return futimens (fd, file, timespec);
+ return my_futimens (fd, file, timespec);
}
/* A description of a working directory. */

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 22 13:37:49 CEST 2007 - mkoenig@suse.de
- fix build
-------------------------------------------------------------------
Tue May 15 19:20:14 CEST 2007 - coolo@suse.de

View File

@ -19,12 +19,13 @@ Provides: base:/bin/tar
PreReq: %install_info_prereq
Autoreqprov: on
Version: 1.16.1
Release: 14
Release: 16
Summary: GNU implementation of tar ((t)ape (ar)chiver)
Source0: %name-%version.tar.bz2
Patch0: tar-disable_languages.patch
Patch1: tar-disable-listed02-test.diff
Patch2: tar-manpage.patch
Patch3: tar-1.6.1-futimens.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define _bindir /bin
@ -63,6 +64,7 @@ Authors:
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
rm -f po/no.* po/ky.*
@ -104,6 +106,8 @@ rm -r %buildroot/usr/libexec
rm -rf $RPM_BUILD_ROOT
%changelog
* Tue May 22 2007 - mkoenig@suse.de
- fix build
* Tue May 15 2007 - coolo@suse.de
- use %%find_lang
* Wed Jan 24 2007 - mkoenig@suse.de