diff options
Diffstat (limited to 'meta/recipes-devtools/flex')
-rw-r--r-- | meta/recipes-devtools/flex/flex/0001-Emit-no-line-directives-if-gen_line_dirs-is-false.patch | 32 | ||||
-rw-r--r-- | meta/recipes-devtools/flex/flex_2.6.4.bb | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/flex/flex/0001-Emit-no-line-directives-if-gen_line_dirs-is-false.patch b/meta/recipes-devtools/flex/flex/0001-Emit-no-line-directives-if-gen_line_dirs-is-false.patch new file mode 100644 index 0000000000..c8202b6bd5 --- /dev/null +++ b/meta/recipes-devtools/flex/flex/0001-Emit-no-line-directives-if-gen_line_dirs-is-false.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 440f3f55739468cd26e22f31871eca8cbbd53294 Mon Sep 17 00:00:00 2001 | ||
2 | From: Oleksiy Obitotskyy <oobitots@cisco.com> | ||
3 | Date: Wed, 6 Jan 2021 06:12:14 -0800 | ||
4 | Subject: [PATCH] Emit no #line directives if gen_line_dirs is false | ||
5 | |||
6 | If we set --noline we should not print line directives. | ||
7 | But setting --noline means gen_line_dirs is false. | ||
8 | |||
9 | Upstream-Status: Submitted | ||
10 | Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com> | ||
11 | --- | ||
12 | src/buf.c | 4 ++-- | ||
13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/src/buf.c b/src/buf.c | ||
16 | index 185083c..4439e28 100644 | ||
17 | --- a/src/buf.c | ||
18 | +++ b/src/buf.c | ||
19 | @@ -95,8 +95,8 @@ struct Buf *buf_linedir (struct Buf *buf, const char* filename, int lineno) | ||
20 | const char *src; | ||
21 | size_t tsz; | ||
22 | |||
23 | - if (gen_line_dirs) | ||
24 | - return buf; | ||
25 | + if (!gen_line_dirs) | ||
26 | + return buf; | ||
27 | |||
28 | tsz = strlen("#line \"\"\n") + /* constant parts */ | ||
29 | 2 * strlen (filename) + /* filename with possibly all backslashes escaped */ | ||
30 | -- | ||
31 | 2.26.2.Cisco | ||
32 | |||
diff --git a/meta/recipes-devtools/flex/flex_2.6.4.bb b/meta/recipes-devtools/flex/flex_2.6.4.bb index 3d57572865..1d43d2228a 100644 --- a/meta/recipes-devtools/flex/flex_2.6.4.bb +++ b/meta/recipes-devtools/flex/flex_2.6.4.bb | |||
@@ -16,6 +16,7 @@ SRC_URI = "https://github.com/westes/flex/releases/download/v${PV}/flex-${PV}.ta | |||
16 | ${@bb.utils.contains('PTEST_ENABLED', '1', '', 'file://disable-tests.patch', d)} \ | 16 | ${@bb.utils.contains('PTEST_ENABLED', '1', '', 'file://disable-tests.patch', d)} \ |
17 | file://0001-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch \ | 17 | file://0001-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch \ |
18 | file://check-funcs.patch \ | 18 | file://check-funcs.patch \ |
19 | file://0001-Emit-no-line-directives-if-gen_line_dirs-is-false.patch \ | ||
19 | " | 20 | " |
20 | 21 | ||
21 | SRC_URI[md5sum] = "2882e3179748cc9f9c23ec593d6adc8d" | 22 | SRC_URI[md5sum] = "2882e3179748cc9f9c23ec593d6adc8d" |