summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/man-db
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/man-db')
-rw-r--r--meta/recipes-extended/man-db/files/0001-man-Move-local-variable-declaration-to-function-scop.patch38
-rw-r--r--meta/recipes-extended/man-db/man-db_2.13.1.bb (renamed from meta/recipes-extended/man-db/man-db_2.12.1.bb)18
2 files changed, 7 insertions, 49 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
deleted file mode 100644
index 57ecd48b1f..0000000000
--- a/meta/recipes-extended/man-db/files/0001-man-Move-local-variable-declaration-to-function-scop.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1From e4125223631f0d555fc327da6d8705bcc8ee5ba5 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 9 Feb 2022 17:30:16 -0800
4Subject: [PATCH] man: Move local variable declaration to function scope
5
6There is a clang bug [1] unearthed here, so help clang by re-arranging
7code without changing the logic, until its fixed in clang
8
9[1] https://github.com/llvm/llvm-project/issues/53692
10
11Upstream-Status: Inappropriate [Inappropriate: Clang bug]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 src/man.c | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/src/man.c b/src/man.c
18index 195d35d..6870989 100644
19--- a/src/man.c
20+++ b/src/man.c
21@@ -379,7 +379,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@@ -411,7 +411,7 @@ static error_t parse_opt (int key, char *arg, struct argp_state *state)
31 case OPT_WARNINGS:
32 #ifdef NROFF_WARNINGS
33 {
34- char *s = xstrdup
35+ s = xstrdup
36 (arg ? arg : default_roff_warnings);
37 const char *warning;
38
diff --git a/meta/recipes-extended/man-db/man-db_2.12.1.bb b/meta/recipes-extended/man-db/man-db_2.13.1.bb
index 27b47a7f47..f044a47f7d 100644
--- a/meta/recipes-extended/man-db/man-db_2.12.1.bb
+++ b/meta/recipes-extended/man-db/man-db_2.13.1.bb
@@ -9,23 +9,23 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \
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://99_mandb \ 11 file://99_mandb \
12 file://0001-man-Move-local-variable-declaration-to-function-scop.patch \ 12 "
13 " 13SRC_URI[sha256sum] = "8afebb6f7eb6bb8542929458841f5c7e6f240e30c86358c1fbcefbea076c87d9"
14SRC_URI[sha256sum] = "ddee249daeb78cf92bab794ccd069cc8b575992265ea20e239e887156e880265"
15 14
16DEPENDS = "libpipeline gdbm groff-native base-passwd" 15DEPENDS = "libpipeline gdbm groff-native base-passwd"
17RDEPENDS:${PN} += "base-passwd" 16RDEPENDS:${PN} += "base-passwd"
18PACKAGE_WRITE_DEPS += "base-passwd" 17PACKAGE_WRITE_DEPS += "base-passwd"
19 18
20# | /usr/src/debug/man-db/2.8.0-r0/man-db-2.8.0/src/whatis.c:939: undefined reference to `_nl_msg_cat_cntr'
21USE_NLS:libc-musl = "no"
22
23inherit gettext pkgconfig autotools systemd 19inherit gettext pkgconfig autotools systemd
24 20
25EXTRA_OECONF = "--with-pager=less --with-systemdsystemunitdir=${systemd_system_unitdir}" 21EXTRA_OECONF = "--with-pager=less --with-systemdsystemunitdir=${systemd_system_unitdir}"
26EXTRA_AUTORECONF += "-I ${S}/gl/m4" 22EXTRA_AUTORECONF += "-I ${S}/gl/m4"
27 23
24PACKAGECONFIG ??= ""
25
28PACKAGECONFIG[bzip2] = "--with-bzip2=bzip2,ac_cv_prog_have_bzip2='',bzip2" 26PACKAGECONFIG[bzip2] = "--with-bzip2=bzip2,ac_cv_prog_have_bzip2='',bzip2"
27# util-linux col is deprecated and only builds for glibc
28PACKAGECONFIG[col] = "--with-col=col,--with-col=,,util-linux-col"
29PACKAGECONFIG[gzip] = "--with-gzip=gzip,ac_cv_prog_have_gzip='',gzip" 29PACKAGECONFIG[gzip] = "--with-gzip=gzip,ac_cv_prog_have_gzip='',gzip"
30PACKAGECONFIG[lzip] = "--with-lzip=lzip,ac_cv_prog_have_lzip='',lzip" 30PACKAGECONFIG[lzip] = "--with-lzip=lzip,ac_cv_prog_have_lzip='',lzip"
31PACKAGECONFIG[lzma] = "--with-lzma=lzma,ac_cv_prog_have_lzma='',xz" 31PACKAGECONFIG[lzma] = "--with-lzma=lzma,ac_cv_prog_have_lzma='',xz"
@@ -37,14 +37,10 @@ do_install() {
37 37
38 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then 38 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
39 install -d ${D}/etc/default/volatiles 39 install -d ${D}/etc/default/volatiles
40 install -m 0644 ${WORKDIR}/99_mandb ${D}/etc/default/volatiles 40 install -m 0644 ${UNPACKDIR}/99_mandb ${D}/etc/default/volatiles
41 fi 41 fi
42} 42}
43 43
44do_install:append:libc-musl() {
45 rm -f ${D}${libdir}/charset.alias
46}
47
48FILES:${PN} += "${prefix}/lib/tmpfiles.d" 44FILES:${PN} += "${prefix}/lib/tmpfiles.d"
49 45
50FILES:${PN}-dev += "${libdir}/man-db/libman.so ${libdir}/${BPN}/libmandb.so" 46FILES:${PN}-dev += "${libdir}/man-db/libman.so ${libdir}/${BPN}/libmandb.so"