From mwm@mired.org  Fri Mar  2 13:10:39 2001
Return-Path: <mwm@mired.org>
Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186])
	by hub.freebsd.org (Postfix) with SMTP id C48FC37B718
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  2 Mar 2001 13:10:38 -0800 (PST)
	(envelope-from mwm@mired.org)
Received: (qmail 12789 invoked by uid 100); 2 Mar 2001 21:10:37 -0000
Message-Id: <20010302211037.12788.qmail@guru.mired.org>
Date: 2 Mar 2001 21:10:37 -0000
From: mwm@mired.org
Reply-To: mwm@mired.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH} Doc makefiles are not LOCALBASE clean.
X-Send-Pr-Version: 3.2

>Number:         25496
>Category:       docs
>Synopsis:       [PATCH} Doc makefiles are not LOCALBASE clean.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 02 13:20:02 PST 2001
>Closed-Date:    Tue Mar 13 01:54:55 PST 2001
>Last-Modified:  Tue Mar 13 01:55:07 PST 2001
>Originator:     Mike Meyer
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
Meyer Consulting
>Environment:

A system with LOCALBASE set to somewhere other than /usr/local so
that all ports install in that other somewhere.

>Description:

On a system as described above, the doc project makefiles fail to pick
up that the default for PREFIX is actually LOCALBASE, not /usr/local
The default for LOCALBASE being /usr/local hides this problem unless
LOCALBASE is changed.

>How-To-Repeat:

Try doing "make lint" in any do project source directory on such a
system. It tries to execute the command:

/usr/local/bin/nsgmls -s -c /usr/doc/en_US.ISO_8859-1/books/faq/../../../share/sgml/catalog -c /usr/local/share/sgml/docbook/dsssl/modular/catalog -c /usr/local/share/sgml/docbook/catalog -c /usr/local/share/sgml/jade/catalog  /usr/doc/en_US.ISO_8859-1/books/faq/book.sgml

even though none of the files it needs - from the command on down -
are in /usr/local.

>Fix:

Apply the following patch to doc/share/mk/doc.project.mk

--- /tmp/doc.project.mk	Wed Feb 28 17:03:30 2001
+++ doc.project.mk	Fri Mar  2 15:09:49 2001
@@ -30,7 +30,7 @@
 #	PREFIX		Standard path to document-building applications
 #			installed to serve the documentation build
 #			process, usually by installing the docproj port
-#			or package.  Default is /usr/local
+#			or package.  Default is ${LOCALBASE} or /usr/local
 #
 #	NOINCLUDEMK	Whether to include the standard BSD make files,
 #			or just to emulate them poorly.  Set this if you
@@ -64,7 +64,8 @@
 ALL_FORMATS=	html html.tar html-split html-split.tar txt rtf ps pdf tex dvi tar pdb
 
 # User-modifiable
-PREFIX?=	/usr/local
+LOCALBASE?=	/usr/local
+PREFIX?=	${LOCALBASE}
 PRI_LANG?=	en_US.ISO_8859-1
 
 # Image processing (contains code used by the doc.<format>.mk files, so must
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: nik 
State-Changed-When: Tue Mar 13 01:54:55 PST 2001 
State-Changed-Why:  
Committed, ta. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25496 
>Unformatted:
