From owner-freebsd-pkg@freebsd.org Tue Jan 8 09:48:09 2019 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F83A1498D03 for ; Tue, 8 Jan 2019 09:48:09 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.infracaninophile.co.uk", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 17692818DF for ; Tue, 8 Jan 2019 09:48:08 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from leaf.local (unknown [88.202.132.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 7657A10F04 for ; Tue, 8 Jan 2019 09:48:06 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk/7657A10F04; dkim=none; dkim-atps=neutral Subject: Re: A graphical dependency tree viewer? To: freebsd-pkg@freebsd.org References: <20190107100901.GA36925@admin.sibptus.ru> <4121f685-10b9-aab5-9c33-5356fb30a8d8@FreeBSD.org> <20190108071008.GA49490@admin.sibptus.ru> From: Matthew Seaman Message-ID: <54c7bdc4-9eee-5353-88a8-2f6d6831c710@FreeBSD.org> Date: Tue, 8 Jan 2019 09:48:04 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190108071008.GA49490@admin.sibptus.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 17692818DF X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.993,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2019 09:48:09 -0000 On 08/01/2019 07:10, Victor Sudakov wrote: > Matthew Seaman wrote: >>> >>> Is there a tool to view all the dependencies of a port/package >>> (including indirect ones) as a tree? A .dot format would be perfect, but >>> an ascii-art tree would do too. >>> >>> It would be especially useful if this tool could extract information >>> from /var/db/pkg/*.sqlite without requiring a ports tree. >>> >> >> Does this suit your purposes? >> >> https://github.com/freebsd/pkg/blob/master/scripts/pkg_tree.sh >> > > The author of the script has the right idea, but the visual presentation > of the graph is lacking: the vertical lines going down towards nowhere > are confusing: https://termbin.com/vf3u > > The tabbed view (-n) is a bit better. > > Also, why is openjdk8-8.192.26_3 twice in the tree (see the link above), > is this intentional? Yeah -- the output doesn't merge common dependency subtrees, so if A depends on B depends on C and also A depends on D depends on C, then C will appear twice in the output. Cheers, Matthew