Bug 79309

Summary: Mistake in Porter's Handbook, Chapter 14.3 PREFIX
Product: Documentation Reporter: Marian Cerny <jojo>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Marian Cerny 2005-03-28 18:30:02 UTC
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.

Fix: 

Change ${PREFIX} to ${LOCALBASE}
and ${LOCALBASE} to ${X11BASE}.
How-To-Repeat: Look at the section 14.3 of the Porter's Handbook.
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2005-07-15 17:51:04 UTC
State Changed
From-To: open->closed

Yes you're correct. I fixed Porter's Handbook.