From owner-freebsd-questions@FreeBSD.ORG Tue Feb 7 23:23:41 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCAE8106566B for ; Tue, 7 Feb 2012 23:23:41 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id 7FD9D8FC12 for ; Tue, 7 Feb 2012 23:23:41 +0000 (UTC) Received: from mail.unitedinsong.com.au (bell.herveybayaustralia.com.au [192.168.0.40]) by mail.unitedinsong.com.au (Postfix) with ESMTP id 209315C2B for ; Wed, 8 Feb 2012 09:36:16 +1000 (EST) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.177]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id 865D35C29 for ; Wed, 8 Feb 2012 09:36:15 +1000 (EST) Message-ID: <4F31B16D.8020300@herveybayaustralia.com.au> Date: Wed, 08 Feb 2012 09:19:09 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4F318801.2040601@mahan.org> In-Reply-To: <4F318801.2040601@mahan.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Usage of '@cwd' and '@srcdir' in a package list X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2012 23:23:41 -0000 On 02/08/12 06:22, Patrick Mahan wrote: > All, > > Need a little direction on package creation. This issue > is hitting me on both 8.0, 8.2 and 9.0 FreeBSD (amd64) > releases. > > I'm trying to create a package using pkg_create with > the intention of installing under /usr/local. However, > my build environment is private (not under /usr/ports > or /usr/src) and I *do not* install before creating > the package file. > > My problem is that if I have the following in my > package list file - > > @cwd /usr/local > @srcdir . > ... > relative filepaths > ... > > The the pkg_create fails with tar complaining about > not being able to source the files, even though I > invoke pkg_create at the top of the subtree and the > files are relative to my current working directory. > > I have also tried the '-s `pwd`' option to pkg_create > as well, with no success. > > Removing the @cwd line allows the package to be built. > > Reading the man page it states > > "@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." > > Which seems to be what I want but why is it not overriding? > > Any pointers are welcomed. I think you will get a better (and probably quicker) answer on ports@