forked from kiss-community/repo
mandoc: Simplify package and fix pointless error
This commit is contained in:
parent
7f6c33cfc1
commit
c64afb1339
@ -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
|
||||
|
@ -1 +1,2 @@
|
||||
8219b42cb56fc07b2aa660574e6211ac38eefdbf21f41b698d3348793ba5d8f7 mandoc-1.14.5.tar.gz
|
||||
eaff34c03d1b6741cf6b24a394c63ad6096e4391578414b9da986294ee817a25 mandoc-no-warn.patch
|
||||
|
13
core/mandoc/patches/mandoc-no-warn.patch
Normal file
13
core/mandoc/patches/mandoc-no-warn.patch
Normal 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;
|
@ -1 +1,2 @@
|
||||
https://fossies.org/linux/misc/mandoc-1.14.5.tar.gz
|
||||
patches/mandoc-no-warn.patch
|
||||
|
Loading…
Reference in New Issue
Block a user