From owner-freebsd-questions@FreeBSD.ORG Thu Mar 15 17:11:56 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 544ED106566B for ; Thu, 15 Mar 2012 17:11:56 +0000 (UTC) (envelope-from urban@unix-beratung.de) Received: from mail.y42.org (smtp.y42.org [194.97.145.161]) by mx1.freebsd.org (Postfix) with ESMTP id 097B88FC0C for ; Thu, 15 Mar 2012 17:11:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.y42.org (Postfix) with ESMTP id C671CEBF6B for ; Thu, 15 Mar 2012 18:11:48 +0100 (CET) X-Virus-Scanned: amavisd-new at y42.org Received: from mail.y42.org ([127.0.0.1]) by localhost (dna.y42.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ooEwDU6RQNC8 for ; Thu, 15 Mar 2012 18:11:47 +0100 (MET) Received: from [192.168.2.2] (p5DE9672D.dip.t-dialin.net [93.233.103.45]) (Authenticated sender: urban@dna.y42.org) by mail.y42.org (Postfix) with ESMTPA for ; Thu, 15 Mar 2012 18:11:47 +0100 (CET) Message-ID: <4F6222D1.3070908@unix-beratung.de> Date: Thu, 15 Mar 2012 18:11:45 +0100 From: Robert Urban User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120209 Thunderbird/10.0.1 MIME-Version: 1.0 CC: freebsd-questions@freebsd.org References: <4F60C34B.50105@y42.org> <20120314175003.c324d322.freebsd@edvax.de> In-Reply-To: <20120314175003.c324d322.freebsd@edvax.de> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: satisfying package dependencies from installation DVD when building a port -- HOW? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2012 17:11:56 -0000 On 03/14/2012 05:50 PM, Polytropon wrote: > On Wed, 14 Mar 2012 17:11:55 +0100, IMAP List Administration wrote: >> Hello, >> >> I've just installed 9.0-RELEASE (amd64) in a KVM/Qemo VM on debian linux, which >> is extremely painful because of the abysmal I/O performance, and would like to >> build the virtio-kmod. After unpacking src.txz (xz -c >> /cd/usr/freebsd-dist/src.txz | tar xf -) I did the following: >> >> # cd /usr/ports/emulators/virtio-kmo >> # make clean install >> >> at this point I saw port names such as perl, tcl, neon, sqlite, etc fly past. > You can use the command > > # make missing > > to get a list of which dependencies need to be installed. > See "man 7 ports" for other targets that might be useful. this was helpful. >> I tried setting PKG_PATH to "/cd/packages" and to "/cd/packages/All", but when I >> simply try to test using, for example, "pkg_add perl" pkg_add simply says "can't >> stat package file". > Change CWD to the location of the packages (on CD) and > try again. According to "man pkg_add": > > If the packages are not found in the current > working directory, pkg_add will search them in > each directory named by PKG_PATH. > > If there's still an error, can you provide the command > you entered plus the output? Maybe adding -v helps to > give some more information. > I seem to have found the "problem". I read somewhere that PKG_PATH should have the path to the top of the hierarchy, i.e., /cd/packages, and not /cd/packages/ or /cd/packages/All, because pkg_add was capable of adding the hierarchical component, but this is not the case. I find that I must set PKG_PATH to /cd/packages/ or /cd/packages/All in order for it to work. Also, coming from OpenBSD, I assumed that I could supply pkg_add the "basename" of a package, i.e., the name without version number ("p5-Text-Iconv" as opposed to "p5-Text-Iconv-1.7") but this also does not work. pkg_add apparently expects everything except the ".tbz" extension. cheers, Robert Urban