From sf@FreeBSD.org  Thu Jun  7 01:35:36 2001
Return-Path: <sf@FreeBSD.org>
Received: from m08.alpha-net.ne.jp (m08.alpha-net.ne.jp [210.229.64.38])
	by hub.freebsd.org (Postfix) with ESMTP id AA94037B403
	for <FreeBSD-gnats-submit@FreeBSD.org>; Thu,  7 Jun 2001 01:35:35 -0700 (PDT)
	(envelope-from sf@FreeBSD.org)
Received: from kyoto-tc012-p42.alpha-net.ne.jp (kyoto-tc012-p42.alpha-net.ne.jp [210.237.119.170])
	by m08.alpha-net.ne.jp (8.9.3/3.7W) with ESMTP id RAA11618
	for <FreeBSD-gnats-submit@FreeBSD.org>; Thu, 7 Jun 2001 17:35:32 +0900 (JST)
Received: from souffle.bogus-local.net (localhost.bogus-local.net [127.0.0.1])
	by kyoto-tc012-p42.alpha-net.ne.jp (Postfix) with ESMTP id 41D209B2E
	for <FreeBSD-gnats-submit@FreeBSD.org>; Thu,  7 Jun 2001 17:35:32 +0900 (JST)
Message-Id: <86k82oadrf.wl@cheerful.com>
Date: Thu, 07 Jun 2001 17:35:32 +0900
From: FUJISHIMA Satsuki <sf@FreeBSD.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: index is not updated when it html manpages installed

>Number:         27925
>Category:       ports
>Synopsis:       index is not updated when it html manpages installed
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    portmgr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 07 01:40:01 PDT 2001
>Closed-Date:    Fri Aug 30 13:34:26 PDT 2002
>Last-Modified:  Fri Aug 30 13:34:26 PDT 2002
>Originator:     FUJISHIMA Satsuki
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
N/A
>Environment:
System: FreeBSD souffle.bogus-local.net 5.0-CURRENT FreeBSD 5.0-CURRENT #369: Sun May 13 09:53:09 JST 2001 k5@souffle.bogus-local.net:/home/src/sys/compile/SOUFFLE i386

>Description:
	Many ports installs html manpages to
	${X11BASE}/lib/X11/doc/html if they are configured to use
	imake and XFree86-4. There are indices for these manpages but
	they don't updated even when new manpages installed. So these
	indices are inconsistent with manpages.

>How-To-Repeat:
	Install any port which configured to USE_IMAKE and MAN?
	variable defined on XFree86-4, and look what happen in
	${X11BASE}/lib/X11/doc/html/manindex?.html.

>Fix:

	Run mkhtmlindex, which comes with devel/imake-4 port, at
	install/deinstall USE_IMAKE port.

	With this change, all USE_IMAKE port should be RUN_DEPENDS on
	devel/imake-4 port. This means there should occur PORTREVISION
	increment for all of them.

	Now the very time to do it because new version of XFree86
	released.

Index: bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.367
diff -u -r1.367 bsd.port.mk
--- bsd.port.mk	2001/05/23 02:46:52	1.367
+++ bsd.port.mk	2001/06/07 08:23:37
@@ -829,6 +829,9 @@
 .else
 .if defined(USE_IMAKE)
 BUILD_DEPENDS+=			imake:${PORTSDIR}/devel/imake-4
+.if ${XFREE86_HTML_MAN} == "yes"
+RUN_DEPENDS+=			mkhtmlindex:${PORTSDIR}/devel/imake-4
+.endif
 .endif
 .if defined(USE_XPM) || defined(USE_DGS)
 USE_XLIB=				yes
@@ -922,6 +925,7 @@
 AUTOCONF?=		autoconf
 LIBTOOL?=		libtool
 XMKMF?=			xmkmf -a
+MKHTMLINDEX?=	mkhtmlindex
 .if exists(/sbin/md5)
 MD5?=			/sbin/md5
 .elif exists(/bin/md5)
@@ -1833,6 +1837,9 @@
 	@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
 .if defined(USE_IMAKE) && !defined(NO_INSTALL_MANPAGES)
 	@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install.man)
+.if ${XFREE86_HTML_MAN} == "yes"
+	@${MKHTMLINDEX} ${PREFIX}/lib/X11/doc/html
+.endif
 .endif
 .else defined(USE_GMAKE)
 	@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
@@ -2877,6 +2884,8 @@
 	@echo lib/X11/doc/html/${man}.html >> ${TMPPLIST}
 .endfor
 .endfor
+ 	@${ECHO} "@unexec %D/bin/mkhtmlindex %D/lib/X11/doc/html" >> ${TMPPLIST}
+ 	@${ECHO} "@exec %D/bin/mkhtmlindex %D/lib/X11/doc/html" >> ${TMPPLIST}
 .endif
 .endfor
 	@${SED} ${PLIST_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${PLIST} >> ${TMPPLIST}
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->portmgr 
Responsible-Changed-By: sf 
Responsible-Changed-When: Thu Jun 7 01:46:47 PDT 2001 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27925 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Fri Aug 30 13:34:06 PDT 2002 
State-Changed-Why:  
Committed by will in: 

revision 1.402 
date: 2002/03/16 23:37:02;  author: will;  state: Exp;  lines: +23 -1 

http://www.freebsd.org/cgi/query-pr.cgi?pr=27925 
>Unformatted:
