Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Apr 2007 08:24:41 GMT
From:      Rong-En Fan <rafan@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/111470: [PATCH] set default man and info pages path when GNU_CONFIGURE=yes in bsd.port.mk 
Message-ID:  <200704110824.l3B8OfBx040515@freefall.freebsd.org>
Resent-Message-ID: <200704110830.l3B8U5aM040626@freefall.freebsd.org>

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

>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:



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