From nobody@FreeBSD.org  Mon Mar 28 17:21:28 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7B02716A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Mar 2005 17:21:28 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5F32643D5F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Mar 2005 17:21:28 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j2SHLRS5055398
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Mar 2005 17:21:27 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j2SHLRAe055397;
	Mon, 28 Mar 2005 17:21:27 GMT
	(envelope-from nobody)
Message-Id: <200503281721.j2SHLRAe055397@www.freebsd.org>
Date: Mon, 28 Mar 2005 17:21:27 GMT
From: Marian Cerny <jojo@matfyz.cz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Mistake in Porter's Handbook, Chapter 14.3 PREFIX
X-Send-Pr-Version: www-2.3

>Number:         79309
>Category:       docs
>Synopsis:       Mistake in Porter's Handbook, Chapter 14.3 PREFIX
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 28 17:30:02 GMT 2005
>Closed-Date:    Fri Jul 15 16:51:18 GMT 2005
>Last-Modified:  Fri Jul 15 16:51:18 GMT 2005
>Originator:     Marian Cerny
>Release:        5.4-PRERELEASE
>Organization:
>Environment:
FreeBSD potvorka 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #0: Fri Mar 18 20:17:16 CET 2005
majo@potvorka:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
There is a mistake in Porter's Handbook, Chapter 14.3 PREFIX.

This paragraph:

    Also, refer to programs/files from other ports with the variables
    mentioned above, not explicit pathnames. For instance, if your port
    requires a macro PAGER to be the full pathname of less, use the
    compiler flag:

        -DPAGER=\"${PREFIX}/bin/less\"

    or

        -DPAGER=\"${LOCALBASE}/bin/less\"

    if this is an X port, instead of -DPAGER=\"/usr/local/bin/less\".

Should IMHO be:

    Also, refer to programs/files from other ports with the variables
    mentioned above, not explicit pathnames. For instance, if your port
    requires a macro PAGER to be the full pathname of less, use the
    compiler flag:

        -DPAGER=\"${LOCALBASE}/bin/less\"

    or

        -DPAGER=\"${X11BASE}/bin/less\"

    if this is an X port, instead of -DPAGER=\"/usr/local/bin/less\".

(Notice the change PREFIX => LOCALBASE and LOCALBASE => X11BASE.)

But I might be wrong.
>How-To-Repeat:
Look at the section 14.3 of the Porter's Handbook.
>Fix:
Change ${PREFIX} to ${LOCALBASE}
and ${LOCALBASE} to ${X11BASE}.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Fri Jul 15 16:51:04 GMT 2005 
State-Changed-Why:  
Yes you're correct. I fixed Porter's Handbook. 

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