diff options
| -rw-r--r-- | meta/recipes-extended/man-db/files/0001-man-Move-local-variable-declaration-to-function-scop.patch | 41 | ||||
| -rw-r--r-- | meta/recipes-extended/man-db/man-db_2.10.0.bb | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-extended/man-db/files/0001-man-Move-local-variable-declaration-to-function-scop.patch b/meta/recipes-extended/man-db/files/0001-man-Move-local-variable-declaration-to-function-scop.patch new file mode 100644 index 0000000000..820b17b5de --- /dev/null +++ b/meta/recipes-extended/man-db/files/0001-man-Move-local-variable-declaration-to-function-scop.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From 4b5e00ad020ec327cbc934528d02aa8c4fe3910b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 9 Feb 2022 17:30:16 -0800 | ||
| 4 | Subject: [PATCH] man: Move local variable declaration to function scope | ||
| 5 | |||
| 6 | There is a clang bug [1] unearthed here, so help clang by re-arranging | ||
| 7 | code without changing the logic, until its fixed in clang | ||
| 8 | |||
| 9 | [1] https://github.com/llvm/llvm-project/issues/53692 | ||
| 10 | |||
| 11 | Upstream-Status: Inappropriate [Inappropriate: Clang bug] | ||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | src/man.c | 4 ++-- | ||
| 15 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/src/man.c b/src/man.c | ||
| 18 | index c91abf1..3240eea 100644 | ||
| 19 | --- a/src/man.c | ||
| 20 | +++ b/src/man.c | ||
| 21 | @@ -352,7 +352,7 @@ static void init_html_pager (void) | ||
| 22 | static error_t parse_opt (int key, char *arg, struct argp_state *state) | ||
| 23 | { | ||
| 24 | static bool apropos, whatis; /* retain values between calls */ | ||
| 25 | - | ||
| 26 | + char *s; | ||
| 27 | /* Please keep these keys in the same order as in options above. */ | ||
| 28 | switch (key) { | ||
| 29 | case 'C': | ||
| 30 | @@ -383,7 +383,7 @@ static error_t parse_opt (int key, char *arg, struct argp_state *state) | ||
| 31 | |||
| 32 | case OPT_WARNINGS: | ||
| 33 | #ifdef NROFF_WARNINGS | ||
| 34 | - char *s = xstrdup (arg ? arg : default_roff_warnings); | ||
| 35 | + s = xstrdup (arg ? arg : default_roff_warnings); | ||
| 36 | const char *warning; | ||
| 37 | |||
| 38 | for (warning = strtok (s, ","); warning; | ||
| 39 | -- | ||
| 40 | 2.35.1 | ||
| 41 | |||
diff --git a/meta/recipes-extended/man-db/man-db_2.10.0.bb b/meta/recipes-extended/man-db/man-db_2.10.0.bb index 6a8ac2e3e3..a604930198 100644 --- a/meta/recipes-extended/man-db/man-db_2.10.0.bb +++ b/meta/recipes-extended/man-db/man-db_2.10.0.bb | |||
| @@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \ | |||
| 7 | 7 | ||
| 8 | SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/man-db/man-db-${PV}.tar.xz \ | 8 | SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/man-db/man-db-${PV}.tar.xz \ |
| 9 | file://99_mandb \ | 9 | file://99_mandb \ |
| 10 | file://0001-man-Move-local-variable-declaration-to-function-scop.patch \ | ||
| 10 | file://man_db.conf-avoid-multilib-install-file-conflict.patch" | 11 | file://man_db.conf-avoid-multilib-install-file-conflict.patch" |
| 11 | SRC_URI[sha256sum] = "0a8629022f7117dc7fc6473c6fdb14913b24b106059bb056abee87dbd6070c79" | 12 | SRC_URI[sha256sum] = "0a8629022f7117dc7fc6473c6fdb14913b24b106059bb056abee87dbd6070c79" |
| 12 | 13 | ||
