From owner-freebsd-ports Thu Jun 7 1:40:13 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id AEB8237B405 for ; Thu, 7 Jun 2001 01:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f578e1B08079; Thu, 7 Jun 2001 01:40:01 -0700 (PDT) (envelope-from gnats) 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 ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/27925: index is not updated when it html manpages installed Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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