diff options
| -rw-r--r-- | meta/recipes-extended/man-db/files/flex.patch | 36 | ||||
| -rw-r--r-- | meta/recipes-extended/man-db/man-db_2.13.0.bb | 1 |
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-extended/man-db/files/flex.patch b/meta/recipes-extended/man-db/files/flex.patch new file mode 100644 index 0000000000..c18be7e36a --- /dev/null +++ b/meta/recipes-extended/man-db/files/flex.patch | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | From d3f7c160bddf5d879c74e19e4f577882e8b22559 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ross Burton <ross.burton@arm.com> | ||
| 3 | Date: Wed, 22 Jan 2025 14:16:48 +0000 | ||
| 4 | Subject: [PATCH] configure: check for shipped generated sources in source | ||
| 5 | directory | ||
| 6 | |||
| 7 | The configure script fails if it can't find flex and the pregenerated | ||
| 8 | source code isn't available, as is the case in builds from git whereas | ||
| 9 | tarballs include the code. | ||
| 10 | |||
| 11 | However this breaks with out-of-tree builds, where cwd during configure | ||
| 12 | is the build directory not the source directory, and the pregenerated | ||
| 13 | sources will always be inside the source directory. | ||
| 14 | |||
| 15 | Upstream-Status: Submitted [https://gitlab.com/man-db/man-db/-/merge_requests/12] | ||
| 16 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
| 17 | --- | ||
| 18 | configure.ac | 2 +- | ||
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 20 | |||
| 21 | diff --git a/configure.ac b/configure.ac | ||
| 22 | index 7e9148fb..49a213fd 100644 | ||
| 23 | --- a/configure.ac | ||
| 24 | +++ b/configure.ac | ||
| 25 | @@ -380,7 +380,7 @@ dnl To add more decompressors just follow the scheme above. | ||
| 26 | dnl The "noyywrap" argument is new in Autoconf 2.70, but this also works | ||
| 27 | dnl fine with older versions that ignore the argument. | ||
| 28 | AC_PROG_LEX([noyywrap]) | ||
| 29 | -if test "$LEX" = ":" && (test ! -e src/lexgrog.c || test ! -e src/zsoelim.c) | ||
| 30 | +if test "$LEX" = ":" && (test ! -e $srcdir/src/lexgrog.c || test ! -e $srcdir/src/zsoelim.c) | ||
| 31 | then | ||
| 32 | AC_MSG_ERROR([flex is required when building from revision control]) | ||
| 33 | fi | ||
| 34 | -- | ||
| 35 | 2.43.0 | ||
| 36 | |||
diff --git a/meta/recipes-extended/man-db/man-db_2.13.0.bb b/meta/recipes-extended/man-db/man-db_2.13.0.bb index 2fa18a8f24..2178239bb6 100644 --- a/meta/recipes-extended/man-db/man-db_2.13.0.bb +++ b/meta/recipes-extended/man-db/man-db_2.13.0.bb | |||
| @@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \ | |||
| 8 | " | 8 | " |
| 9 | 9 | ||
| 10 | SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/man-db/man-db-${PV}.tar.xz \ | 10 | SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/man-db/man-db-${PV}.tar.xz \ |
| 11 | file://flex.patch \ | ||
| 11 | file://99_mandb \ | 12 | file://99_mandb \ |
| 12 | " | 13 | " |
| 13 | SRC_URI[sha256sum] = "82f0739f4f61aab5eb937d234de3b014e777b5538a28cbd31433c45ae09aefb9" | 14 | SRC_URI[sha256sum] = "82f0739f4f61aab5eb937d234de3b014e777b5538a28cbd31433c45ae09aefb9" |
