From owner-freebsd-questions@FreeBSD.ORG Tue Oct 8 13:27:40 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2541C207; Tue, 8 Oct 2013 13:27:40 +0000 (UTC) (envelope-from ftp51246-2575596@sh4-5.1blu.de) Received: from sh4-5.1blu.de (sh4-5.1blu.de [178.254.11.41]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DDD38236D; Tue, 8 Oct 2013 13:27:39 +0000 (UTC) Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.76) (envelope-from ) id 1VTXNc-0000uO-TQ; Tue, 08 Oct 2013 15:31:16 +0200 Date: Tue, 8 Oct 2013 15:31:16 +0200 From: Matthias Apitz To: Mark Felder Subject: Re: install packages with pkg_add(1) into another file system Message-ID: <20131008133116.GA1987@sh4-5.1blu.de> References: <20131008111618.GA9957@sh4-5.1blu.de> <1381237086.8491.31423161.63C77F6D@webmail.messagingengine.com> <20131008130753.GA26177@sh4-5.1blu.de> <1381237951.15680.31430109.1ED62FEE@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1381237951.15680.31430109.1ED62FEE@webmail.messagingengine.com> X-Operating-System: FreeBSD 7.0-RELEASE (i386) User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Oct 2013 13:27:40 -0000 El día Tuesday, October 08, 2013 a las 08:12:31AM -0500, Mark Felder escribió: > > No. The r255948 was built on a clean, empty environment but with > > > > $ cat /etc/src.conf > > WITH_PKGTOOLS=yes > > > > Ok, I won't question your needs for pkg_* as you seem to be aware of > what you're doing :-) > > When you use pkg_* or pkg with their built-in chroot options it seems > that it executes those tools within those chroots instead of setting the > chroot as a destination for the installation. So if you wanted to use > --chroot I think you have to make sure the packages are available inside > the chroot. Perhaps there's some sort of DESTDIR option for the package > installation? I've been searching but have had no luck yet. I'll ask > around. It might be more reliable to do something like nullfs mount the > packages into the chroot and do the installation completely within the > chroot. Meanwhile I did: # cp -Rp ~guru/PKGDIR /mnt # PKG_PATH=/PKGDIR # export PKG_PATH # chroot /mnt pkg_add xorg-7.7 # chroot /mnt pkg_add kde-4.10.5 # chroot /mnt pkg_add vim-7.3.1314 ... # chroot /mnt pkg_info | wc -l 654 which went fine without any errors (only the normal messages about creation of users, etc.); I will test the resulting image and report back. matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards