Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jul 2006 06:15:51 GMT
From:      Dominic Fandrey <lon_kamikaze@gmx.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/100594: [patch bsd.port.mk] to update makewhatis database after manpages have been installed
Message-ID:  <200607200615.k6K6Fpkf056226@www.freebsd.org>
Resent-Message-ID: <200607200620.k6K6KELC059636@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         100594
>Category:       ports
>Synopsis:       [patch bsd.port.mk] to update makewhatis database after manpages have been installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 20 06:20:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Dominic Fandrey
>Release:        FreeBSD 6-Stable
>Organization:
private
>Environment:
FreeBSD mobileKamikaze.norad 6.1-STABLE FreeBSD 6.1-STABLE #0: Wed Jul 19 08:47:26 CEST 2006     root@mobileKamikaze.norad:/mnt/vault/obj/mnt/vault/src/sys/TPR40-6  i386
>Description:
The patch adds MKWHATIS to bsd.port.mk and updates the according whatis database after man pages have been installed.
It also uncovered broken links installed by cups-base on my system, that shows that it's double useful.

The patch is trivial, I hope it will be accepted.
>How-To-Repeat:

>Fix:
--- Mk/bsd.port.mk.orig	Thu Jul 20 07:27:27 2006
+++ Mk/bsd.port.mk	Thu Jul 20 08:06:20 2006
@@ -1047,6 +1047,7 @@
 LDCONFIG?=	/sbin/ldconfig
 LN?=		/bin/ln
 LS?=		/bin/ls
+MKWHATIS?=	/usr/bin/makewhatis
 MKDIR?=		/bin/mkdir -p
 MKTEMP?=	/usr/bin/mktemp
 MV?=		/bin/mv
@@ -5300,6 +5301,8 @@
 		shift; shift; \
 	done
 .endif
+	@${ECHO_MSG} "===>   Updating whatis database"
+	@${MKWHATIS} ${MANPREFIX}/man
 .else
 	@${DO_NADA}
 .endif
>Release-Note:
>Audit-Trail:
>Unformatted:



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