Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Mar 2003 03:06:59 +0100 (CET)
From:      Henrik Motakef <henrik.motakef@web.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   docs/50182: Broken examples for WRKSRC usage in porter's handbook
Message-ID:  <20030322020659.0D4BC2309@interim.henrik-motakef.de>

next in thread | raw e-mail | index | archive | help

>Number:         50182
>Category:       docs
>Synopsis:       Broken examples for WRKSRC usage in porter's handbook
>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:   Fri Mar 21 18:10:11 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Henrik Motakef
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD interim.henrik-motakef.de 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sun Feb 16 11:53:08 CET 2003 henrik@interim.henrik-motakef.de:/usr/obj/usr/src/sys/INTERIM i386
>Description:
	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.

>Fix:
--- book.sgml.orig	Sat Mar 22 02:48:09 2003
+++ book.sgml	Sat Mar 22 02:50:21 2003
@@ -2996,11 +2996,11 @@
 	  extracted into a directory called <filename>foo</filename> (and not
 	  <filename>foo-1.0</filename>) you would write:</para>
 
-	<programlisting>WRKSRC=      foo</programlisting>
+	<programlisting>WRKSRC=      ${WRKDIR}/foo</programlisting>
 
 	<para>or possibly</para>
 
-	<programlisting>WRKSRC=      ${PORTNAME}</programlisting>
+	<programlisting>WRKSRC=      ${WRKDIR}/${PORTNAME}</programlisting>
       </sect2>
 
       <sect2>
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030322020659.0D4BC2309>