summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-extended/man-db/files/0001-check-for-_nl_msg_cat_cntr-in-configure.patch61
-rw-r--r--meta/recipes-extended/man-db/files/flex.patch36
-rw-r--r--meta/recipes-extended/man-db/man-db_2.13.1.bb (renamed from meta/recipes-extended/man-db/man-db_2.13.0.bb)6
3 files changed, 2 insertions, 101 deletions
diff --git a/meta/recipes-extended/man-db/files/0001-check-for-_nl_msg_cat_cntr-in-configure.patch b/meta/recipes-extended/man-db/files/0001-check-for-_nl_msg_cat_cntr-in-configure.patch
deleted file mode 100644
index feef52b11c..0000000000
--- a/meta/recipes-extended/man-db/files/0001-check-for-_nl_msg_cat_cntr-in-configure.patch
+++ /dev/null
@@ -1,61 +0,0 @@
1From ea00e32a87cc733dd5aa05cef407a5bee3e6db29 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 18 Mar 2025 22:42:45 -0700
4Subject: [PATCH] check for _nl_msg_cat_cntr in configure
5
6_nl_msg_cat_cntr is not available in all implementations e.g. musl libintl
7does not have it, therefore add a check to detect it and use it only if
8it is found.
9
10Upstream-Status: Backport [https://gitlab.com/man-db/man-db/-/commit/7430ca617b5cee3d4420da3158382c5ffbc3e77d]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 configure.ac | 9 +++++++++
14 include/manconfig.h | 6 ++++--
15 2 files changed, 13 insertions(+), 2 deletions(-)
16
17--- a/configure.ac
18+++ b/configure.ac
19@@ -404,6 +404,15 @@ AC_TYPE_PID_T
20 AC_TYPE_UID_T
21 AC_TYPE_SIZE_T
22
23+dnl _nl_msg_cat_cntr is required for GNU gettext
24+AC_MSG_CHECKING([for _nl_msg_cat_cntr])
25+AC_LINK_IFELSE([AC_LANG_PROGRAM(
26+ [[#include <libintl.h>
27+ extern int _nl_msg_cat_cntr;]],
28+ [[++_nl_msg_cat_cntr;]])],
29+ AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_NL_MSG_CAT_CNTR], [], [_nl_msg_cat_cntr from GNU Gettext]),
30+ AC_MSG_RESULT([no]))
31+
32 # Check for pipeline library.
33 PKG_CHECK_MODULES([libpipeline], [libpipeline >= 1.5.0])
34
35--- a/include/manconfig.h
36+++ b/include/manconfig.h
37@@ -24,6 +24,8 @@
38 #ifndef MANCONFIG_H
39 #define MANCONFIG_H
40
41+#include "config.h"
42+
43 /* STD_SECTIONS must contain all of your man hierarchy subdirectories. The
44 order is important. Manual pages will be displayed in this order. Ie
45 if "1" comes before "2", then a kill(1) will be displayed in preference to
46@@ -138,13 +140,13 @@
47 #define UNLIKELY(cond) __builtin_expect ((cond), 0)
48
49 /* GNU gettext needs to know when the locale changes. This macro tells it. */
50-#ifdef ENABLE_NLS
51+#ifdef HAVE_NL_MSG_CAT_CNTR
52 extern int _nl_msg_cat_cntr;
53 # define locale_changed() \
54 do { \
55 ++_nl_msg_cat_cntr; \
56 } while (0)
57-#else /* !ENABLE_NLS */
58+#else /* !HAVE_NL_MSG_CAT_CNTR */
59 # define locale_changed()
60 #endif /* ENABLE_NLS */
61
diff --git a/meta/recipes-extended/man-db/files/flex.patch b/meta/recipes-extended/man-db/files/flex.patch
deleted file mode 100644
index c18be7e36a..0000000000
--- a/meta/recipes-extended/man-db/files/flex.patch
+++ /dev/null
@@ -1,36 +0,0 @@
1From d3f7c160bddf5d879c74e19e4f577882e8b22559 Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@arm.com>
3Date: Wed, 22 Jan 2025 14:16:48 +0000
4Subject: [PATCH] configure: check for shipped generated sources in source
5 directory
6
7The configure script fails if it can't find flex and the pregenerated
8source code isn't available, as is the case in builds from git whereas
9tarballs include the code.
10
11However this breaks with out-of-tree builds, where cwd during configure
12is the build directory not the source directory, and the pregenerated
13sources will always be inside the source directory.
14
15Upstream-Status: Submitted [https://gitlab.com/man-db/man-db/-/merge_requests/12]
16Signed-off-by: Ross Burton <ross.burton@arm.com>
17---
18 configure.ac | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/configure.ac b/configure.ac
22index 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--
352.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.1.bb
index a0ce2150f9..f044a47f7d 100644
--- a/meta/recipes-extended/man-db/man-db_2.13.0.bb
+++ b/meta/recipes-extended/man-db/man-db_2.13.1.bb
@@ -8,11 +8,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \
8 " 8 "
9 9
10SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/man-db/man-db-${PV}.tar.xz \ 10SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/man-db/man-db-${PV}.tar.xz \
11 file://flex.patch \
12 file://0001-check-for-_nl_msg_cat_cntr-in-configure.patch \
13 file://99_mandb \ 11 file://99_mandb \
14 " 12 "
15SRC_URI[sha256sum] = "82f0739f4f61aab5eb937d234de3b014e777b5538a28cbd31433c45ae09aefb9" 13SRC_URI[sha256sum] = "8afebb6f7eb6bb8542929458841f5c7e6f240e30c86358c1fbcefbea076c87d9"
16 14
17DEPENDS = "libpipeline gdbm groff-native base-passwd" 15DEPENDS = "libpipeline gdbm groff-native base-passwd"
18RDEPENDS:${PN} += "base-passwd" 16RDEPENDS:${PN} += "base-passwd"