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 | 81 |
1 files changed, 0 insertions, 81 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 deleted file mode 100644 index 29b2bf7e41..0000000000 --- a/meta/recipes-extended/ltp/ltp/0001-build-Add-option-to-select-libc-implementation.patch +++ /dev/null | |||
@@ -1,81 +0,0 @@ | |||
1 | From 74958c3e341de713b596c8cfd35b2391d6c7bc09 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 7 Jan 2016 18:19:03 +0000 | ||
4 | Subject: [PATCH] build: Add option to select libc implementation | ||
5 | |||
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 | ||
8 | different and does not implement all GNU extensions. | ||
9 | |||
10 | Disable tests specifically not building _yet_ on musl based systems | ||
11 | |||
12 | Upstream-Status: Pending (pvorel: this is not going to be fixed, instead | ||
13 | each test needs to be fixed) | ||
14 | |||
15 | rt_tgsigqueueinfo fails with: | ||
16 | rt_tgsigqueueinfo01.c: In function 'sigusr1_handler': | ||
17 | rt_tgsigqueueinfo01.c:42:22: error: 'siginfo_t' {aka 'struct <anonymous>'} has no member named '_sifields'; did you mean '__si_fields'? | ||
18 | 42 | sigval_rcv = uinfo->_sifields._rt.SI_SIGVAL.sival_ptr; | ||
19 | | ^~~~~~~~~ | ||
20 | | __si_fields | ||
21 | |||
22 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
23 | [ pvorel: rebase for 20200515: enable pty, ioctl ] | ||
24 | [ pvorel: rebase for 20200120: enable mallopt, profil, rpc016, | ||
25 | rt_sigsuspend, sbrk_mutex, setdomainname, sethostname, sigsuspend, | ||
26 | testpi-3, testpi-5, testpi-6, ustat; move rt_tgsigqueueinfo | ||
27 | from 0006-rt_tgsigqueueinfo-disable-test-on-musl.patch ] | ||
28 | Signed-off-by: Petr Vorel <petr.vorel@gmail.com> | ||
29 | --- | ||
30 | Makefile | 5 +++++ | ||
31 | testcases/kernel/sched/Makefile | 4 +++- | ||
32 | testcases/kernel/syscalls/Makefile | 4 ++++ | ||
33 | 3 files changed, 12 insertions(+), 1 deletion(-) | ||
34 | |||
35 | diff --git a/Makefile b/Makefile | ||
36 | index 768ca4606..e9d679a71 100644 | ||
37 | --- a/Makefile | ||
38 | +++ b/Makefile | ||
39 | @@ -41,6 +41,11 @@ vpath %.mk $(top_srcdir)/mk:$(top_srcdir)/mk/include | ||
40 | UCLINUX ?= 0 | ||
41 | export UCLINUX | ||
42 | |||
43 | +# System C library implementation (glibc,uclibc,musl etc.) | ||
44 | +# default to glibc if not set | ||
45 | +LIBC ?= glibc | ||
46 | +export LIBC | ||
47 | + | ||
48 | # CLEAN_TARGETS: Targets which exist solely in clean. | ||
49 | # COMMON_TARGETS: Targets which exist in all, clean, and install. | ||
50 | # INSTALL_TARGETS: Targets which exist in clean and install (contains | ||
51 | diff --git a/testcases/kernel/sched/Makefile b/testcases/kernel/sched/Makefile | ||
52 | index 6a57d79ee..74bb93370 100644 | ||
53 | --- a/testcases/kernel/sched/Makefile | ||
54 | +++ b/testcases/kernel/sched/Makefile | ||
55 | @@ -23,5 +23,7 @@ | ||
56 | top_srcdir ?= ../../.. | ||
57 | |||
58 | include $(top_srcdir)/include/mk/env_pre.mk | ||
59 | - | ||
60 | +ifeq ($(LIBC),musl) | ||
61 | + FILTER_OUT_DIRS += process_stress | ||
62 | +endif | ||
63 | include $(top_srcdir)/include/mk/generic_trunk_target.mk | ||
64 | diff --git a/testcases/kernel/syscalls/Makefile b/testcases/kernel/syscalls/Makefile | ||
65 | index c6dc8d9e7..aa50761ea 100644 | ||
66 | --- a/testcases/kernel/syscalls/Makefile | ||
67 | +++ b/testcases/kernel/syscalls/Makefile | ||
68 | @@ -15,6 +15,10 @@ FILTER_OUT_DIRS += capget capset chmod chown clone fork getcontext llseek \ | ||
69 | mincore mprotect nftw profil remap_file_pages sbrk | ||
70 | endif | ||
71 | |||
72 | +ifeq ($(LIBC),musl) | ||
73 | +FILTER_OUT_DIRS += confstr fmtmsg getcontext rt_tgsigqueueinfo | ||
74 | +endif | ||
75 | + | ||
76 | ifeq ($(UCLIBC),1) | ||
77 | FILTER_OUT_DIRS += profil | ||
78 | endif | ||
79 | -- | ||
80 | 2.26.2 | ||
81 | |||