summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp/ltp/0001-build-Add-option-to-select-libc-implementation.patch
diff options
context:
space:
mode:
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.patch47
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 @@
1From be453d1be826b862d47e08663fd69eea9dd62730 Mon Sep 17 00:00:00 2001 1From 74958c3e341de713b596c8cfd35b2391d6c7bc09 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 7 Jan 2016 18:19:03 +0000 3Date: Thu, 7 Jan 2016 18:19:03 +0000
4Subject: [PATCH 1/6] build: Add option to select libc implementation 4Subject: [PATCH] build: Add option to select libc implementation
5 5
6There are more than glibc for C library implementation available on 6There are more than glibc for C library implementation available on
7linux now a days, uclibc cloaked like glibc but musl e.g. is very 7linux now a days, uclibc cloaked like glibc but musl e.g. is very
8different and does not implement all GNU extentions 8different and does not implement all GNU extensions.
9 9
10Disable tests specifically not building _yet_ on musl based systems 10Disable tests specifically not building _yet_ on musl based systems
11 11
12Upstream-Status: Pending 12Upstream-Status: Pending (pvorel: this is not going to be fixed, instead
13each test needs to be fixed)
13 14
14rt_tgsigqueueinfo fails with: 15rt_tgsigqueueinfo fails with:
15rt_tgsigqueueinfo01.c: In function 'sigusr1_handler': 16rt_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
21Signed-off-by: Khem Raj <raj.khem@gmail.com> 22Signed-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,
23rt_sigsuspend, sbrk_mutex, setdomainname, sethostname, sigsuspend, 25rt_sigsuspend, sbrk_mutex, setdomainname, sethostname, sigsuspend,
24testpi-3, testpi-5, testpi-6, ustat; move rt_tgsigqueueinfo 26testpi-3, testpi-5, testpi-6, ustat; move rt_tgsigqueueinfo
25from 0006-rt_tgsigqueueinfo-disable-test-on-musl.patch ] 27from 0006-rt_tgsigqueueinfo-disable-test-on-musl.patch ]
26Signed-off-by: Petr Vorel <petr.vorel@gmail.com> 28Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
27Signed-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
35diff --git a/Makefile b/Makefile 35diff --git a/Makefile b/Makefile
36index 768ca4606..e9d679a71 100644 36index 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
51diff --git a/testcases/kernel/Makefile b/testcases/kernel/Makefile
52index 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
73diff --git a/testcases/kernel/sched/Makefile b/testcases/kernel/sched/Makefile 51diff --git a/testcases/kernel/sched/Makefile b/testcases/kernel/sched/Makefile
74index 6a57d79ee..74bb93370 100644 52index 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
86diff --git a/testcases/kernel/syscalls/Makefile b/testcases/kernel/syscalls/Makefile 64diff --git a/testcases/kernel/syscalls/Makefile b/testcases/kernel/syscalls/Makefile
87index 45a00cf7d..af5a591a0 100644 65index 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--
1022.25.1 802.26.2
81