diff options
-rw-r--r-- | meta/recipes-extended/stress-ng/stress-ng/no_daddr_t.patch | 22 | ||||
-rw-r--r-- | meta/recipes-extended/stress-ng/stress-ng_0.11.12.bb | 2 |
2 files changed, 23 insertions, 1 deletions
diff --git a/meta/recipes-extended/stress-ng/stress-ng/no_daddr_t.patch b/meta/recipes-extended/stress-ng/stress-ng/no_daddr_t.patch new file mode 100644 index 0000000000..877f4f0624 --- /dev/null +++ b/meta/recipes-extended/stress-ng/stress-ng/no_daddr_t.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | Define daddr_t if __DADDR_T_TYPE is not defined | ||
2 | |||
3 | glibc defined daddr_t but musl does not, ideally it should not be used | ||
4 | and simple int type is enough. However, its better to leave glibc behavior | ||
5 | as it is and only define it to int if daddr_t is not provided by libc | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- a/stress-ng.h | ||
11 | +++ b/stress-ng.h | ||
12 | @@ -3750,6 +3750,10 @@ struct shim_statx { | ||
13 | uint64_t __spare2[14]; | ||
14 | }; | ||
15 | |||
16 | +#ifndef __DADDR_T_TYPE | ||
17 | +typedef int daddr_t; | ||
18 | +#endif | ||
19 | + | ||
20 | /* old ustat struct */ | ||
21 | struct shim_ustat { | ||
22 | daddr_t f_tfree; | ||
diff --git a/meta/recipes-extended/stress-ng/stress-ng_0.11.12.bb b/meta/recipes-extended/stress-ng/stress-ng_0.11.12.bb index 45f4bb41ad..c00086c095 100644 --- a/meta/recipes-extended/stress-ng/stress-ng_0.11.12.bb +++ b/meta/recipes-extended/stress-ng/stress-ng_0.11.12.bb | |||
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | |||
7 | 7 | ||
8 | SRC_URI = "https://kernel.ubuntu.com/~cking/tarballs/${BPN}/${BP}.tar.xz \ | 8 | SRC_URI = "https://kernel.ubuntu.com/~cking/tarballs/${BPN}/${BP}.tar.xz \ |
9 | file://0001-Do-not-preserve-ownership-when-installing-example-jo.patch \ | 9 | file://0001-Do-not-preserve-ownership-when-installing-example-jo.patch \ |
10 | file://no_daddr_t.patch \ | ||
10 | " | 11 | " |
11 | SRC_URI[sha256sum] = "0ccf437ca1876a3e8a55986c6481697045203a17f5994cb2f5096cd461d18031" | 12 | SRC_URI[sha256sum] = "0ccf437ca1876a3e8a55986c6481697045203a17f5994cb2f5096cd461d18031" |
12 | 13 | ||
@@ -23,4 +24,3 @@ do_install() { | |||
23 | oe_runmake DESTDIR=${D} install | 24 | oe_runmake DESTDIR=${D} install |
24 | } | 25 | } |
25 | 26 | ||
26 | COMPATIBLE_HOST_libc-musl = 'null' | ||