docs/159047: SRC_BASE is in bsd.port.mk and need not be set in port Makefiles
Ben Kaduk
kaduk at mit.edu
Tue Jul 19 22:20:12 UTC 2011
>Number: 159047
>Category: docs
>Synopsis: SRC_BASE is in bsd.port.mk and need not be set in port Makefiles
>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: Tue Jul 19 22:20:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Ben Kaduk
>Release: 9-current
>Organization:
MIT SIPB
>Environment:
n/a
>Description:
Since r1.662 (Fri Dec 17 03:21:19 2010 UTC (7 months ago) by linimon), SRC_BASE has been defined in bsd.port.mk; individual port Makefiles need not set it themselves. Update the porter's handbook example for ports that require kernel sources, accordingly.
Prodded-by: zi
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
--- book.sgml.orig 2011-07-19 18:11:40.000000000 -0400
+++ book.sgml 2011-07-19 18:12:34.000000000 -0400
@@ -8857,9 +8857,7 @@
kernel source files so that the port can compile. Here is the
correct way to determine if the user has them installed:</para>
- <programlisting>SRC_BASE?= /usr/src
-
-.if !exists(${SRC_BASE}/sys/Makefile)
+ <programlisting>.if !exists(${SRC_BASE}/sys/Makefile)
IGNORE= requires kernel sources to be installed
.endif</programlisting>
</sect1>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-doc
mailing list