From owner-freebsd-doc Fri Mar 21 18:10:15 2003 Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4409F37B401 for ; Fri, 21 Mar 2003 18:10:13 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D28EC43FAF for ; Fri, 21 Mar 2003 18:10:11 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h2M2ABNS016747 for ; Fri, 21 Mar 2003 18:10:11 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h2M2ABAQ016746; Fri, 21 Mar 2003 18:10:11 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AEA037B401 for ; Fri, 21 Mar 2003 18:02:57 -0800 (PST) Received: from smtp.web.de (smtp03.web.de [217.72.192.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33E2743F3F for ; Fri, 21 Mar 2003 18:02:56 -0800 (PST) (envelope-from henrik.motakef@web.de) Received: from [213.23.208.86] (helo=interim.henrik-motakef.de) by smtp.web.de with esmtp (WEB.DE(Exim) 4.97 #53) id 18wYLW-0007NR-00 for FreeBSD-gnats-submit@freebsd.org; Sat, 22 Mar 2003 03:02:55 +0100 Received: by interim.henrik-motakef.de (Postfix, from userid 1000) id 0D4BC2309; Sat, 22 Mar 2003 03:06:59 +0100 (CET) Message-Id: <20030322020659.0D4BC2309@interim.henrik-motakef.de> Date: Sat, 22 Mar 2003 03:06:59 +0100 (CET) From: Henrik Motakef Reply-To: Henrik Motakef To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/50182: Broken examples for WRKSRC usage in porter's handbook Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 foo (and not foo-1.0) you would write: - WRKSRC= foo + WRKSRC= ${WRKDIR}/foo or possibly - WRKSRC= ${PORTNAME} + WRKSRC= ${WRKDIR}/${PORTNAME} >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message