Skip site navigation (1)Skip section navigation (2)
Date:      2 Mar 2001 21:10:37 -0000
From:      mwm@mired.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/25496: [PATCH} Doc makefiles are not LOCALBASE clean.
Message-ID:  <20010302211037.12788.qmail@guru.mired.org>

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

>Number:         25496
>Category:       docs
>Synopsis:       [PATCH} Doc makefiles are not LOCALBASE clean.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 02 13:20:02 PST 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




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