svn commit: r344800 - stable/11/usr.sbin/freebsd-update
Ed Maste
emaste at FreeBSD.org
Tue Mar 5 18:11:38 UTC 2019
Author: emaste
Date: Tue Mar 5 18:11:36 2019
New Revision: 344800
URL: https://svnweb.freebsd.org/changeset/base/344800
Log:
MFC r343589: freebsd-update: regenerate man page database after update
These are currently not reproducible because they're built by the
makewhatis on the freebsd-update build host, not the one in the tree.
Regenerate after update, and later we can avoid including it in
freebsd-update data.
PR: 214545, 217389
Reviewed by: delphij
Sponsored by: The FreeBSD Foundation
Modified:
stable/11/usr.sbin/freebsd-update/freebsd-update.sh
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/freebsd-update/freebsd-update.sh
==============================================================================
--- stable/11/usr.sbin/freebsd-update/freebsd-update.sh Tue Mar 5 18:10:06 2019 (r344799)
+++ stable/11/usr.sbin/freebsd-update/freebsd-update.sh Tue Mar 5 18:11:36 2019 (r344800)
@@ -2907,6 +2907,17 @@ Kernel updates have been installed. Please reboot and
cap_mkdb ${BASEDIR}/etc/login.conf
fi
+ # Rebuild man page databases, if necessary.
+ for D in /usr/share/man /usr/share/openssl/man; do
+ if [ ! -d ${BASEDIR}/$D ]; then
+ continue
+ fi
+ if [ -z "$(find ${BASEDIR}/$D -type f -newer ${BASEDIR}/$D/mandoc.db)" ]; then
+ continue;
+ fi
+ makewhatis ${BASEDIR}/$D
+ done
+
# We've finished installing the world and deleting old files
# which are not shared libraries.
touch $1/worlddone
More information about the svn-src-stable-11
mailing list