diff options
author | Tim Orling <timothy.t.orling@linux.intel.com> | 2018-01-21 16:49:53 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-23 23:43:45 +0000 |
commit | 0ac08808af63b339849c10c5f933e767125b3acd (patch) | |
tree | 18012ea6084ec157516be707c29912b0b894b0e0 /meta/recipes-devtools/systemd-bootchart/systemd-bootchart/0003-musl-does-not-provide-canonicalize_file_name.patch | |
parent | 78bdc1b7246c22c8abe9fe51143e7403bc05791f (diff) | |
download | poky-0ac08808af63b339849c10c5f933e767125b3acd.tar.gz |
systemd-bootchart: upgrade to v233; fix build with musl
* Drop xlocale.h patch, merged upstream
* Rework patches from systemd to fix musl build
- comparison_fn_t is glibc specific
- musl does not provide printf.h
- musl does not provide canonicalize_file_name
(From OE-Core rev: 49ebc0acae1c060ab20631b9a7215e14ce150e6d)
Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/systemd-bootchart/systemd-bootchart/0003-musl-does-not-provide-canonicalize_file_name.patch')
-rw-r--r-- | meta/recipes-devtools/systemd-bootchart/systemd-bootchart/0003-musl-does-not-provide-canonicalize_file_name.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/0003-musl-does-not-provide-canonicalize_file_name.patch b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/0003-musl-does-not-provide-canonicalize_file_name.patch new file mode 100644 index 0000000000..7670d95f07 --- /dev/null +++ b/meta/recipes-devtools/systemd-bootchart/systemd-bootchart/0003-musl-does-not-provide-canonicalize_file_name.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 79396449d264bde58b4daa3ef6dd99f0f0652429 Mon Sep 17 00:00:00 2001 | ||
2 | From: Tim Orling <timothy.t.orling@linux.intel.com> | ||
3 | Date: Thu, 28 Dec 2017 22:10:58 -0800 | ||
4 | Subject: [PATCH 3/3] musl does not provide canonicalize_file_name | ||
5 | |||
6 | Reuse the approach from systemd: | ||
7 | systemd/0007-check-for-missing-canonicalize_file_name.patch | ||
8 | |||
9 | Based on work by: Khem Raj <raj.khem@gmail.com> | ||
10 | |||
11 | Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com> | ||
12 | --- | ||
13 | Upstream-Status: Pending | ||
14 | |||
15 | src/path-util.c | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/src/path-util.c b/src/path-util.c | ||
19 | index 2fb6366..12e2e17 100644 | ||
20 | --- a/src/path-util.c | ||
21 | +++ b/src/path-util.c | ||
22 | @@ -63,7 +63,7 @@ char **path_strv_resolve(char **l, const char *prefix) { | ||
23 | t = *s; | ||
24 | |||
25 | errno = 0; | ||
26 | - u = canonicalize_file_name(t); | ||
27 | + u = realpath(t, NULL); | ||
28 | if (!u) { | ||
29 | if (errno == ENOENT) { | ||
30 | if (prefix) { | ||
31 | -- | ||
32 | 2.13.6 | ||
33 | |||