From owner-freebsd-doc Thu May 2 16:10:11 2002 Delivered-To: freebsd-doc@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BD34637B404 for ; Thu, 2 May 2002 16:10:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g42NA1X35585; Thu, 2 May 2002 16:10:01 -0700 (PDT) (envelope-from gnats) Received: from smarthost-1.mail.telinco.net (smarthost-1.mail.telinco.net [212.1.128.90]) by hub.freebsd.org (Postfix) with ESMTP id 8B0AF37B417 for ; Thu, 2 May 2002 16:05:43 -0700 (PDT) Received: from dial-212-1-136-177.access.uk.tiscali.com ([212.1.136.177] helo=basilisk.locus) by smarthost-1.mail.telinco.net with esmtp (Exim 3.22 #1) id 173Pdt-000DRf-00 for FreeBSD-gnats-submit@freebsd.org; Fri, 03 May 2002 00:05:41 +0100 Received: (from harry@localhost) by basilisk.locus (8.11.6/8.11.6) id g42N2xd61725; Fri, 3 May 2002 00:02:59 +0100 (BST) (envelope-from harry) Message-Id: <200205022302.g42N2xd61725@basilisk.locus> Date: Fri, 3 May 2002 00:02:59 +0100 (BST) From: Harry Newton Reply-To: Harry Newton To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/37693: Minor correxion to FreeBSD 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: 37693 >Category: docs >Synopsis: Minor correxion to FreeBSD 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: Thu May 02 16:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Harry Newton >Release: FreeBSD 4.5-STABLE i386 >Organization: Gaudeamus >Environment: System: FreeBSD basilisk.locus 4.5-STABLE FreeBSD 4.5-STABLE #0: Sat Mar 16 20:08:45 GMT 2002 harry@basilisk.locus:/usr/obj/usr/src/sys/BASILISK i386 >Description: A couple of mistakes / clarifications in Chapter 17, The FreeBSD Porter's Handbook 'Automated package list creation'. - Don't need to touch pkg-plist beforehand, in fact unless the >> operator is used, this will give an error later on. - small grammatical mistake ( 'into' missing ) - comm(1) requires input lines to be lexigraphically sorted, otherwise the command doesn't work as expected. Failure to sort causes extra lines of the @dirrm sort to be added to the packing list. >How-To-Repeat: Refer to Chapter 17 of FreeBSD Porter's Handbook >Fix: --- book.sgml Thu May 2 23:43:55 2002 +++ book.sgml_original Thu May 2 23:33:29 2002 @@ -3878,18 +3878,20 @@ Automated package list creation First, make sure your port is almost complete, with only - pkg-plist missing. + pkg-plist missing. Create an empty + pkg-plist. - Next, create a temporary set of directories into which - your port can be installed, and install any - dependencies. + &prompt.root; touch pkg-plist + + Next, create a new set of directories which your port can be + installed, and install any dependencies. &prompt.root; mtree -U -f /etc/mtree/BSD.local.dist -d -e -p /var/tmp/port-name &prompt.root; make depends PREFIX=/var/tmp/port-name Store the directory structure in a new file. - &prompt.root; (cd /var/tmp/port-name && find -d * -type d) | sort - > OLD-DIRS + &prompt.root; (cd /var/tmp/port-name && find -d * -type d) > OLD-DIRS If your port honors PREFIX (which it should) you can then install the port and create the package list. @@ -3900,7 +3902,7 @@ You must also add any newly created directories to the packing list. - &prompt.root; (cd /var/tmp/port-name && find -d * -type d) | sort - | comm -13 OLD-DIRS - | sed -e 's#^#@dirrm #' >> pkg-plist + &prompt.root; (cd /var/tmp/port-name && find -d * -type d) | comm -13 OLD-DIRS - | sed -e 's#^#@dirrm #' >> pkg-plist Finally, you need to tidy up the packing list by hand; it isn't all automated. Manual pages should be listed in >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message