From owner-freebsd-questions@FreeBSD.ORG Wed Mar 14 16:50:06 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 5B3A6106566B for ; Wed, 14 Mar 2012 16:50:06 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 1FA668FC15 for ; Wed, 14 Mar 2012 16:50:05 +0000 (UTC) Received: from r56.edvax.de (port-92-195-185-71.dynamic.qsc.de [92.195.185.71]) by mx01.qsc.de (Postfix) with ESMTP id 950373D1E6; Wed, 14 Mar 2012 17:50:03 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q2EGo38F005352; Wed, 14 Mar 2012 17:50:03 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 14 Mar 2012 17:50:03 +0100 From: Polytropon To: IMAP List Administration Message-Id: <20120314175003.c324d322.freebsd@edvax.de> In-Reply-To: <4F60C34B.50105@y42.org> References: <4F60C34B.50105@y42.org> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org 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 Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2012 16:50:06 -0000 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. > Apparently the ports system satisfies dependencies from the ports tree by default. Correct. Dependencies are resolved and installed (usually by compiling them from source, installing and registering them), then the initial build is returned to. > Since I have not updated anything, it seems reasonable, and much less painful to > satisfy the dependencies using the packages on the installation DVD, which is > mounted on /cd. If the default options of the dependency ports are fine for you, this should be no problem. > 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'm guessing it would be pointless to try to use a (remote) URL in PACKAGEROOT, > as the "-r" flag *must* be give in order for pkg_add to honor the setting, and > god knows how the ports system calls pkg_add, if at all. The ports do not use pkg_add. However, using a tool like portmaster or portinstall can help you using binary packages (options -P and -PP). If you use pkg_add -r, some "more magic" will be applied to form the proper URI for fetching the packages (e. g. architecture and OS version may be considered). > I had a long look in the docs, but this stuff doesn't *seem* to be documented :( I don't remember any particular documentation regarding this procedure. The pkg_add command should automatically install dependencies (option -i to prevent). > Is it possible to get the ports system to satisfy dependencies using the > packages from the installation DVD? If so, how????? I think that's possible; I hope you got some inspiration. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...