diff options
-rw-r--r-- | meta-oe/recipes-devtools/openocd/openocd/0001-Do-not-include-syscrtl.h-with-glibc.patch | 33 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/openocd/openocd_git.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/openocd/openocd/0001-Do-not-include-syscrtl.h-with-glibc.patch b/meta-oe/recipes-devtools/openocd/openocd/0001-Do-not-include-syscrtl.h-with-glibc.patch new file mode 100644 index 0000000000..618ce26890 --- /dev/null +++ b/meta-oe/recipes-devtools/openocd/openocd/0001-Do-not-include-syscrtl.h-with-glibc.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From a763610719e7d7f6cdc45569b6fbfdb91bb7c87b Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 27 Jul 2019 14:30:08 -0700 | ||
4 | Subject: [PATCH] Do not include syscrtl.h with glibc | ||
5 | |||
6 | glibc 2.30 has deprecated it see [1] | ||
7 | Fixes | ||
8 | sys/sysctl.h:21:2: error: "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror,-W#warnings] | ||
9 | |||
10 | [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=744e829637162bb7d5029632aacf341c64b86990 | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | src/helper/options.c | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/src/helper/options.c b/src/helper/options.c | ||
19 | index 12755e010..4007e37f6 100644 | ||
20 | --- a/src/helper/options.c | ||
21 | +++ b/src/helper/options.c | ||
22 | @@ -34,7 +34,7 @@ | ||
23 | #if IS_DARWIN | ||
24 | #include <libproc.h> | ||
25 | #endif | ||
26 | -#ifdef HAVE_SYS_SYSCTL_H | ||
27 | +#if defined(HAVE_SYS_SYSCTL_H) && !defined(__GLIBC__) | ||
28 | #include <sys/sysctl.h> | ||
29 | #endif | ||
30 | #if IS_WIN32 && !IS_CYGWIN | ||
31 | -- | ||
32 | 2.22.0 | ||
33 | |||
diff --git a/meta-oe/recipes-devtools/openocd/openocd_git.bb b/meta-oe/recipes-devtools/openocd/openocd_git.bb index b50c3acf4c..df10177ae9 100644 --- a/meta-oe/recipes-devtools/openocd/openocd_git.bb +++ b/meta-oe/recipes-devtools/openocd/openocd_git.bb | |||
@@ -10,6 +10,7 @@ SRC_URI = " \ | |||
10 | git://repo.or.cz/r/jimtcl.git;protocol=http;destsuffix=git/jimtcl;name=jimtcl \ | 10 | git://repo.or.cz/r/jimtcl.git;protocol=http;destsuffix=git/jimtcl;name=jimtcl \ |
11 | git://repo.or.cz/r/libjaylink.git;protocol=http;destsuffix=git/src/jtag/drivers/libjaylink;name=libjaylink \ | 11 | git://repo.or.cz/r/libjaylink.git;protocol=http;destsuffix=git/src/jtag/drivers/libjaylink;name=libjaylink \ |
12 | file://0001-esirisc_flash-Rename-PAGE_SIZE-to-FLASH_PAGE_SIZE.patch \ | 12 | file://0001-esirisc_flash-Rename-PAGE_SIZE-to-FLASH_PAGE_SIZE.patch \ |
13 | file://0001-Do-not-include-syscrtl.h-with-glibc.patch \ | ||
13 | " | 14 | " |
14 | 15 | ||
15 | SRCREV_FORMAT = "openocd" | 16 | SRCREV_FORMAT = "openocd" |