Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2005 17:21:27 GMT
From:      Marian Cerny <jojo@matfyz.cz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/79309: Mistake in Porter's Handbook, Chapter 14.3 PREFIX
Message-ID:  <200503281721.j2SHLRAe055397@www.freebsd.org>
Resent-Message-ID: <200503281730.j2SHU2rS015288@freefall.freebsd.org>

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

>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 28 17:30:02 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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