mandoc: Simplify package and fix pointless error

This commit is contained in:
Dylan Araps 2020-01-22 22:32:24 +02:00
parent 7f6c33cfc1
commit c64afb1339
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
4 changed files with 20 additions and 11 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
patch -p1 < mandoc-no-warn.patch
sed -i 's,"more -s","less",g' main.c
sed -i "s/CC=.*/CC='$CC'/" configure
@ -9,18 +11,10 @@ MANDIR=/usr/share/man
LIBDIR=/usr/lib
CC="${CC:-gcc}"
CFLAGS="$CFLAGS"
MANPATH_DEFAULT=/usr/share/man
LN="ln -sf"
EOF
MANPATH_BASE=/usr/share/man ./configure
./configure
make
make -j1 DESTDIR="$1" base-install lib-install
# Make binaries writable.
chmod -v u+w "$1/usr/bin/"*
# Remove all development files.
rm -rf "$1/usr/include" \
"$1/usr/lib" \
"$1/usr/share/man/man3"
make -j1 DESTDIR="$1" base-install

View File

@ -1 +1,2 @@
8219b42cb56fc07b2aa660574e6211ac38eefdbf21f41b698d3348793ba5d8f7 mandoc-1.14.5.tar.gz
eaff34c03d1b6741cf6b24a394c63ad6096e4391578414b9da986294ee817a25 mandoc-no-warn.patch

View File

@ -0,0 +1,13 @@
diff --git a/main.c b/main.c
index b91c158..514508a 100644
--- a/main.c
+++ b/main.c
@@ -750,8 +750,6 @@ fs_lookup(const struct manpaths *paths, size_t ipath,
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;

View File

@ -1 +1,2 @@
https://fossies.org/linux/misc/mandoc-1.14.5.tar.gz
patches/mandoc-no-warn.patch