summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-03-06 07:23:55 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-03-06 07:23:55 +0000
commita2f0a2e3a6d812321e834731efc4ebae530142f9 (patch)
tree8b7bd7f323d1e8b97953a422f49b028d3b7ea310
parent56432da4334743d879ac3b19dce24e1bc2898239 (diff)
downloadpoky-a2f0a2e3a6d812321e834731efc4ebae530142f9.tar.gz
coreutils: fix futimens error
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3953 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--meta/packages/coreutils/coreutils-5.3.0/futimens.patch44
-rw-r--r--meta/packages/coreutils/coreutils_5.3.0.bb3
2 files changed, 46 insertions, 1 deletions
diff --git a/meta/packages/coreutils/coreutils-5.3.0/futimens.patch b/meta/packages/coreutils/coreutils-5.3.0/futimens.patch
new file mode 100644
index 0000000000..3cb2b6ab32
--- /dev/null
+++ b/meta/packages/coreutils/coreutils-5.3.0/futimens.patch
@@ -0,0 +1,44 @@
1Index: coreutils-5.3.0/lib/utimens.c
2===================================================================
3--- coreutils-5.3.0.orig/lib/utimens.c 2005-01-03 22:19:15.000000000 +0000
4+++ coreutils-5.3.0/lib/utimens.c 2007-07-01 19:12:32.000000000 +0000
5@@ -55,8 +55,8 @@
6 If TIMESPEC is null, set the time stamps to the current time. */
7
8 int
9-futimens (int fd ATTRIBUTE_UNUSED,
10- char const *file, struct timespec const timespec[2])
11+gl_futimens (int fd ATTRIBUTE_UNUSED,
12+ char const *file, struct timespec const timespec[2])
13 {
14 /* There's currently no interface to set file timestamps with
15 nanosecond resolution, so do the best we can, discarding any
16@@ -117,5 +117,5 @@
17 int
18 utimens (char const *file, struct timespec const timespec[2])
19 {
20- return futimens (-1, file, timespec);
21+ return gl_futimens (-1, file, timespec);
22 }
23Index: coreutils-5.3.0/lib/utimens.h
24===================================================================
25--- coreutils-5.3.0.orig/lib/utimens.h 2004-11-23 20:54:33.000000000 +0000
26+++ coreutils-5.3.0/lib/utimens.h 2007-07-01 19:12:37.000000000 +0000
27@@ -1,3 +1,3 @@
28 #include "timespec.h"
29-int futimens (int, char const *, struct timespec const [2]);
30+int gl_futimens (int, char const *, struct timespec const [2]);
31 int utimens (char const *, struct timespec const [2]);
32Index: coreutils-5.3.0/src/touch.c
33===================================================================
34--- coreutils-5.3.0.orig/src/touch.c 2004-11-23 20:54:35.000000000 +0000
35+++ coreutils-5.3.0/src/touch.c 2007-07-01 19:11:52.000000000 +0000
36@@ -191,7 +191,7 @@
37 t = timespec;
38 }
39
40- ok = (futimens (fd, file, t) == 0);
41+ ok = (gl_futimens (fd, file, t) == 0);
42 if (fd != -1)
43 ok &= (close (fd) == 0);
44
diff --git a/meta/packages/coreutils/coreutils_5.3.0.bb b/meta/packages/coreutils/coreutils_5.3.0.bb
index 61d25543ab..bef76bed78 100644
--- a/meta/packages/coreutils/coreutils_5.3.0.bb
+++ b/meta/packages/coreutils/coreutils_5.3.0.bb
@@ -1,9 +1,10 @@
1require coreutils.inc 1require coreutils.inc
2 2
3PR = "r1" 3PR = "r2"
4 4
5SRC_URI = "ftp://alpha.gnu.org/gnu/coreutils/coreutils-${PV}.tar.bz2 \ 5SRC_URI = "ftp://alpha.gnu.org/gnu/coreutils/coreutils-${PV}.tar.bz2 \
6 file://install-cross.patch;patch=1;pnum=0 \ 6 file://install-cross.patch;patch=1;pnum=0 \
7 file://futimens.patch;patch=1 \
7 file://man.patch;patch=1 \ 8 file://man.patch;patch=1 \
8 file://rename-tee-for-glibc2.5.patch;patch=1 \ 9 file://rename-tee-for-glibc2.5.patch;patch=1 \
9 file://uptime-pow-lib.patch;patch=1" 10 file://uptime-pow-lib.patch;patch=1"