From owner-freebsd-bugs Sat Jan 5 6:50:15 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 43E8637B419 for ; Sat, 5 Jan 2002 06:50:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g05Eo1069481; Sat, 5 Jan 2002 06:50:01 -0800 (PST) (envelope-from gnats) Received: from goliath.siemens.de (goliath.siemens.de [194.138.37.131]) by hub.freebsd.org (Postfix) with ESMTP id 1A35D37B419 for ; Sat, 5 Jan 2002 06:40:52 -0800 (PST) Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by goliath.siemens.de (8.11.6/8.11.6) with ESMTP id g05Eenl00565 for ; Sat, 5 Jan 2002 15:40:50 +0100 (MET) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.42.7]) by mail2.siemens.de (8.11.6/8.11.6) with ESMTP id g05Eeng21782 for ; Sat, 5 Jan 2002 15:40:49 +0100 (MET) Received: (from localhost) by curry.mchp.siemens.de (8.11.6/8.11.6) id g05Een640642 for FreeBSD-gnats-submit@freebsd.org; Sat, 5 Jan 2002 15:40:49 +0100 (CET) Message-Id: <200201051440.g05EenU72574@curry.mchp.siemens.de> Date: Sat, 5 Jan 2002 15:40:49 +0100 (CET) From: Andre Albsmeier To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: conf/33575: [PATCH] allow using of -C option during install of man pages Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 33575 >Category: conf >Synopsis: [PATCH] allow using of -C option during install of man pages >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jan 05 06:50:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Andre Albsmeier >Release: FreeBSD 4.5-PRERELEASE i386 >Organization: >Environment: All FreeBSD systems >Description: When using the man(1) command after a "make installworld", man pages get formatted again even if they didn't change and the corresponding cat page was available already. >How-To-Repeat: cd /usr/src/bin/ls && make install man ls cd /usr/src/bin/ls && make install man ls >Fix: We could use the -C flag for installing manpages. The patches below makes it possible to specify WANT_MAN_COMPARE in /etc/make.conf so that man pages are installed using the -C option. If you don't put WANT_MAN_COMPARE in /etc/make.conf the old behaviour is kept. --- etc/defaults/make.conf.ORI Fri Dec 7 17:48:13 2001 +++ etc/defaults/make.conf Sat Jan 5 15:20:08 2002 @@ -141,6 +141,11 @@ # #NOMANCOMPRESS= true # +# If you want manual pages to be installed only if they have changed +# since the last install, uncomment the following. +# +#WANT_MAN_COMPARE= true +# # # If you want the "compat" shared libraries installed as part of your normal # builds, uncomment these: --- share/mk/bsd.man.mk.ORI Mon Dec 31 14:06:53 2001 +++ share/mk/bsd.man.mk Sat Jan 5 15:25:04 2002 @@ -49,7 +49,11 @@ # Install the manual pages and their links. # +.if defined(WANT_MAN_COMPARE) +MINSTALL= ${INSTALL} -C -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} +.else MINSTALL= ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} +.endif CATDIR= ${MANDIR:H:S/$/\/cat/} CATEXT= .cat >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message