Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Mar 2016 10:07:53 -0400 (EDT)
From:      Daniel Eischen <deischen@freebsd.org>
To:        Bryan Drewery <bdrewery@FreeBSD.org>
Cc:        Slawa Olhovchenkov <slw@zxy.spb.ru>, Baptiste Daroussin <bapt@FreeBSD.org>, David Chisnall <theraven@FreeBSD.org>, Glen Barber <gjb@FreeBSD.org>, freebsd-current@freebsd.org, freebsd-pkgbase@freebsd.org
Subject:   Re: [CFT] packaging the base system with pkg(8)
Message-ID:  <Pine.GSO.4.64.1603131007020.18440@sea.ntplx.net>
In-Reply-To: <56E4F3E9.1070307@FreeBSD.org>
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> <Pine.GSO.4.64.1603111144510.10158@sea.ntplx.net> <56E4F3E9.1070307@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 12 Mar 2016, Bryan Drewery wrote:

> On 3/11/16 9:01 AM, Daniel Eischen wrote:
>> On Fri, 11 Mar 2016, Slawa Olhovchenkov wrote:
>>
>>> On Fri, Mar 11, 2016 at 01:05:11PM +0100, Baptiste Daroussin wrote:
>>>
>>>> On Tue, Mar 08, 2016 at 05:35:59PM +0000, David Chisnall wrote:
>>>>> On 8 Mar 2016, at 15:14, Slawa Olhovchenkov <slw@zxy.spb.ru> wrote:
>>>>>>
>>>>>
>>>>> In terms of comparing packages, if you=E2=80=99re doing that visually=
 then
>>>>> you are likely to have problems anyway, unless your eyes and brain
>>>>> work far better than most humans.  We can make that much easier by
>>>>> providing libxo output in pkg and allowing you to have a simple jq
>>>>> script that tells you what the differences are.
>>>>>
>>>> pkg can already expose the entire content of a package in json or ucl
>>>> via:
>>>> $ pkg info --raw --raw-format [json|json-conpact|yaml|ucl] name
>>>
>>> Exposing  the entire content of a package is not a root of cause.
>>> Question in comapring of two different setup with different behaviour
>>> and search cause of difference.
>>>
>>> Case of only a few monolitic packages is essentiality simple then case
>>> of 1000 combined packages.
>>
>> It would be nice to have pkg(8) show packages in tree form, with option
>> to show just top-level meta packages or packages that have no meta.
>>
>> Perhaps this is possible, but it's not obvious to me.
>>
>
> https://github.com/freebsd/pkg/blob/master/scripts/pkg_tree.sh

Cool, thanks.  BTW, is there a typo on line 52?  s/Pring/Print/?

--=20
DE
From owner-freebsd-current@freebsd.org  Sun Mar 13 14:17:16 2016
Return-Path: <owner-freebsd-current@freebsd.org>
Delivered-To: freebsd-current@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 83C43ACE9D3;
 Sun, 13 Mar 2016 14:17:16 +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 BE5121F6D;
 Sun, 13 Mar 2016 14:17:15 +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 2B76928436;
 Sun, 13 Mar 2016 15:17:07 +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 DA41528412;
 Sun, 13 Mar 2016 15:17:05 +0100 (CET)
Message-ID: <56E57661.2060601@quip.cz>
Date: Sun, 13 Mar 2016 15:17:05 +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: Bryan Drewery <bdrewery@FreeBSD.org>, Daniel Eischen <deischen@freebsd.org>
CC: Baptiste Daroussin <bapt@FreeBSD.org>,
 David Chisnall <theraven@FreeBSD.org>, Glen Barber <gjb@FreeBSD.org>,
 freebsd-current@freebsd.org, 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>
 <Pine.GSO.4.64.1603111144510.10158@sea.ntplx.net>
 <56E4F3E9.1070307@FreeBSD.org>
In-Reply-To: <56E4F3E9.1070307@FreeBSD.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>;
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 13 Mar 2016 14:17:16 -0000

Bryan Drewery wrote on 03/13/2016 06:00:
> On 3/11/16 9:01 AM, Daniel Eischen wrote:
>> On Fri, 11 Mar 2016, Slawa Olhovchenkov wrote:
>>
>>> On Fri, Mar 11, 2016 at 01:05:11PM +0100, Baptiste Daroussin wrote:
>>>
>>>> On Tue, Mar 08, 2016 at 05:35:59PM +0000, David Chisnall wrote:
>>>>> On 8 Mar 2016, at 15:14, Slawa Olhovchenkov <slw@zxy.spb.ru> wrote:
>>>>>>
>>>>>
>>>>> In terms of comparing packages, if you’re doing that visually then
>>>>> you are likely to have problems anyway, unless your eyes and brain
>>>>> work far better than most humans.  We can make that much easier by
>>>>> providing libxo output in pkg and allowing you to have a simple jq
>>>>> script that tells you what the differences are.
>>>>>
>>>> pkg can already expose the entire content of a package in json or ucl
>>>> via:
>>>> $ pkg info --raw --raw-format [json|json-conpact|yaml|ucl] name
>>>
>>> Exposing  the entire content of a package is not a root of cause.
>>> Question in comapring of two different setup with different behaviour
>>> and search cause of difference.
>>>
>>> Case of only a few monolitic packages is essentiality simple then case
>>> of 1000 combined packages.
>>
>> It would be nice to have pkg(8) show packages in tree form, with option
>> to show just top-level meta packages or packages that have no meta.
>>
>> Perhaps this is possible, but it's not obvious to me.
>>
>
> https://github.com/freebsd/pkg/blob/master/scripts/pkg_tree.sh

Thank you.
Can you publish it as a port? I know there is one written in Perl but I 
like your sh without dependencies.

Miroslav Lachman




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.64.1603131007020.18440>