Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Jun 2001 17:35:32 +0900
From:      FUJISHIMA Satsuki <sf@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/27925: index is not updated when it html manpages installed
Message-ID:  <86k82oadrf.wl@cheerful.com>

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

>Number:         27925
>Category:       ports
>Synopsis:       index is not updated when it html manpages installed
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 07 01:40:01 PDT 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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