From owner-freebsd-pkgbase@freebsd.org Tue Mar 15 08:56:14 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 4BBB9AD11A4; Tue, 15 Mar 2016 08:56:14 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0EE6CE3B; Tue, 15 Mar 2016 08:56:13 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 041ED28428; Tue, 15 Mar 2016 09:56:12 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id A015328417; Tue, 15 Mar 2016 09:56:10 +0100 (CET) Message-ID: <56E7CE2A.10807@quip.cz> Date: Tue, 15 Mar 2016 09:56:10 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32 MIME-Version: 1.0 To: =?UTF-8?Q?Dag-Erling_Sm=c3=b8rgrav?= CC: Bryan Drewery , Daniel Eischen , Glen Barber , freebsd-current@freebsd.org, David Chisnall , freebsd-pkgbase@freebsd.org Subject: Re: [CFT] packaging the base system with pkg(8) 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> In-Reply-To: <86d1qwkgco.fsf@desk.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: Tue, 15 Mar 2016 08:56:14 -0000 Dag-Erling Smørgrav wrote on 03/14/2016 20:29: > 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. > > It's not very useful, in my opinion. The relationships between packages > 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. > > (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.) I know it. :) I had my own similar script "ports_tree.sh" to show me dependencies according to choosen options. I know it is too verbose and I use grep -v to exclude known packages from the output. The same will apply to pkg_tree.sh as well. I use pkg info -r, pkg info -d or pkg query often. The request for port of pkg_tree.sh has not high priority for me, it is just that this shell version is better than already existing pkg_tree in Perl. (which I don't use) Miroslav Lachman