summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp/ltp/0017-replace-sigval_t-with-union-sigval.patch
diff options
context:
space:
mode:
authorDengke Du <dengke.du@windriver.com>2017-02-22 05:04:50 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-01 23:27:09 +0000
commitc9f9446585377e4873431849351b7c4f52191301 (patch)
tree15d8cf8fa8724270597b1507d9435e59982bf0be /meta/recipes-extended/ltp/ltp/0017-replace-sigval_t-with-union-sigval.patch
parent6b3dda3cee9e88c7c8bbe55d84ab680f130f85b8 (diff)
downloadpoky-c9f9446585377e4873431849351b7c4f52191301.tar.gz
ltp: upgrade to 20170116
1. Upgrade ltp from 20160126 to 20170116. 2. Delete some patches because these have been integrated in upstream. 0001-ltp-Don-t-link-against-libfl.patch 0006-sendfile-Use-off64_t-instead-of-__off64_t.patch 0007-replace-SIGCLD-with-SIGCHLD.patch 0009-Guard-error.h-with-__GLIBC__.patch 0012-fsstress.c-Replace-__int64_t-with-int64_t.patch 0013-include-fcntl.h-for-getting-O_-definitions.patch 0014-hyperthreading-Include-sys-types.h-for-pid_t-definit.patch 0015-mincore01-Rename-PAGESIZE-to-pagesize.patch 0016-ustat-Change-header-from-ustat.h-to-sys-ustat.h.patch 0017-replace-sigval_t-with-union-sigval.patch 0019-tomoyo-Replace-canonicalize_file_name-with-realpath.patch 0022-include-sys-types.h.patch 0029-trace_shed-Fix-build-with-musl.patch 0031-vma03-fix-page-size-offset-as-per-page-size-alignmen.patch 0032-regen.sh-Include-asm-unistd.h-explicitly.patch 0037-containers-netns_netlink-Avoid-segmentation-fault.patch 0038-run-posix-option-group-test-replace-CWD-qith-PWD.patch 0040-containers-userns05-use-unsigned-int-for-ns-id.patch 3. Add new patch based on Khem Raj's 0007-replace-SIGCLD-with-SIGCHLD.patch 0001-add-_GNU_SOURCE-to-pec_listener.c.patch 4. Add new patches fix building errors with musl: 0006-fix-PATH_MAX-undeclared-when-building-with-musl.patch 0007-fix-__WORDSIZE-undeclared-when-building-with-musl.patch 0009-fix-redefinition-of-struct-msgbuf-error-building-wit.patch Add new patch fix building errors, when the distro is poky-lsb 0012-fix-faccessat01.c-build-fails-with-security-flags.patch 5. Modify some patches because the upstream contains changes, those patches maybe failed when they apply to the new version of ltp. 0011-Rename-sigset-variable-to-sigset1.patch 0027-sysconf01-Use-_SC_2_C_VERSION-conditionally.patch 0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch 0035-fix-test_proc_kill-hang.patch 6. Rename and modify this patch. fcntl-fix-the-time-def-to-use-time_t.patch to 0039-fcntl-fix-the-time-def-to-use-time_t.patch 7. The new version of ltp add the checking for ksh and csh, we doesn't support ksh and csh in oe-core, so remove the checking files when the system executes do_install function. (From OE-Core rev: 25c71d320198d41cf760dbea96840d352681dced) Signed-off-by: Dengke Du <dengke.du@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0017-replace-sigval_t-with-union-sigval.patch')
-rw-r--r--meta/recipes-extended/ltp/ltp/0017-replace-sigval_t-with-union-sigval.patch88
1 files changed, 0 insertions, 88 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0017-replace-sigval_t-with-union-sigval.patch b/meta/recipes-extended/ltp/ltp/0017-replace-sigval_t-with-union-sigval.patch
deleted file mode 100644
index ed25802a0c..0000000000
--- a/meta/recipes-extended/ltp/ltp/0017-replace-sigval_t-with-union-sigval.patch
+++ /dev/null
@@ -1,88 +0,0 @@
1From c882bcd18820b44a685f0d5edd7aaff77a88c912 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 7 Jan 2016 20:17:55 +0000
4Subject: [PATCH 17/32] replace sigval_t with union sigval
5
6This makes it compatible across musl and glibc
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c | 2 +-
11 testcases/kernel/syscalls/timer_gettime/timer_gettime01.c | 2 +-
12 testcases/kernel/timers/timer_create/timer_create02.c | 4 ++--
13 testcases/kernel/timers/timer_create/timer_create03.c | 4 ++--
14 4 files changed, 6 insertions(+), 6 deletions(-)
15
16diff --git a/testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c b/testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c
17index d186c1f..bc03544 100644
18--- a/testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c
19+++ b/testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c
20@@ -54,7 +54,7 @@ int main(int ac, char **av)
21
22 setup();
23
24- ev.sigev_value = (sigval_t) 0;
25+ ev.sigev_value = (union sigval) 0;
26 ev.sigev_signo = SIGALRM;
27 ev.sigev_notify = SIGEV_SIGNAL;
28 TEST(ltp_syscall(__NR_timer_create, CLOCK_REALTIME, &ev, &timer));
29diff --git a/testcases/kernel/syscalls/timer_gettime/timer_gettime01.c b/testcases/kernel/syscalls/timer_gettime/timer_gettime01.c
30index b583aee..9371a6a 100644
31--- a/testcases/kernel/syscalls/timer_gettime/timer_gettime01.c
32+++ b/testcases/kernel/syscalls/timer_gettime/timer_gettime01.c
33@@ -55,7 +55,7 @@ int main(int ac, char **av)
34
35 setup();
36
37- ev.sigev_value = (sigval_t) 0;
38+ ev.sigev_value = (union sigval) 0;
39 ev.sigev_signo = SIGALRM;
40 ev.sigev_notify = SIGEV_SIGNAL;
41 TEST(ltp_syscall(__NR_timer_create, CLOCK_REALTIME, &ev, &timer));
42diff --git a/testcases/kernel/timers/timer_create/timer_create02.c b/testcases/kernel/timers/timer_create/timer_create02.c
43index 7f528ed..1127400 100644
44--- a/testcases/kernel/timers/timer_create/timer_create02.c
45+++ b/testcases/kernel/timers/timer_create/timer_create02.c
46@@ -142,7 +142,7 @@ void setup_test(int option)
47 {
48 switch (option) {
49 case 0:
50- evp.sigev_value = (sigval_t) 0;
51+ evp.sigev_value = (union sigval) 0;
52 evp.sigev_signo = SIGALRM;
53 evp.sigev_notify = SIGEV_SIGNAL;
54 evp_ptr = &evp;
55@@ -151,7 +151,7 @@ void setup_test(int option)
56 evp_ptr = NULL;
57 break;
58 case 2:
59- evp.sigev_value = (sigval_t) 0;
60+ evp.sigev_value = (union sigval) 0;
61 evp.sigev_signo = SIGALRM; /* any will do */
62 evp.sigev_notify = SIGEV_NONE;
63 evp_ptr = &evp;
64diff --git a/testcases/kernel/timers/timer_create/timer_create03.c b/testcases/kernel/timers/timer_create/timer_create03.c
65index 291fcfa..8b01bf7 100644
66--- a/testcases/kernel/timers/timer_create/timer_create03.c
67+++ b/testcases/kernel/timers/timer_create/timer_create03.c
68@@ -129,7 +129,7 @@ void setup_test(int option)
69 {
70 switch (option) {
71 case 0:
72- evp.sigev_value = (sigval_t) 0;
73+ evp.sigev_value = (union sigval) 0;
74 evp.sigev_signo = SIGALRM;
75 evp.sigev_notify = SIGEV_SIGNAL;
76 evp_ptr = &evp;
77@@ -138,7 +138,7 @@ void setup_test(int option)
78 evp_ptr = NULL;
79 break;
80 case 2:
81- evp.sigev_value = (sigval_t) 0;
82+ evp.sigev_value = (union sigval) 0;
83 evp.sigev_signo = SIGALRM; /* any will do */
84 evp.sigev_notify = SIGEV_NONE;
85 evp_ptr = &evp;
86--
872.7.0
88