From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 24 17:21:17 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4262137B401; Tue, 24 Jun 2003 17:21:17 -0700 (PDT) Received: from rwcrmhc12.attbi.com (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9047D43FB1; Tue, 24 Jun 2003 17:21:16 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (rwcrmhc12) with ESMTP id <2003062500211601400lcbjue>; Wed, 25 Jun 2003 00:21:16 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA95872; Tue, 24 Jun 2003 17:21:15 -0700 (PDT) Date: Tue, 24 Jun 2003 17:21:14 -0700 (PDT) From: Julian Elischer To: hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: pkg_create broken by design? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2003 00:21:17 -0000 I'm trying to make a package.. according to the man page for pkg_create: -s srcdir srcdir will override the value of @cwd during package creation. -p prefix Set prefix as the initial directory ``base'' to start from in selecting files for the package. and @cwd directory Set the internal directory pointer to point to directory. All subsequent filenames will be assumed relative to this directory. Note: @cd is also an alias for this command. @srcdir directory Set the internal directory pointer for _creation only_ to directory. That is to say that it overrides @cwd for package creation but not extraction. However if I try any combination of this where I set srcdir (whether by -s or by @srcdir) to the place where my files are on the packing machine, and cwd to teh location where I want to UNPACK the files on the target machine, pkg_create fails if the directory 'cwd' doesn't exist on the packing machine. e.g. in the plist: @cwd /etc/namedb/usr/libexec @srcdir $pwd/build named-xfer The result? Creating package vicor-sandbox-named-1.0 tar: /etc/namedb/usr/libexec: Cannot chdir: No such file or directory tar: Error is not recoverable: exiting now pkg_create: make_dist: tar command failed with code 512 Well duh! Of course.. /etc/namedb/usr/libexec is the UNPACK directory.. it is not supposed to exist on this system.. this is where I'm PACKING it.. Does anyone know how to do this? I've tried all sorts of combinations of the above options..