diff options
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0001-build-Add-option-to-select-libc-implementation.patch')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0001-build-Add-option-to-select-libc-implementation.patch | 47 |
1 files changed, 13 insertions, 34 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0001-build-Add-option-to-select-libc-implementation.patch b/meta/recipes-extended/ltp/ltp/0001-build-Add-option-to-select-libc-implementation.patch index b1a99959d3..29b2bf7e41 100644 --- a/meta/recipes-extended/ltp/ltp/0001-build-Add-option-to-select-libc-implementation.patch +++ b/meta/recipes-extended/ltp/ltp/0001-build-Add-option-to-select-libc-implementation.patch | |||
@@ -1,15 +1,16 @@ | |||
1 | From be453d1be826b862d47e08663fd69eea9dd62730 Mon Sep 17 00:00:00 2001 | 1 | From 74958c3e341de713b596c8cfd35b2391d6c7bc09 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 7 Jan 2016 18:19:03 +0000 | 3 | Date: Thu, 7 Jan 2016 18:19:03 +0000 |
4 | Subject: [PATCH 1/6] build: Add option to select libc implementation | 4 | Subject: [PATCH] build: Add option to select libc implementation |
5 | 5 | ||
6 | There are more than glibc for C library implementation available on | 6 | There are more than glibc for C library implementation available on |
7 | linux now a days, uclibc cloaked like glibc but musl e.g. is very | 7 | linux now a days, uclibc cloaked like glibc but musl e.g. is very |
8 | different and does not implement all GNU extentions | 8 | different and does not implement all GNU extensions. |
9 | 9 | ||
10 | Disable tests specifically not building _yet_ on musl based systems | 10 | Disable tests specifically not building _yet_ on musl based systems |
11 | 11 | ||
12 | Upstream-Status: Pending | 12 | Upstream-Status: Pending (pvorel: this is not going to be fixed, instead |
13 | each test needs to be fixed) | ||
13 | 14 | ||
14 | rt_tgsigqueueinfo fails with: | 15 | rt_tgsigqueueinfo fails with: |
15 | rt_tgsigqueueinfo01.c: In function 'sigusr1_handler': | 16 | rt_tgsigqueueinfo01.c: In function 'sigusr1_handler': |
@@ -19,18 +20,17 @@ rt_tgsigqueueinfo01.c:42:22: error: 'siginfo_t' {aka 'struct <anonymous>'} has n | |||
19 | | __si_fields | 20 | | __si_fields |
20 | 21 | ||
21 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 22 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
23 | [ pvorel: rebase for 20200515: enable pty, ioctl ] | ||
22 | [ pvorel: rebase for 20200120: enable mallopt, profil, rpc016, | 24 | [ pvorel: rebase for 20200120: enable mallopt, profil, rpc016, |
23 | rt_sigsuspend, sbrk_mutex, setdomainname, sethostname, sigsuspend, | 25 | rt_sigsuspend, sbrk_mutex, setdomainname, sethostname, sigsuspend, |
24 | testpi-3, testpi-5, testpi-6, ustat; move rt_tgsigqueueinfo | 26 | testpi-3, testpi-5, testpi-6, ustat; move rt_tgsigqueueinfo |
25 | from 0006-rt_tgsigqueueinfo-disable-test-on-musl.patch ] | 27 | from 0006-rt_tgsigqueueinfo-disable-test-on-musl.patch ] |
26 | Signed-off-by: Petr Vorel <petr.vorel@gmail.com> | 28 | Signed-off-by: Petr Vorel <petr.vorel@gmail.com> |
27 | Signed-off-by: Petr Vorel <pvorel@suse.cz> | ||
28 | --- | 29 | --- |
29 | Makefile | 5 +++++ | 30 | Makefile | 5 +++++ |
30 | testcases/kernel/Makefile | 5 ++++- | ||
31 | testcases/kernel/sched/Makefile | 4 +++- | 31 | testcases/kernel/sched/Makefile | 4 +++- |
32 | testcases/kernel/syscalls/Makefile | 4 ++++ | 32 | testcases/kernel/syscalls/Makefile | 4 ++++ |
33 | 4 files changed, 16 insertions(+), 2 deletions(-) | 33 | 3 files changed, 12 insertions(+), 1 deletion(-) |
34 | 34 | ||
35 | diff --git a/Makefile b/Makefile | 35 | diff --git a/Makefile b/Makefile |
36 | index 768ca4606..e9d679a71 100644 | 36 | index 768ca4606..e9d679a71 100644 |
@@ -48,28 +48,6 @@ index 768ca4606..e9d679a71 100644 | |||
48 | # CLEAN_TARGETS: Targets which exist solely in clean. | 48 | # CLEAN_TARGETS: Targets which exist solely in clean. |
49 | # COMMON_TARGETS: Targets which exist in all, clean, and install. | 49 | # COMMON_TARGETS: Targets which exist in all, clean, and install. |
50 | # INSTALL_TARGETS: Targets which exist in clean and install (contains | 50 | # INSTALL_TARGETS: Targets which exist in clean and install (contains |
51 | diff --git a/testcases/kernel/Makefile b/testcases/kernel/Makefile | ||
52 | index 3319b3163..94ea362c8 100644 | ||
53 | --- a/testcases/kernel/Makefile | ||
54 | +++ b/testcases/kernel/Makefile | ||
55 | @@ -49,13 +49,16 @@ SUBDIRS += connectors \ | ||
56 | logging \ | ||
57 | mem \ | ||
58 | numa \ | ||
59 | - pty \ | ||
60 | sched \ | ||
61 | security \ | ||
62 | sound \ | ||
63 | tracing \ | ||
64 | uevents \ | ||
65 | |||
66 | +ifneq ($(LIBC),musl) | ||
67 | +SUBDIRS += pty | ||
68 | +endif | ||
69 | + | ||
70 | ifeq ($(WITH_POWER_MANAGEMENT_TESTSUITE),yes) | ||
71 | SUBDIRS += power_management | ||
72 | endif | ||
73 | diff --git a/testcases/kernel/sched/Makefile b/testcases/kernel/sched/Makefile | 51 | diff --git a/testcases/kernel/sched/Makefile b/testcases/kernel/sched/Makefile |
74 | index 6a57d79ee..74bb93370 100644 | 52 | index 6a57d79ee..74bb93370 100644 |
75 | --- a/testcases/kernel/sched/Makefile | 53 | --- a/testcases/kernel/sched/Makefile |
@@ -84,19 +62,20 @@ index 6a57d79ee..74bb93370 100644 | |||
84 | +endif | 62 | +endif |
85 | include $(top_srcdir)/include/mk/generic_trunk_target.mk | 63 | include $(top_srcdir)/include/mk/generic_trunk_target.mk |
86 | diff --git a/testcases/kernel/syscalls/Makefile b/testcases/kernel/syscalls/Makefile | 64 | diff --git a/testcases/kernel/syscalls/Makefile b/testcases/kernel/syscalls/Makefile |
87 | index 45a00cf7d..af5a591a0 100644 | 65 | index c6dc8d9e7..aa50761ea 100644 |
88 | --- a/testcases/kernel/syscalls/Makefile | 66 | --- a/testcases/kernel/syscalls/Makefile |
89 | +++ b/testcases/kernel/syscalls/Makefile | 67 | +++ b/testcases/kernel/syscalls/Makefile |
90 | @@ -29,6 +29,10 @@ FILTER_OUT_DIRS += capget capset chmod chown clone fork getcontext llseek \ | 68 | @@ -15,6 +15,10 @@ FILTER_OUT_DIRS += capget capset chmod chown clone fork getcontext llseek \ |
91 | mincore mprotect nftw profil remap_file_pages sbrk | 69 | mincore mprotect nftw profil remap_file_pages sbrk |
92 | endif | 70 | endif |
93 | 71 | ||
94 | +ifeq ($(LIBC),musl) | 72 | +ifeq ($(LIBC),musl) |
95 | +FILTER_OUT_DIRS += confstr fmtmsg getcontext ioctl rt_tgsigqueueinfo | 73 | +FILTER_OUT_DIRS += confstr fmtmsg getcontext rt_tgsigqueueinfo |
96 | +endif | 74 | +endif |
97 | + | 75 | + |
98 | ifeq ($(UCLIBC),1) | 76 | ifeq ($(UCLIBC),1) |
99 | FILTER_OUT_DIRS += profil | 77 | FILTER_OUT_DIRS += profil |
100 | endif | 78 | endif |
101 | -- | 79 | -- |
102 | 2.25.1 | 80 | 2.26.2 |
81 | |||