docs/79309: Mistake in Porter's Handbook, Chapter 14.3 PREFIX

Marian Cerny jojo at matfyz.cz
Mon Mar 28 17:30:03 UTC 2005


>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 at 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:



More information about the freebsd-doc mailing list