summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/elfutils/files/musl-tests.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-07-20 11:00:57 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-23 22:26:28 +0100
commitd5b73bdb45c906cfbcfc395d191537a0a7b4ff38 (patch)
tree8a151075dd66ccbf6b48480bd004fb5dc9c53b56 /meta/recipes-devtools/elfutils/files/musl-tests.patch
parent002c33a38f87c19bd68d58d936a8d822bcf484f8 (diff)
downloadpoky-d5b73bdb45c906cfbcfc395d191537a0a7b4ff38.tar.gz
elfutils: Fix eu-* utils builds for musl
Re-organize the musl patches in three different areas namely libs, utils and tests, this will help maintain them in future version bumps Add obstack dependency on musl targets which is needed for eu-* PN and PN-binutils is not empty anymore on musl (From OE-Core rev: a747239978e63f22d4107e6e12c75b5f78043cce) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils/files/musl-tests.patch')
-rw-r--r--meta/recipes-devtools/elfutils/files/musl-tests.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/files/musl-tests.patch b/meta/recipes-devtools/elfutils/files/musl-tests.patch
new file mode 100644
index 0000000000..be35791b1a
--- /dev/null
+++ b/meta/recipes-devtools/elfutils/files/musl-tests.patch
@@ -0,0 +1,29 @@
1Fix error on musl:
2
3| ../../elfutils-0.176/tests/elfstrmerge.c: In function 'main':
4| ../../elfutils-0.176/tests/elfstrmerge.c:370:60: error: 'ALLPERMS' undeclared (first use in this function); did you mean 'EPERM'?
5| fdnew = open (fnew, O_WRONLY | O_CREAT, st.st_mode & ALLPERMS);
6| ^~~~~~~~
7| EPERM
8| ../../elfutils-0.176/tests/elfstrmerge.c:370:60: note: each undeclared identifier is reported only once for each function it appears in
9
10Upstream-Status: Inappropriate [workaround in musl]
11
12Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13
14Index: elfutils-0.176/tests/elfstrmerge.c
15===================================================================
16--- elfutils-0.176.orig/tests/elfstrmerge.c
17+++ elfutils-0.176/tests/elfstrmerge.c
18@@ -33,6 +33,11 @@
19 #include ELFUTILS_HEADER(dwelf)
20 #include "elf-knowledge.h"
21
22+/* for musl */
23+#ifndef ALLPERMS
24+# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */
25+#endif
26+
27 /* The original ELF file. */
28 static int fd = -1;
29 static Elf *elf = NULL;