summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg/dpkg/glibc2.5-sync_file_range.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg/glibc2.5-sync_file_range.patch')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg/glibc2.5-sync_file_range.patch21
1 files changed, 16 insertions, 5 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg/glibc2.5-sync_file_range.patch b/meta/recipes-devtools/dpkg/dpkg/glibc2.5-sync_file_range.patch
index d56b8a69a3..d48386647e 100644
--- a/meta/recipes-devtools/dpkg/dpkg/glibc2.5-sync_file_range.patch
+++ b/meta/recipes-devtools/dpkg/dpkg/glibc2.5-sync_file_range.patch
@@ -1,12 +1,17 @@
1From 9d260d408f9e17abd1d1dccd685bd7e80a3655a9 Mon Sep 17 00:00:00 2001
2From: Donn Seeley <donn.seeley@windriver.com>
3Date: Tue, 25 Feb 2014 17:44:04 +0800
4Subject: [PATCH] dpkg: fix a link problem for dpkg-native on CentOS 5.8
5
1CentOS 5.8 kernels and headers support the sync_file_range() system call, 6CentOS 5.8 kernels and headers support the sync_file_range() system call,
2but glibc 2.5 doesn't provide the syscall stub. It appears that this 7but glibc 2.5 doesn't provide the syscall stub. It appears that this
3problem is known but will never be fixed: 8problem is known but will never be fixed:
4 9
5 https://bugzilla.redhat.com/show_bug.cgi?id=518581 10 https://bugzilla.redhat.com/show_bug.cgi?id=518581
6 11
7 Bug 518581 - [RHEL5] glibc misses sync_file_range syscall interface 12 Bug 518581 - [RHEL5] glibc misses sync_file_range syscall interface
8 13
9 Status: CLOSED CANTFIX 14 Status: CLOSED CANTFIX
10 Last Closed: 2009-11-22 22:19:55 15 Last Closed: 2009-11-22 22:19:55
11 16
12 Kirby Zhou 2009-08-20 23:37:55 EDT 17 Kirby Zhou 2009-08-20 23:37:55 EDT
@@ -60,13 +65,16 @@ Upstream-Status: Inappropriate [everyone else builds on newer hosts :-)]
60 65
61Signed-off-by: Donn Seeley <donn.seeley@windriver.com> 66Signed-off-by: Donn Seeley <donn.seeley@windriver.com>
62Signed-off-by: Lei Liu <lei.liu2@windriver.com> 67Signed-off-by: Lei Liu <lei.liu2@windriver.com>
68
63--- 69---
64 src/archives.c | 4 ++-- 70 src/archives.c | 4 ++--
65 1 file changed, 2 insertions(+), 2 deletions(-) 71 1 file changed, 2 insertions(+), 2 deletions(-)
66 72
73diff --git a/src/archives.c b/src/archives.c
74index 4b2fc92..a92b795 100644
67--- a/src/archives.c 75--- a/src/archives.c
68+++ b/src/archives.c 76+++ b/src/archives.c
69@@ -75,7 +75,7 @@ 77@@ -69,7 +69,7 @@ fd_writeback_init(int fd)
70 /* Ignore the return code as it should be considered equivalent to an 78 /* Ignore the return code as it should be considered equivalent to an
71 * asynchronous hint for the kernel, we are doing an fsync() later on 79 * asynchronous hint for the kernel, we are doing an fsync() later on
72 * anyway. */ 80 * anyway. */
@@ -75,7 +83,7 @@ Signed-off-by: Lei Liu <lei.liu2@windriver.com>
75 sync_file_range(fd, 0, 0, SYNC_FILE_RANGE_WRITE); 83 sync_file_range(fd, 0, 0, SYNC_FILE_RANGE_WRITE);
76 #elif defined(HAVE_POSIX_FADVISE) 84 #elif defined(HAVE_POSIX_FADVISE)
77 posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED); 85 posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED);
78@@ -1179,7 +1179,7 @@ 86@@ -1078,7 +1078,7 @@ tarobject(void *ctx, struct tar_entry *ti)
79 return 0; 87 return 0;
80 } 88 }
81 89
@@ -84,3 +92,6 @@ Signed-off-by: Lei Liu <lei.liu2@windriver.com>
84 static void 92 static void
85 tar_writeback_barrier(struct fileinlist *files, struct pkginfo *pkg) 93 tar_writeback_barrier(struct fileinlist *files, struct pkginfo *pkg)
86 { 94 {
95--
962.16.2
97