diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2015-03-15 09:02:14 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-20 23:56:03 +0000 |
commit | 3732fdec0a22a6d8de7f9a9858c60b8e492d2dc0 (patch) | |
tree | ea2c4aa98e79958d69c365ab447217bedd98c833 /meta/recipes-extended | |
parent | 8e19349b696d4a3e8576ba64e935cf3a43bc7940 (diff) | |
download | poky-3732fdec0a22a6d8de7f9a9858c60b8e492d2dc0.tar.gz |
mdadm: Fix build in x32 ABI
Add a patch for fix build in x32 ABI, the fail is cause by time_t
printf because time_t is long int in x64 and long long int in x32.
[YOCTO #7422]
(From OE-Core rev: 753994a2016758ec058822d727b05ef9532b97c8)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/mdadm/files/mdadm-3.3.2_x32_abi_time_t.patch | 26 | ||||
-rw-r--r-- | meta/recipes-extended/mdadm/mdadm_3.3.2.bb | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/files/mdadm-3.3.2_x32_abi_time_t.patch b/meta/recipes-extended/mdadm/files/mdadm-3.3.2_x32_abi_time_t.patch new file mode 100644 index 0000000000..143a8d952e --- /dev/null +++ b/meta/recipes-extended/mdadm/files/mdadm-3.3.2_x32_abi_time_t.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | When try to print time_t values as a long int it causes an error because time_t | ||
2 | data type in x32 ABI is long long int. | ||
3 | |||
4 | Upstream-Status: Pending | ||
5 | |||
6 | Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> | ||
7 | |||
8 | diff --git a/monitor.c b/monitor.c | ||
9 | index f81e707..19ea041 100644 | ||
10 | --- a/monitor.c | ||
11 | +++ b/monitor.c | ||
12 | @@ -260,8 +260,13 @@ static int read_and_act(struct active_array *a) | ||
13 | } | ||
14 | |||
15 | gettimeofday(&tv, NULL); | ||
16 | +#if defined(__x86_64__) && defined(__ILP32__) | ||
17 | + dprintf("%s(%d): %lld.%06lld state:%s prev:%s action:%s prev: %s start:%llu\n", | ||
18 | +#else | ||
19 | dprintf("%s(%d): %ld.%06ld state:%s prev:%s action:%s prev: %s start:%llu\n", | ||
20 | - __func__, a->info.container_member, | ||
21 | +#endif | ||
22 | + __func__, | ||
23 | + a->info.container_member, | ||
24 | tv.tv_sec, tv.tv_usec, | ||
25 | array_states[a->curr_state], | ||
26 | array_states[a->prev_state], | ||
diff --git a/meta/recipes-extended/mdadm/mdadm_3.3.2.bb b/meta/recipes-extended/mdadm/mdadm_3.3.2.bb index 7140990396..c6a5635207 100644 --- a/meta/recipes-extended/mdadm/mdadm_3.3.2.bb +++ b/meta/recipes-extended/mdadm/mdadm_3.3.2.bb | |||
@@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | |||
11 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \ | 11 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.xz \ |
12 | file://mdadm-3.2.2_fix_for_x32.patch \ | 12 | file://mdadm-3.2.2_fix_for_x32.patch \ |
13 | file://gcc-4.9.patch \ | 13 | file://gcc-4.9.patch \ |
14 | file://mdadm-3.3.2_x32_abi_time_t.patch \ | ||
14 | " | 15 | " |
15 | 16 | ||
16 | SRC_URI[md5sum] = "44698d351501cac6a89072dc877eb220" | 17 | SRC_URI[md5sum] = "44698d351501cac6a89072dc877eb220" |