diff options
Diffstat (limited to 'meta/recipes-core/coreutils/coreutils-6.9')
3 files changed, 102 insertions, 0 deletions
diff --git a/meta/recipes-core/coreutils/coreutils-6.9/futimens.patch b/meta/recipes-core/coreutils/coreutils-6.9/futimens.patch new file mode 100644 index 0000000000..953c2d17a9 --- /dev/null +++ b/meta/recipes-core/coreutils/coreutils-6.9/futimens.patch | |||
@@ -0,0 +1,61 @@ | |||
1 | # coreutils uses gnulib which conflicts with newer libc header on futimens | ||
2 | # this patch simply renames coreutils futimes to avoid confliction | ||
3 | # | ||
4 | # Signed-off-by Kevin Tian <kevin.tian@intel.com>, 2010-08-18 | ||
5 | # (this patch is licensed under GPLv2) | ||
6 | |||
7 | diff --git a/lib/utimens.c b/lib/utimens.c | ||
8 | index 71bc510..ae870b8 100644 | ||
9 | --- a/lib/utimens.c | ||
10 | +++ b/lib/utimens.c | ||
11 | @@ -75,7 +75,7 @@ struct utimbuf | ||
12 | Return 0 on success, -1 (setting errno) on failure. */ | ||
13 | |||
14 | int | ||
15 | -futimens (int fd ATTRIBUTE_UNUSED, | ||
16 | +futimens_coreutils (int fd ATTRIBUTE_UNUSED, | ||
17 | char const *file, struct timespec const timespec[2]) | ||
18 | { | ||
19 | /* Some Linux-based NFS clients are buggy, and mishandle time stamps | ||
20 | @@ -185,5 +185,5 @@ futimens (int fd ATTRIBUTE_UNUSED, | ||
21 | int | ||
22 | utimens (char const *file, struct timespec const timespec[2]) | ||
23 | { | ||
24 | - return futimens (-1, file, timespec); | ||
25 | + return futimens_coreutils (-1, file, timespec); | ||
26 | } | ||
27 | diff --git a/lib/utimens.h b/lib/utimens.h | ||
28 | index 0097aaa..13fc45a 100644 | ||
29 | --- a/lib/utimens.h | ||
30 | +++ b/lib/utimens.h | ||
31 | @@ -1,3 +1,3 @@ | ||
32 | #include <time.h> | ||
33 | -int futimens (int, char const *, struct timespec const [2]); | ||
34 | +int futimens_coreutils (int, char const *, struct timespec const [2]); | ||
35 | int utimens (char const *, struct timespec const [2]); | ||
36 | diff --git a/src/copy.c b/src/copy.c | ||
37 | index 4bdb75c..04634f1 100644 | ||
38 | --- a/src/copy.c | ||
39 | +++ b/src/copy.c | ||
40 | @@ -518,7 +518,7 @@ copy_reg (char const *src_name, char const *dst_name, | ||
41 | timespec[0] = get_stat_atime (src_sb); | ||
42 | timespec[1] = get_stat_mtime (src_sb); | ||
43 | |||
44 | - if (futimens (dest_desc, dst_name, timespec) != 0) | ||
45 | + if (futimens_coreutils (dest_desc, dst_name, timespec) != 0) | ||
46 | { | ||
47 | error (0, errno, _("preserving times for %s"), quote (dst_name)); | ||
48 | if (x->require_preserve) | ||
49 | diff --git a/src/touch.c b/src/touch.c | ||
50 | index a79c26d..6ef317d 100644 | ||
51 | --- a/src/touch.c | ||
52 | +++ b/src/touch.c | ||
53 | @@ -182,7 +182,7 @@ touch (const char *file) | ||
54 | t = timespec; | ||
55 | } | ||
56 | |||
57 | - ok = (futimens (fd, (fd == STDOUT_FILENO ? NULL : file), t) == 0); | ||
58 | + ok = (futimens_coreutils (fd, (fd == STDOUT_FILENO ? NULL : file), t) == 0); | ||
59 | |||
60 | if (fd == STDIN_FILENO) | ||
61 | { | ||
diff --git a/meta/recipes-core/coreutils/coreutils-6.9/gnulib_m4.patch b/meta/recipes-core/coreutils/coreutils-6.9/gnulib_m4.patch new file mode 100644 index 0000000000..b42f5c9faa --- /dev/null +++ b/meta/recipes-core/coreutils/coreutils-6.9/gnulib_m4.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | # remove the line to cause recursive inclusion error from autoreconf, sicne | ||
2 | # newer autoconf has included this definition. Simply rename it here. | ||
3 | # | ||
4 | # Signed-off-by Kevin Tian <kevin.tian@intel.com>, 2010-08-18 | ||
5 | # (this patch is licensed under GPLv2) | ||
6 | |||
7 | diff --git a/extensions.m4 b/extensions.m4 | ||
8 | index 143a9e5..f6558f1 100644 | ||
9 | --- a/m4/extensions.m4 | ||
10 | +++ b/m4/extensions.m4 | ||
11 | @@ -16,7 +16,7 @@ | ||
12 | # ------------------------ | ||
13 | # Enable extensions on systems that normally disable them, | ||
14 | # typically due to standards-conformance issues. | ||
15 | -AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], | ||
16 | +AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS_DUMMY], | ||
17 | [ | ||
18 | AC_BEFORE([$0], [AC_COMPILE_IFELSE]) | ||
19 | AC_BEFORE([$0], [AC_RUN_IFELSE]) | ||
diff --git a/meta/recipes-core/coreutils/coreutils-6.9/man-touch.patch b/meta/recipes-core/coreutils/coreutils-6.9/man-touch.patch new file mode 100644 index 0000000000..95a9638921 --- /dev/null +++ b/meta/recipes-core/coreutils/coreutils-6.9/man-touch.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | # man page for 'touch' is generated differently from others. All other utilities | ||
2 | # are provided static man source files, while for 'touch' it requires help2man | ||
3 | # to invoke "touch --help" and then convert the output into the manual. Since touch | ||
4 | # is with target format which can't be invoked on build system, disable building | ||
5 | # 'touch' man page here. | ||
6 | # | ||
7 | # Signed-off-by Kevin Tian <kevin.tian@intel.com>, 2010-08-18 | ||
8 | # (this patch is licensed under GPLv2) | ||
9 | |||
10 | diff --git a/man/Makefile.am b/man/Makefile.am | ||
11 | index 32df9d1..37b09e3 100644 | ||
12 | --- a/man/Makefile.am | ||
13 | +++ b/man/Makefile.am | ||
14 | @@ -27,7 +27,7 @@ dist_man_MANS = \ | ||
15 | paste.1 pathchk.1 pr.1 printenv.1 printf.1 ptx.1 pwd.1 readlink.1 \ | ||
16 | rm.1 rmdir.1 seq.1 sha1sum.1 sha224sum.1 sha256sum.1 sha384sum.1 sha512sum.1 \ | ||
17 | shred.1 shuf.1 sleep.1 sort.1 split.1 stat.1 \ | ||
18 | - su.1 sum.1 sync.1 tac.1 tail.1 tee.1 test.1 touch.1 tr.1 true.1 tsort.1 \ | ||
19 | + su.1 sum.1 sync.1 tac.1 tail.1 tee.1 test.1 tr.1 true.1 tsort.1 \ | ||
20 | tty.1 unexpand.1 uniq.1 unlink.1 vdir.1 wc.1 \ | ||
21 | whoami.1 yes.1 $(MAN) | ||
22 | optional_mans = \ | ||