Mail archive
alpine-aports

[alpine-aports] [PATCH] main/mdocml: silence makewhatis outdated moan

From: Paul Bredbury <brebs_at_sent.com>
Date: Sun, 3 Mar 2019 15:38:46 +0000

Since the mdocml-apropos package (which provides makewhatis) is not pulled in by default, and isn't needed, then stop moaning about it being missing.

Silences e.g.:

$ man neomutt
man: outdated mandoc.db lacks neomutt(1) entry, run makewhatis /usr/share/man
---
 main/mdocml/APKBUILD                    |  4 +++-
 main/mdocml/outdated-warn-disable.patch | 12 ++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 main/mdocml/outdated-warn-disable.patch
diff --git a/main/mdocml/APKBUILD b/main/mdocml/APKBUILD
index 518e06d457..ad5866c460 100644
--- a/main/mdocml/APKBUILD
+++ b/main/mdocml/APKBUILD
_at_@ -2,7 +2,7 @@
 pkgname=mdocml
 _pkgname=mandoc
 pkgver=1.14.3
-pkgrel=0
+pkgrel=1
 pkgdesc="mdoc/man compiler"
 url="http://mdocml.bsd.lv/"
 arch="all"
_at_@ -16,6 +16,7 @@ subpackages="$pkgname-doc $pkgname-dev man::noarch $pkgname-apropos $pkgname-soe
 source="http://mdocml.bsd.lv/snapshots/$_pkgname-$pkgver.tar.gz
 	shared-libmandoc.patch
 	pager.patch
+	outdated-warn-disable.patch
 	mdocml-apropos.trigger
 	"
 
_at_@ -82,4 +83,5 @@ soelim() {
 sha512sums="cd638fbacb068fcd6191f2a4e941effc010e3ebf06a3e32847b892c2e561771d03d5bca8fbdf8434d6491f4b68df3f443e2568b79193b7342044fba476fcd30b  mandoc-1.14.3.tar.gz
 d127e635dfb54f9a88a28a8312f23495ec1e9356202e03ccfad1f7528f26f1cbfa7fc2c7b20c262523941d661fa7ba570a64a63c23f3e7fffc954d00bd5769c7  shared-libmandoc.patch
 04947a275df99298591c2a46fb81b74c7c3fcb9f3cf8fb718cf1e32eeae5409e90a3bca89e542f8aa1b30792e837fd3d716303a636d1a3ec165fbb9529546a64  pager.patch
+ced05e8b57fb9705c6d8d8570cd6b06ad187511a4c243ac2dbc34064aa164ca49e0c877160134161dcb98ebd5e61a5c23d5741f03ef95903ff56193dd07f36a1  outdated-warn-disable.patch
 704bc159acfc639e10c7d505372d303cb5784c8e9eb30084236ad89978978d4ba74f3127d4597d78594b64182c47a00c011f8bb3271d2b784f03a2a411ccb1d8  mdocml-apropos.trigger"
diff --git a/main/mdocml/outdated-warn-disable.patch b/main/mdocml/outdated-warn-disable.patch
new file mode 100644
index 0000000000..f960de7d1d
--- /dev/null
+++ b/main/mdocml/outdated-warn-disable.patch
_at_@ -0,0 +1,12 @@
+diff -Naur a/main.c b/main.c
+--- a/main.c	2019-03-03 15:24:23.600767518 +0000
++++ b/main.c	2019-03-03 15:27:37.609820365 +0000
+_at_@ -676,8 +676,6 @@
+ 	return globres != -1;
+ 
+ found:
+-	warnx("outdated mandoc.db lacks %s(%s) entry, run %s %s",
+-	    name, sec, BINM_MAKEWHATIS, paths->paths[ipath]);
+ 	if (res == NULL) {
+ 		free(file);
+ 		return 1;
-- 
2.21.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Sun Mar 03 2019 - 15:38:46 UTC