From owner-freebsd-doc Fri Mar 2 13:20:13 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1C70637B71A for ; Fri, 2 Mar 2001 13:20:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f22LK3t13607; Fri, 2 Mar 2001 13:20:03 -0800 (PST) (envelope-from gnats) 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 ; 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 X-Send-Pr-Version: 3.2 Subject: docs/25496: [PATCH} Doc makefiles are not LOCALBASE clean. Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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..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