Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2019 18:10:07 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r344799 - stable/12/usr.sbin/freebsd-update
Message-ID:  <201903051810.x25IA7BR030434@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Mar  5 18:10:06 2019
New Revision: 344799
URL: https://svnweb.freebsd.org/changeset/base/344799

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/12/usr.sbin/freebsd-update/freebsd-update.sh
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/usr.sbin/freebsd-update/freebsd-update.sh
==============================================================================
--- stable/12/usr.sbin/freebsd-update/freebsd-update.sh	Tue Mar  5 16:18:06 2019	(r344798)
+++ stable/12/usr.sbin/freebsd-update/freebsd-update.sh	Tue Mar  5 18:10:06 2019	(r344799)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903051810.x25IA7BR030434>