Pull up following revision(s) (requested by joerg in ticket #2): netbsd-6
authorriz <riz@NetBSD.org>
Thu, 16 Feb 2012 19:56:43 +0000
branchnetbsd-6
changeset 255406 ac8b4c488e5a
parent 255405 11cebac5ef70
child 255407 1f34284acabd
Pull up following revision(s) (requested by joerg in ticket #2): etc/weekly: revision 1.26 etc/daily: revision 1.81 UPDATING: revision 1.235 Run makemandb with the normal 022 umask, not the restrictive 077. Extend entry to makemandb permission issue.
UPDATING
etc/daily
etc/weekly
--- a/UPDATING	Thu Feb 16 18:59:42 2012 +0000
+++ b/UPDATING	Thu Feb 16 19:56:43 2012 +0000
@@ -1,4 +1,4 @@
-$NetBSD: UPDATING,v 1.234 2012/02/09 21:49:31 spz Exp $
+$NetBSD: UPDATING,v 1.234.2.1 2012/02/16 19:56:43 riz Exp $
 
 This file (UPDATING) is intended to be a brief reference to recent
 changes that might cause problems in the build process, and a guide for
@@ -16,9 +16,12 @@
 Recent changes:
 ^^^^^^^^^^^^^^^
 
-20120207:
+20120216:
 	Default for MKCATPAGES changed to NO. Update builds will fail
-	unless DESTDIR is cleaned manually.
+	unless DESTDIR is cleaned manually. If you built between 20120207
+	and 20120216, daily and weekly could have created an unreable
+	/var/db/man.db index for apropos. Running makemandb -f or
+	the next run of weekly will fix it.
 
 20111227:
 	If you built between 20111225 and 20111227 you need to remove
--- a/etc/daily	Thu Feb 16 18:59:42 2012 +0000
+++ b/etc/daily	Thu Feb 16 19:56:43 2012 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#	$NetBSD: daily,v 1.80 2012/02/09 13:38:44 joerg Exp $
+#	$NetBSD: daily,v 1.80.2.1 2012/02/16 19:56:43 riz Exp $
 #	@(#)daily	8.2 (Berkeley) 1/25/94
 #
 
@@ -294,7 +294,7 @@
 	if [ -f /etc/man.conf -a -x /usr/sbin/makemandb ]; then
 		echo ""
 		echo "Updating man page index:"
-		nice -n 5 /usr/sbin/makemandb
+		(umask 022; nice -n 5 /usr/sbin/makemandb)
 	fi
 fi
 
--- a/etc/weekly	Thu Feb 16 18:59:42 2012 +0000
+++ b/etc/weekly	Thu Feb 16 19:56:43 2012 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#	$NetBSD: weekly,v 1.25 2012/02/07 19:13:30 joerg Exp $
+#	$NetBSD: weekly,v 1.25.2.1 2012/02/16 19:56:43 riz Exp $
 #	from: @(#)weekly	8.2 (Berkeley) 1/2/94
 #
 
@@ -94,7 +94,7 @@
 	echo ""
 	if [ -f /etc/man.conf -a -x /usr/sbin/makemandb ]; then
 		echo "Rebuilding man page index:"
-		nice -n 5 /usr/sbin/makemandb -f
+		(umask 022; nice -n 5 /usr/sbin/makemandb -f)
 	else
 		echo "Not rebuilding man page index"
 	fi