From owner-freebsd-questions Fri Jul 17 22:32:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA19718 for freebsd-questions-outgoing; Fri, 17 Jul 1998 22:32:11 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from phoenix.welearn.com.au (suebla.lnk.telstra.net [139.130.44.81]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA19711 for ; Fri, 17 Jul 1998 22:32:08 -0700 (PDT) (envelope-from sue@phoenix.welearn.com.au) Received: (from sue@localhost) by phoenix.welearn.com.au (8.8.5/8.8.5) id PAA16312; Sat, 18 Jul 1998 15:31:43 +1000 (EST) Message-ID: <19980718153136.63722@welearn.com.au> Date: Sat, 18 Jul 1998 15:31:36 +1000 From: Sue Blake To: Andrew MacIntyre Cc: freebsd-questions@FreeBSD.ORG Subject: Re: little package mysteries References: <19980718001734.19076@welearn.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88e In-Reply-To: ; from Andrew MacIntyre on Sat, Jul 18, 1998 at 10:32:06AM +1000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Jul 18, 1998 at 10:32:06AM +1000, Andrew MacIntyre wrote: > On Sat, 18 Jul 1998, Sue Blake wrote: > > > When it tries to install another package (having first established that > > that other package has not already been installed), where, oh where, > > does it look for that package. Where does it expect the package to be > > physically located. Not the record of its being installed, I mean the > > actual package. > > My reading of man pkg_add leads me to the expectation that the PKG_PATH > environment variable would control the search path for the specified (on > cmd line) package, as well as packages required by that package. > > > If it can't find a required package, will the installation be cancelled > > or will it proceed with a warning? Or could it be made to go either > > way, and if that is the case, what determines which way it goes? > > The section of the pkg_add manpage dealing with the -f option infers that > without it, a missing required package is a fatal error. With it, it will > still attempt to find the required package, but not being able to find it > is not fatal so the pkg_add proceeds to install the specified package. > > Does this help any? A little. Now I can see how to provide a script external to the package that can set up the environment and ensure that pkg_add runs with the correct options. Trouble is, I could have done the _whole_ installation with a script easier than using a package. It's starting to look like if anybody knows more than the tiny bit I know about how packages work, they're not reading -questions. I'll go hassle the people in some other mailing lists and report back. -- Regards, -*Sue*- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message