diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-10-26 22:10:42 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-08 22:23:45 +0000 |
commit | acdee728f0f6358dda709304ec307d737124aee6 (patch) | |
tree | a275cdf37ecb69fc9fbf9cac4587fadeeb1432d4 /meta/recipes-core/systemd/systemd/0010-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch | |
parent | 65a3b7b7b6aa91153ac3bd78411665316f1b2cba (diff) | |
download | openembedded-core-contrib-acdee728f0f6358dda709304ec307d737124aee6.tar.gz |
systemd: Fix build on musl
Add needed patches for portability across glibc/musl
enable systemd on musl too
Disable utmp,ldconfig,nss,resolved,localed for musl
which is not supported on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0010-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0010-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0010-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch b/meta/recipes-core/systemd/systemd/0010-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch new file mode 100644 index 0000000000..808c83aba3 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0010-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch @@ -0,0 +1,49 @@ +From 6e9d2bcaa6f886b2384c1c35a04e4ebc148aea68 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Mon, 23 Oct 2017 12:40:25 -0700 +Subject: [PATCH 10/12] test-sizeof.c: Disable tests for missing typedefs in + musl + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- +Upstream-Status: Pending + + src/test/test-sizeof.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/test/test-sizeof.c b/src/test/test-sizeof.c +index 269adfd18..ba7855dff 100644 +--- a/src/test/test-sizeof.c ++++ b/src/test/test-sizeof.c +@@ -18,7 +18,6 @@ + ***/ + + #include <stdio.h> +- + #include "time-util.h" + + /* Print information about various types. Useful when diagnosing +@@ -48,8 +47,10 @@ int main(void) { + info(unsigned); + info(long unsigned); + info(long long unsigned); ++#ifdef __GLIBC__ + info(__syscall_ulong_t); + info(__syscall_slong_t); ++#endif + + info(float); + info(double); +@@ -59,7 +60,9 @@ int main(void) { + info(ssize_t); + info(time_t); + info(usec_t); ++#ifdef __GLIBC__ + info(__time_t); ++#endif + + info(enum Enum); + info(enum BigEnum); +-- +2.14.2 + |