| Summary: | Mistake in Porter's Handbook, Chapter 14.3 PREFIX | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Marian Cerny <jojo> |
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->closed Yes you're correct. I fixed Porter's Handbook. |
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.