summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-03-22 14:13:42 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-04-06 13:00:09 +0200
commit3ad787c673817dfa3cc378b8300557fe624e44d9 (patch)
treea192ae633a30d07e9e0c4246ee7d57d034e376a2 /meta-oe
parent10e27be99770a0f071ae4b8560de65e501f6bd09 (diff)
downloadmeta-openembedded-3ad787c673817dfa3cc378b8300557fe624e44d9.tar.gz
lvm2: Fix patch errors found with musl
The patches had syntax errors which are only visible when using musl libs Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2/0001-implement-libc-specific-reopen_stream.patch13
-rw-r--r--meta-oe/recipes-support/lvm2/lvm2/0002-Guard-use-of-mallinfo-with-__GLIBC__.patch13
2 files changed, 12 insertions, 14 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2/0001-implement-libc-specific-reopen_stream.patch b/meta-oe/recipes-support/lvm2/lvm2/0001-implement-libc-specific-reopen_stream.patch
index f09fd76b3..5d72402bd 100644
--- a/meta-oe/recipes-support/lvm2/lvm2/0001-implement-libc-specific-reopen_stream.patch
+++ b/meta-oe/recipes-support/lvm2/lvm2/0001-implement-libc-specific-reopen_stream.patch
@@ -1,7 +1,7 @@
1From ede7976da9431573b0104dbcfe91a32c02dbea13 Mon Sep 17 00:00:00 2001 1From e3103459416616d3b8508e7176e897b0ae6c90f2 Mon Sep 17 00:00:00 2001
2From: Dengke Du <dengke.du@windriver.com> 2From: Dengke Du <dengke.du@windriver.com>
3Date: Tue, 25 Oct 2016 11:49:40 +0000 3Date: Tue, 25 Oct 2016 11:49:40 +0000
4Subject: [PATCH 1/4] implement libc specific reopen_stream 4Subject: [PATCH] implement libc specific reopen_stream
5 5
6musl defines stdin/stdio/stderr as constant types which means 6musl defines stdin/stdio/stderr as constant types which means
7we can not assign to them as we are doing here but works ok with glibc 7we can not assign to them as we are doing here but works ok with glibc
@@ -13,15 +13,14 @@ http://git.alpinelinux.org/cgit/aports/tree/main/lvm2/fix-stdio-usage.patch
13 13
14Signed-off-by: Khem Raj <raj.khem@gmail.com> 14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15Signed-off-by: Dengke Du <dengke.du@windriver.com> 15Signed-off-by: Dengke Du <dengke.du@windriver.com>
16--- 16
17Upstream-Status: Pending
18--- 17---
19 lib/log/log.c | 6 ++++++ 18 lib/log/log.c | 6 ++++++
20 tools/lvmcmdline.c | 6 +++--- 19 tools/lvmcmdline.c | 6 +++---
21 2 files changed, 9 insertions(+), 3 deletions(-) 20 2 files changed, 9 insertions(+), 3 deletions(-)
22 21
23diff --git a/lib/log/log.c b/lib/log/log.c 22diff --git a/lib/log/log.c b/lib/log/log.c
24index c933154..638839d 100644 23index c933154..3581084 100644
25--- a/lib/log/log.c 24--- a/lib/log/log.c
26+++ b/lib/log/log.c 25+++ b/lib/log/log.c
27@@ -161,6 +161,7 @@ static void _check_and_replace_standard_log_streams(FILE *old_stream, FILE *new_ 26@@ -161,6 +161,7 @@ static void _check_and_replace_standard_log_streams(FILE *old_stream, FILE *new_
@@ -38,7 +37,7 @@ index c933154..638839d 100644
38 } 37 }
39+#else 38+#else
40+{ 39+{
41+ return (freopen(NULL, mode, *stream) != NULL) 40+ return (freopen(NULL, mode, *stream) != NULL);
42+} 41+}
43+#endif 42+#endif
44 43
@@ -76,5 +75,5 @@ index 9a4deb7..f1f18e6 100644
76 strerror(errno)); 75 strerror(errno));
77 return 0; 76 return 0;
78-- 77--
792.9.3 782.12.0
80 79
diff --git a/meta-oe/recipes-support/lvm2/lvm2/0002-Guard-use-of-mallinfo-with-__GLIBC__.patch b/meta-oe/recipes-support/lvm2/lvm2/0002-Guard-use-of-mallinfo-with-__GLIBC__.patch
index 5baafab3e..95dcede33 100644
--- a/meta-oe/recipes-support/lvm2/lvm2/0002-Guard-use-of-mallinfo-with-__GLIBC__.patch
+++ b/meta-oe/recipes-support/lvm2/lvm2/0002-Guard-use-of-mallinfo-with-__GLIBC__.patch
@@ -1,20 +1,19 @@
1From 8706a6d33753d8b2cf5bb2a12bd6880b371ce337 Mon Sep 17 00:00:00 2001 1From 3ae9c0b607ec33fb07f32a41e9d28cc9068dd39a Mon Sep 17 00:00:00 2001
2From: Dengke Du <dengke.du@windriver.com> 2From: Dengke Du <dengke.du@windriver.com>
3Date: Tue, 25 Oct 2016 11:52:44 +0000 3Date: Tue, 25 Oct 2016 11:52:44 +0000
4Subject: [PATCH 2/4] Guard use of mallinfo() with __GLIBC__ 4Subject: [PATCH] Guard use of mallinfo() with __GLIBC__
5 5
6This API is glibc-only 6This API is glibc-only
7 7
8Signed-off-by: Khem Raj <raj.khem@gmail.com> 8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9Signed-off-by: Dengke Du <dengke.du@windriver.com> 9Signed-off-by: Dengke Du <dengke.du@windriver.com>
10--- 10
11Upstream-Status: Pending
12--- 11---
13 lib/mm/memlock.c | 2 +- 12 lib/mm/memlock.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-) 13 1 file changed, 1 insertion(+), 1 deletion(-)
15 14
16diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c 15diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c
17index da90144..c1bf8fb 100644 16index da90144..f34f890 100644
18--- a/lib/mm/memlock.c 17--- a/lib/mm/memlock.c
19+++ b/lib/mm/memlock.c 18+++ b/lib/mm/memlock.c
20@@ -150,7 +150,7 @@ static void _touch_memory(void *mem, size_t size) 19@@ -150,7 +150,7 @@ static void _touch_memory(void *mem, size_t size)
@@ -22,10 +21,10 @@ index da90144..c1bf8fb 100644
22 static void _allocate_memory(void) 21 static void _allocate_memory(void)
23 { 22 {
24-#ifndef VALGRIND_POOL 23-#ifndef VALGRIND_POOL
25+#ifndef VALGRIND_POOL && defined(__GLIBC__) 24+#if !defined(VALGRIND_POOL) && defined(__GLIBC__)
26 void *stack_mem; 25 void *stack_mem;
27 struct rlimit limit; 26 struct rlimit limit;
28 int i, area = 0, missing = _size_malloc_tmp, max_areas = 32, hblks; 27 int i, area = 0, missing = _size_malloc_tmp, max_areas = 32, hblks;
29-- 28--
302.9.3 292.12.0
31 30