From owner-freebsd-current@FreeBSD.ORG Sat Nov 3 09:01:02 2012 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 510A1E50; Sat, 3 Nov 2012 09:01:02 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id D3BCC8FC12; Sat, 3 Nov 2012 09:01:01 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:dc:ffe:46f:81d2]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 0F0CC4AC1C; Sat, 3 Nov 2012 13:00:58 +0400 (MSK) Date: Sat, 3 Nov 2012 13:00:53 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <1479035599.20121103130053@serebryakov.spb.ru> To: Baptiste Daroussin Subject: Re: [HEADSUP] current switched by default to pkgng In-Reply-To: <20121102235622.GD66354@ithaqua.etoilebsd.net> References: <20121010134421.GI26497@ithaqua.etoilebsd.net> <1812982114.20121102232428@serebryakov.spb.ru> <713586893.20121103004131@serebryakov.spb.ru> <20121102235622.GD66354@ithaqua.etoilebsd.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: ports@FreeBSD.org, current@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2012 09:01:02 -0000 Hello, Baptiste. You wrote 3 =D0=BD=D0=BE=D1=8F=D0=B1=D1=80=D1=8F 2012 =D0=B3., 3:56:22: BD> The BSDmc project (http://code.google.com/p/bsdmc/) uses nanobsd BD> and pkgng, have a look in particular at the BD> following diff: http://code.google.com/p/bsdmc/source/detail?r=3D75 BD> Maybe you can find something helpful for you in there :) Unfortunately, it diverged with nanobsd long time ago and have completely custom package installation function, very complex and unobvious. Now I have only one problem with replacing `pkg_add' with `pkg add' (I've implemented bootstrap of chrooted environment): `pkg add' doesn't have `-F' flag, and attempt to add package twice (first time as dependency and second time because simple nanobsd script doesn't sort packages and add all of them, so required package could be again added after dependant package) leads to non-success return code :( Also, I could not find any documentation about system `pkg' command: `man pkg' shows nothing, `pkg -h' doesn't work, etc. So it is unobvious, where could I read about ASSUME_ALWAYS_YES, PACKAGESITE and other variables, needed for automatic (non-interactive, non-networked) bootstrap. Way to construct proper URL for pkg.txz (with ABI, etc) from script is not clear, too, and automatic downloading doesn't work in chrooted environment, as it doesn't have configured resolver. --=20 // Black Lion AKA Lev Serebryakov