From owner-freebsd-pkgbase@freebsd.org Mon Mar 14 19:39:00 2016 Return-Path: Delivered-To: freebsd-pkgbase@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 19C59ACF472; Mon, 14 Mar 2016 19:39:00 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 044F2DB7; Mon, 14 Mar 2016 19:39:00 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id EFA23102C; Mon, 14 Mar 2016 19:38:59 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id A32451F139; Mon, 14 Mar 2016 19:38:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id 8arFdCqcqKlI; Mon, 14 Mar 2016 19:38:56 +0000 (UTC) Subject: Re: [CFT] packaging the base system with pkg(8) DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 256E01F134 To: =?UTF-8?Q?Dag-Erling_Sm=c3=b8rgrav?= , Miroslav Lachman <000.fbsd@quip.cz> References: <20160302235429.GD75641@FreeBSD.org> <20160308124016.GA70809@zxy.spb.ru> <20160308131847.GP1531@FreeBSD.org> <20160308151459.GB70809@zxy.spb.ru> <05A039B7-AA9A-47BB-B68E-89D9D5627D20@FreeBSD.org> <20160311120511.GN31877@ivaldir.etoilebsd.net> <20160311131055.GO70809@zxy.spb.ru> <56E4F3E9.1070307@FreeBSD.org> <56E57661.2060601@quip.cz> <86d1qwkgco.fsf@desk.des.no> Cc: Daniel Eischen , Glen Barber , freebsd-current@freebsd.org, David Chisnall , freebsd-pkgbase@freebsd.org From: Bryan Drewery Organization: FreeBSD Message-ID: <56E7134F.9070106@FreeBSD.org> Date: Mon, 14 Mar 2016 12:38:55 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <86d1qwkgco.fsf@desk.des.no> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-pkgbase@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Packaging the FreeBSD base system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2016 19:39:00 -0000 On 3/14/16 12:29 PM, Dag-Erling Sm=C3=B8rgrav wrote: > Miroslav Lachman <000.fbsd@quip.cz> writes: >> Bryan Drewery writes: >>> https://github.com/freebsd/pkg/blob/master/scripts/pkg_tree.sh >> Can you publish it as a port? I know there is one written in Perl but >> I like your sh without dependencies. >=20 > It's not very useful, in my opinion. The relationships between package= s > form a directed acyclic graph, not a tree, so pkg_tree.sh will either > show too little (without -r) or far, far too much (with -r). If you > want to visualize the package graph, you can feed the output of 'pkg > query "%n %dn"' into something like graphviz. For other tasks, you are > better off learning how to use 'pkg query' and possibly creating your > own aliases or scripts. It's not that difficult; feel free to ask for > help. >=20 > (Just for kicks, I tried running 'pkg_tree.sh -rn' on my desktop, which > has 934 packages installed. It's been running for ten minutes and has > printed over 90,000 lines, with no end in sight.) >=20 Yeah that's why I never included it by default. It can be interesting sometimes but often is too noisy. I didn't want to encourage its use by default vs pkg info or pkg query. --=20 Regards, Bryan Drewery