From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Apr 11 08:30:05 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C460D16A401 for ; Wed, 11 Apr 2007 08:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 9FCD113C45A for ; Wed, 11 Apr 2007 08:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l3B8U5rl040627 for ; Wed, 11 Apr 2007 08:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l3B8U5aM040626; Wed, 11 Apr 2007 08:30:05 GMT (envelope-from gnats) Resent-Date: Wed, 11 Apr 2007 08:30:05 GMT Resent-Message-Id: <200704110830.l3B8U5aM040626@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Rong-En Fan Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6179316A400 for ; Wed, 11 Apr 2007 08:24:41 +0000 (UTC) (envelope-from rafan@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4E04913C44C for ; Wed, 11 Apr 2007 08:24:41 +0000 (UTC) (envelope-from rafan@FreeBSD.org) Received: from freefall.freebsd.org (rafan@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l3B8OfhU040516 for ; Wed, 11 Apr 2007 08:24:41 GMT (envelope-from rafan@freefall.freebsd.org) Received: (from rafan@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l3B8OfBx040515; Wed, 11 Apr 2007 08:24:41 GMT (envelope-from rafan) Message-Id: <200704110824.l3B8OfBx040515@freefall.freebsd.org> Date: Wed, 11 Apr 2007 08:24:41 GMT From: Rong-En Fan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/111470: [PATCH] set default man and info pages path when GNU_CONFIGURE=yes in bsd.port.mk X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rong-En Fan List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2007 08:30:05 -0000 >Number: 111470 >Category: ports >Synopsis: [PATCH] set default man and info pages path when GNU_CONFIGURE=yes in bsd.port.mk >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Apr 11 08:30:05 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Rong-En Fan >Release: FreeBSD 6.0-STABLE i386 >Organization: NTU CSIE >Environment: >Description: With newer autoconf (2.61 I think), the default location of man and info pages are moved to ${prefix}/share/{man,info} which violates hier(7). About 300 ports set correct location in CONFIGURE_ARGS. This should be done in bsd.port.mk automatically. >How-To-Repeat: >Fix: The patch http://people.freebsd.org/~rafan/maninfodir-all.diff MD5 (maninfodir-all.diff) = 8f373a7f16e286d0e5a9ede703d2ae99 includes the following changes: 1) Set --mandir and --infodir in CONFIGURE_ARGS if the configure script supports them [1]. This is done in the shell variable _LATE_CONFIGURE_ARGS which is evaluated in do-configure target. 2) Remove --mandir and --infodir in ports' Makefile where applicable. Few ports use REINPLACE_CMD to achieve the same effect, remove them too. Few ports needs special care to correctly install man/info files: editors/xemacs21-mule and japanese/FreeWnn-lib. 3) Correct manual pages location from PREFIX/man to MANPREFIX/man 4) Define INFO_PATH where necessary 5) Document .info files installed in a subdirectory relative to INFO_PATH and slightly change add-plist-info to use INFO_PATH and subdirectory detection Once it's committed I will update Porter's Handbook for it (also expand the info section a bit). Discussed with: stas (Mk/*), gerald (INFO related stuffs) [1] databases/postgresql74-server's configure lies about --infodir. The configure script is patched to correctly support it. Note: For the Modular X.Org tree, removing the --mandir line in bsd.xorg.mk should be sufficient. >Release-Note: >Audit-Trail: >Unformatted: