diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-02-13 22:19:46 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-02-13 22:21:56 -0800 |
commit | aef15896ff6476e5d9bb68e8fc655dcbffae21ba (patch) | |
tree | fb03e47ea4f18e175839c317fccf60e5804526a3 | |
parent | bb138b9f6b0ae7a77b5be468356a9ed0d7787c88 (diff) | |
download | meta-openembedded-aef15896ff6476e5d9bb68e8fc655dcbffae21ba.tar.gz |
can-utils: Fix build regression on musl
This got introduced with 2025.01 upgrade on musl systems
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Ricardo Simoes <ricardo.simoes@pt.bosch.com>
Cc: Mark Jonas <mark.jonas@de.bosch.com>
-rw-r--r-- | meta-oe/recipes-extended/socketcan/can-utils/0001-Include-time.h-for-timespec-struct-definition.patch | 28 | ||||
-rw-r--r-- | meta-oe/recipes-extended/socketcan/can-utils_2025.01.bb | 3 |
2 files changed, 30 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/socketcan/can-utils/0001-Include-time.h-for-timespec-struct-definition.patch b/meta-oe/recipes-extended/socketcan/can-utils/0001-Include-time.h-for-timespec-struct-definition.patch new file mode 100644 index 0000000000..91b9dd3c4e --- /dev/null +++ b/meta-oe/recipes-extended/socketcan/can-utils/0001-Include-time.h-for-timespec-struct-definition.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 4363ef59cc9f2169455f56453759d4a4d9b89a5f Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 13 Feb 2025 22:14:47 -0800 | ||
4 | Subject: [PATCH] Include time.h for timespec struct definition | ||
5 | |||
6 | Fixes | ||
7 | git/isobusfs/../libj1939.h:33:18: error: field has incomplete type 'struct timespec' | ||
8 | 33 | struct timespec next_send_time; | ||
9 | | ^ | ||
10 | |||
11 | Upstream-Status: Submitted [https://github.com/linux-can/can-utils/pull/579] | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | libj1939.h | 1 + | ||
15 | 1 file changed, 1 insertion(+) | ||
16 | |||
17 | diff --git a/libj1939.h b/libj1939.h | ||
18 | index 44393a2..7c19f43 100644 | ||
19 | --- a/libj1939.h | ||
20 | +++ b/libj1939.h | ||
21 | @@ -17,6 +17,7 @@ | ||
22 | #include <linux/can/j1939.h> | ||
23 | #include <stdbool.h> | ||
24 | #include <stdint.h> | ||
25 | +#include <time.h> | ||
26 | #include <sys/socket.h> | ||
27 | |||
28 | #ifndef J1939_LIB_H | ||
diff --git a/meta-oe/recipes-extended/socketcan/can-utils_2025.01.bb b/meta-oe/recipes-extended/socketcan/can-utils_2025.01.bb index 932aa1de20..d4ee34167d 100644 --- a/meta-oe/recipes-extended/socketcan/can-utils_2025.01.bb +++ b/meta-oe/recipes-extended/socketcan/can-utils_2025.01.bb | |||
@@ -4,7 +4,8 @@ LIC_FILES_CHKSUM = "file://include/linux/can.h;endline=44;md5=a9e1169c6c9a114a61 | |||
4 | 4 | ||
5 | DEPENDS = "libsocketcan" | 5 | DEPENDS = "libsocketcan" |
6 | 6 | ||
7 | SRC_URI = "git://github.com/linux-can/${BPN}.git;protocol=https;branch=master" | 7 | SRC_URI = "git://github.com/linux-can/${BPN}.git;protocol=https;branch=master \ |
8 | file://0001-Include-time.h-for-timespec-struct-definition.patch" | ||
8 | 9 | ||
9 | SRCREV = "01083a64ebf28cc716efe2d2fd51c141042ae34b" | 10 | SRCREV = "01083a64ebf28cc716efe2d2fd51c141042ae34b" |
10 | 11 | ||