| Summary: | Broken examples for WRKSRC usage in porter's handbook | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Documentation | Reporter: | Henrik Motakef <henrik.motakef> | ||||
| Component: | Books & Articles | Assignee: | Ceri Davies <ceri> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
Responsible Changed From-To: freebsd-doc->ceri I'll take care of this. State Changed From-To: open->closed Your patch was committed; thank you! |
The examples given in section 4.8.1. "WRKSRC" of The Porter's Handbook don't work in practice: They set the WRKSRC variable to the name of a relative directory, but it has to be an absolute path. This patch updates the examples to set WRKSRC relative ${WRKDIR}. This is in line with the default set in bsd.port.mk, where WRKSRC is initialized to ${WRKDIR}/${DISTNAME}. How-To-Repeat: - Read http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-wrkdir.html#AEN1877 - Try to set WRKSRC to ${PORTNAME} in a port makefile, like the example suggests.