From owner-freebsd-pkgbase@freebsd.org Sun Mar 13 05:00:31 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 DCE34ACD7B9; Sun, 13 Mar 2016 05:00:31 +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 CA8DBAEB; Sun, 13 Mar 2016 05:00:31 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id C3CFC13C3; Sun, 13 Mar 2016 05:00:31 +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 7EA8E1E979; Sun, 13 Mar 2016 05:00:31 +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 VhgJzgdJfrOt; Sun, 13 Mar 2016 05:00:28 +0000 (UTC) Subject: Re: [CFT] packaging the base system with pkg(8) DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com EC4E81E974 To: Daniel Eischen , Slawa Olhovchenkov 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> Cc: Baptiste Daroussin , David Chisnall , Glen Barber , freebsd-current@freebsd.org, freebsd-pkgbase@freebsd.org From: Bryan Drewery Organization: FreeBSD Message-ID: <56E4F3E9.1070307@FreeBSD.org> Date: Sat, 12 Mar 2016 21:00:25 -0800 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: 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: Sun, 13 Mar 2016 05:00:32 -0000 On 3/11/16 9:01 AM, Daniel Eischen wrote: > On Fri, 11 Mar 2016, Slawa Olhovchenkov wrote: >=20 >> 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 wrote: >>>>> >>>> >>>> In terms of comparing packages, if you=E2=80=99re doing that visuall= y 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. >=20 > 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. >=20 > Perhaps this is possible, but it's not obvious to me. >=20 https://github.com/freebsd/pkg/blob/master/scripts/pkg_tree.sh --=20 Regards, Bryan Drewery From owner-freebsd-pkgbase@freebsd.org Sun Mar 13 14:08:01 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 EC142ACE617; Sun, 13 Mar 2016 14:08:01 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.netplex.net", Issuer "RapidSSL SHA256 CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B1B7F1ACB; Sun, 13 Mar 2016 14:08:01 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.15.1/8.15.1/NETPLEX) with ESMTP id u2DE7rYj047370; Sun, 13 Mar 2016 10:07:53 -0400 X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.4.3 (mail.netplex.net [204.213.176.9]); Sun, 13 Mar 2016 10:07:54 -0400 (EDT) Date: Sun, 13 Mar 2016 10:07:53 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net Reply-To: Daniel Eischen To: Bryan Drewery cc: Slawa Olhovchenkov , Baptiste Daroussin , David Chisnall , Glen Barber , freebsd-current@freebsd.org, freebsd-pkgbase@freebsd.org Subject: Re: [CFT] packaging the base system with pkg(8) In-Reply-To: <56E4F3E9.1070307@FreeBSD.org> Message-ID: 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> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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: Sun, 13 Mar 2016 14:08:02 -0000 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 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-pkgbase@freebsd.org Sun Mar 13 14:17:16 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 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 , Daniel Eischen CC: Baptiste Daroussin , David Chisnall , Glen Barber , 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> <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-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: 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 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 From owner-freebsd-pkgbase@freebsd.org Sun Mar 13 15:16:23 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 A5602ACE37F; Sun, 13 Mar 2016 15:16:23 +0000 (UTC) (envelope-from lifanov@mail.lifanov.com) Received: from mail.lifanov.com (mail.lifanov.com [206.125.175.12]) (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 91D5B663; Sun, 13 Mar 2016 15:16:23 +0000 (UTC) (envelope-from lifanov@mail.lifanov.com) Received: by mail.lifanov.com (Postfix, from userid 58) id B171E239740; Sun, 13 Mar 2016 11:16:17 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.lifanov.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.1 Received: from [10.100.100.58] (unknown [107.15.95.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lifanov.com (Postfix) with ESMTPSA id 3151A239424; Sun, 13 Mar 2016 11:16:11 -0400 (EDT) User-Agent: K-9 Mail for Android In-Reply-To: <56E57661.2060601@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> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [CFT] packaging the base system with pkg(8) From: Nikolai Lifanov Date: Sun, 13 Mar 2016 11:16:07 -0400 To: freebsd-pkgbase@freebsd.org CC: freebsd-current@freebsd.org Message-ID: <5773D1BC-1992-4A0B-8656-47A63707FE81@mail.lifanov.com> 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: Sun, 13 Mar 2016 15:16:23 -0000 On March 13, 2016 10:17:05 AM EDT, Miroslav Lachman <000.fbsd@quip.cz> wrote: >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 >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 > >_______________________________________________ >freebsd-current@freebsd.org mailing list >https://lists.freebsd.org/mailman/listinfo/freebsd-current >To unsubscribe, send any mail to >"freebsd-current-unsubscribe@freebsd.org" In my opinion, if this script is to land in ports, it should go under share/doc or share/examples for ports-mgmt/pkg. - Nikolai Lifanov From owner-freebsd-pkgbase@freebsd.org Mon Mar 14 19:30:08 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 A309CACF089; Mon, 14 Mar 2016 19:30:08 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 6999D891; Mon, 14 Mar 2016 19:30:08 +0000 (UTC) (envelope-from des@des.no) Received: from desk.des.no (smtp.des.no [194.63.250.102]) by smtp.des.no (Postfix) with ESMTP id 2478BAD2B; Mon, 14 Mar 2016 19:30:07 +0000 (UTC) Received: by desk.des.no (Postfix, from userid 1001) id BFE535345C; Mon, 14 Mar 2016 20:29:59 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Miroslav Lachman <000.fbsd@quip.cz> 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> Date: Mon, 14 Mar 2016 20:29:59 +0100 In-Reply-To: <56E57661.2060601@quip.cz> (Miroslav Lachman's message of "Sun, 13 Mar 2016 15:17:05 +0100") Message-ID: <86d1qwkgco.fsf@desk.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix) MIME-Version: 1.0 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:30:08 -0000 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.) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-pkgbase@freebsd.org Mon Mar 14 19:37:10 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 4213DACF35A; Mon, 14 Mar 2016 19:37:10 +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 2D12FC4E; Mon, 14 Mar 2016 19:37:10 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 253DA1F33; Mon, 14 Mar 2016 19:37:10 +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 CF6011F12D; Mon, 14 Mar 2016 19:37:09 +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 GLMxpCMYV6Qf; Mon, 14 Mar 2016 19:37:03 +0000 (UTC) Subject: Re: [CFT] packaging the base system with pkg(8) DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 34B5A1F128 To: Daniel Eischen 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> Cc: David Chisnall , Glen Barber , freebsd-current@freebsd.org, freebsd-pkgbase@freebsd.org From: Bryan Drewery Organization: FreeBSD Message-ID: <56E712DE.3070308@FreeBSD.org> Date: Mon, 14 Mar 2016 12:37:02 -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: 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:37:10 -0000 On 3/13/16 7:07 AM, Daniel Eischen wrote: > On Sat, 12 Mar 2016, Bryan Drewery wrote: >=20 >> 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 wrote= : >>>>>>> >>>>>> >>>>>> In terms of comparing packages, if you=E2=80=99re doing that visua= lly 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 u= cl >>>>> 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 behaviou= r >>>> and search cause of difference. >>>> >>>> Case of only a few monolitic packages is essentiality simple then ca= se >>>> of 1000 combined packages. >>> >>> It would be nice to have pkg(8) show packages in tree form, with opti= on >>> 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 >=20 > Cool, thanks. BTW, is there a typo on line 52? s/Pring/Print/? >=20 Thanks, fixed. --=20 Regards, Bryan Drewery 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 From owner-freebsd-pkgbase@freebsd.org Mon Mar 14 22:00:57 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 22C07AD0985 for ; Mon, 14 Mar 2016 22:00:57 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AEFFD8A5 for ; Mon, 14 Mar 2016 22:00:56 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: by mail-wm0-x235.google.com with SMTP id l68so120434366wml.0 for ; Mon, 14 Mar 2016 15:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=mhLDTABb9qgIfk+hJPbk0ipkw4FSDbn5u7elxmWtU5Y=; b=AKgGNk2b1bD/lZEWUVujPyg8zrttnHB3E5qmHKwHA8nNfBbMmJa1IQqM6ndRgoDwdq F62wnP4Z/DqCK5Pmw3VgSDY1RmBEPX9N2OxHtQRbG4T+kUTUdoRmhirOkQi4Rj1+6OCd zjSWFSoBO+7wUrxxIurN5HHvUc30INjXE9T5OCSqS6wH/DWsZKCu15IzUKMfSTm9Qwz9 wQbUFTHsGhp7TfkvXruvAtNmtGv4bDqjK/BjvDOTnocYB0QWdi7NfQxy9K9x7jJXWXbE FxYnFLo865YT4keupW3oRWbW2kf4Y8dMcK2J3GNjhLiNu31CL4LpgNz9DX9hnvkvu8I2 rPKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=mhLDTABb9qgIfk+hJPbk0ipkw4FSDbn5u7elxmWtU5Y=; b=h1qstwAXjZPx/1we36KbM+dj66Iut8HUXqAzZ++75Zbz5f1O2dLC3/qUGHLSmJ8a1F C3f5VzRmeG7z34HoSabWr3XOg7/Y7wwEmi1WMCz5NNRCt6jQTRvWFfZCP3UeiXqC4RDA JUpRjjih94R9mktePhllShMxmSVPRcZ4EjWgk3/yxiaMvujcdwyQ+7bmg/teYGZ5lCda y+drsWhcXqKSJWK3lnv8P9wsfsT+Nj1Yo3D5l/BUmppC8uKiBEcoWBaEEIQJ/fvqCgzi lQRWn1lWMfwCy9AOXjxnxuPGBmrvUlyFKCQ9hNt/EtRtH7NJWfwnog8zy/Mn/8AWdneN vMww== X-Gm-Message-State: AD7BkJKZ9eHcmcqwLoMfcjsGlOWt+Sw59ZgYpwxStAhPE7uW/fmSKYM7LMdU3dXBMnCvRA== X-Received: by 10.194.112.34 with SMTP id in2mr28972491wjb.160.1457992855124; Mon, 14 Mar 2016 15:00:55 -0700 (PDT) Received: from [192.168.178.21] (a82-161-212-209.adsl.xs4all.nl. [82.161.212.209]) by smtp.googlemail.com with ESMTPSA id gt7sm24083742wjc.1.2016.03.14.15.00.54 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 Mar 2016 15:00:54 -0700 (PDT) Sender: =?UTF-8?Q?Ren=C3=A9_Ladan?= Subject: Re: [CFT] packaging the base system with pkg(8) To: freebsd-pkgbase@freebsd.org References: <20160302235429.GD75641@FreeBSD.org> From: =?UTF-8?Q?Ren=c3=a9_Ladan?= X-Enigmail-Draft-Status: N1110 Message-ID: <56E73495.2020600@freebsd.org> Date: Mon, 14 Mar 2016 23:00:53 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160302235429.GD75641@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 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: Mon, 14 Mar 2016 22:00:57 -0000 On 03/ 3/16 12:54 AM, Glen Barber wrote: > For those who have missed the initial email surrounding this topic, we > are planning on packaging the base system with pkg(8) for 11.0-RELEASE. > > https://lists.freebsd.org/pipermail/freebsd-pkgbase/2016-January/000000.html > [...] > After checking out the project branch, build the userland and kernel as > normal with the 'buildworld' and 'buildkernel' targets. Afterward, > packages can be created with the 'packages' target. > > # cd /usr/src > # make [make flags] buildworld > # make [make flags] buildkernel > # make packages > This also works nicely for my Raspberry Pi B (cross built on a amd64 box) with "ARCH=arm TARGET_ARCH=armv6 TARGET_CPUTYPE=armv6" and KERNCONF=RPI-B added to the commands. > At present, the base system consists of 755 packages with the default > build (empty src.conf(5) and make.conf(5)) for amd64. The number of > packages depends on several factors, but for most cases a runtime binary > is split into several components. In particular, most shared libraries > are individually packaged, in addition to debugging symbols, profiling > libraries, and 32-bit packaged separately. > For RPI-B the total number was around 410, after some pruning my RPI-B is now down to 95 base packages. [...] > To initially bootstrap the 'FreeBSD-*' packages, they must be forcibly > installed. Package registration is not performed during 'installworld' > or 'installkernel', and there are no immediate plans to do this. > > This can be done by running: > > # pkg update -r FreeBSD-base > # pkg install -g 'FreeBSD-*' > [...] That worked, as does upgrading packages. Upgrading is already much easier with just: # pkg upgrade # reboot and not having to eject the SD card. This works fine with both the full and a reduced package set. While pruning packages, I figured that ports-mgmt/pkg depends on FreeBSD-jail. After accidentally deleting that package ("jails on an RPI?"), pkg would no longer run but pkg-static luckily did so I quickly re-added the FreeBSD-jail package. This leads to the more general question if/how packages from the Ports Tree should indicate a dependency on base packages. Something like "LIB_DEPENDS=libjail.so:base/libjail" ? (and yes, currently all base packages have "base" as a single common origin...) Some other ideas: - split off OpenSSL into its own package to ease security updates or an import of LibreSSL - split the kernel package into a kernel and a whole lot of module packages (and perhaps minimize the kernel configuration itself). Keep up the good work! Regards, René From owner-freebsd-pkgbase@freebsd.org Tue Mar 15 03:33:39 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 43684AC296E; Tue, 15 Mar 2016 03:33:39 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CA1D73E0; Tue, 15 Mar 2016 03:33:38 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id l68so126662676wml.0; Mon, 14 Mar 2016 20:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=z5jYoD0Fk9i+WNHDJNxt/eYZhk5yLpXnzQzDLnT5bMI=; b=SfKXhsMQ1s/bfQ3K8M1qeVGnPjAkmdTPGyxoMiTjtivYY6XoPe8mLSttkTpWP+Y65I aH7JEFBM4WvanFzc61rl4k/2QMAyzCCnc0LJGTQg3V1uhEnW/kqBMXN2BCbgQGwwf20e JAkV3LoybCGbEkp6r3uD9wom43KnRaYjtQB3q4wnPehouWkgiJywut9ugfwpHtg36+mH pAfZRPEaAGKiOEiEFFMClOxLWKY0MC9aVnU+bbbYmAjQWbsSodIun10znIRcqUxFF3Rh OsDDKqpq1rbTSDDipa8JLxXgYRL112jNYON2dNAgL9ZPwXgpyoX9534cp85UtTs6BPGb ZFhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=z5jYoD0Fk9i+WNHDJNxt/eYZhk5yLpXnzQzDLnT5bMI=; b=cz5q0v2rCtWPcZn3EcIkVv5w0HtyhyjczlgwwWI4DbelYL4AxZgLEOdTRUrgsq534q OmhekY5NkFVrJ0uuAX9dp1MVqUURK4OtoiAGmPvjEOqcbFG8nV2daaBPnuKQ3dikzuFk VkAoEuu3jOBxSEq82TTyxgDQLTj5jKJH5HZfctp2hWv1iP52qYPYp3UB9Eo+X2KnM8/Y X/Bqm6cYEqzbQnFdmyyhtZDAsIiv5ovLtxp5xHl62VJ9/WgRUS7NB+EVIvQHcYumDENl qmV1Gp4QhrlSsR42ahp6wg3CNlvORmucaGGsKK5AL1AkADs9ECj4BJJSX9tlf/jJTqAQ u9dA== X-Gm-Message-State: AD7BkJLoQf6cfVGX31oGY4pBeQgt4Bf8n68B7VpPt6GaDTxVrlNW1Y8gtkgAIWEULxqeow== X-Received: by 10.194.58.169 with SMTP id s9mr27905916wjq.52.1458012816563; Mon, 14 Mar 2016 20:33:36 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id 8sm18845700wmk.13.2016.03.14.20.33.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Mar 2016 20:33:35 -0700 (PDT) Sender: Baptiste Daroussin Date: Tue, 15 Mar 2016 04:33:33 +0100 From: Baptiste Daroussin To: Bryan Drewery Cc: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= , Miroslav Lachman <000.fbsd@quip.cz>, Daniel Eischen , Glen Barber , freebsd-current@freebsd.org, David Chisnall , freebsd-pkgbase@freebsd.org Subject: Re: [CFT] packaging the base system with pkg(8) Message-ID: <20160315033333.GH11339@ivaldir.etoilebsd.net> References: <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> <56E7134F.9070106@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KscVNZbUup0vZz0f" Content-Disposition: inline In-Reply-To: <56E7134F.9070106@FreeBSD.org> User-Agent: Mutt/1.5.24 (2015-08-30) 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 03:33:39 -0000 --KscVNZbUup0vZz0f Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 14, 2016 at 12:38:55PM -0700, Bryan Drewery wrote: > On 3/14/16 12:29 PM, Dag-Erling Sm=F8rgrav 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 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. > >=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 >=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. Also note that if people likes graph we can now generate graphviz output fr= om the solver using pkg -o DOT_FILE=3D"/something.dot" then play with graphviz. Best regards, Bapt --KscVNZbUup0vZz0f Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJW54J7AAoJEGOJi9zxtz5aMDoP/RDEapcjvai/SG0JZ6XAblyM t+wP3icn1Qwups26N3J0ymG0hkf0YGJp1SwNZppEcDCnBsSZ5mcGT0+9GOxnk6kp 2lI0Ig74sqX4MeU4bBrfPLndVSOLkUh4ktKF2vz+Es7TfGNvVnPDEt8jxo7yOYlL Rr5IXZJEG65AiZcg8T7DTzZB2GEqs4U6kKqKWXvNN5WKGc0Xba2r2s5hdQiSXPA8 dTei5V9vb1S4YAwb0CI+pM9lLLD/EgOhkmXXAZhbJJvm9HbeS1Cxxp159rxec8+S tGHjfiepbNM7zL7lAUcSF1uH7hy6IuWvazZi2K5xb18mx8VJQ6SuRaOcnXJosFXn FSQ2I30XgF/cSO5bar1cFX1jA0lErXGAvpsvyPHMdygZ4aJfNdJ+R73rDpoxurQc GbQT8sCg6fLeYCqqdTukE0zM2r6aZBYU4piimbaCA8Zy+70SdefFFZ+7QOHoH7Ji 5lmK1Vqijcz3OKde/flo7WCndT9KnV9s71IvP0x0QVy05sGDuQNqVmOvHvoG81m8 GSN8KOQ4iNzY/SlAqmZxJ5fgaMqJBJOVnS8+Ablg4VlN/ntMZnAc5JN2cS2x2ZwO NR0D2lJAJ48S2K83YTFI4wuX4ziw2sMWEK79ZDanU0rQ/GWUn2/cI0H3h8C4uxDX ynDK8EjeqQuNvx9O0z0i =Shwy -----END PGP SIGNATURE----- --KscVNZbUup0vZz0f-- 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 From owner-freebsd-pkgbase@freebsd.org Tue Mar 15 15:44:08 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 A94EBACA890 for ; Tue, 15 Mar 2016 15:44:08 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (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 3A5FF1FE7 for ; Tue, 15 Mar 2016 15:44:08 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from ox-dell39.ox.adestra.com (unknown [85.199.232.226]) (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 8CAD37BCC for ; Tue, 15 Mar 2016 12:28:06 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/8CAD37BCC; dkim=none; dkim-atps=neutral Subject: Re: [CFT] packaging the base system with pkg(8) To: freebsd-pkgbase@freebsd.org References: <20160302235429.GD75641@FreeBSD.org> <56E73495.2020600@freebsd.org> From: Matthew Seaman Message-ID: <56E7FFCB.7050008@freebsd.org> Date: Tue, 15 Mar 2016 12:27:55 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <56E73495.2020600@freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2umj3wfljbSmfFgPQELI4kDNMMoGTFOI6" X-Virus-Scanned: clamav-milter 0.99 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=2.2 required=5.0 tests=RDNS_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk 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 15:44:08 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --2umj3wfljbSmfFgPQELI4kDNMMoGTFOI6 Content-Type: multipart/mixed; boundary="8mGWgvoCEoIeGdS8HGWACGUNwJonVubK8" From: Matthew Seaman To: freebsd-pkgbase@freebsd.org Message-ID: <56E7FFCB.7050008@freebsd.org> Subject: Re: [CFT] packaging the base system with pkg(8) References: <20160302235429.GD75641@FreeBSD.org> <56E73495.2020600@freebsd.org> In-Reply-To: <56E73495.2020600@freebsd.org> --8mGWgvoCEoIeGdS8HGWACGUNwJonVubK8 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 03/14/16 22:00, Ren=C3=A9 Ladan wrote: > This leads to the more general > question if/how packages from the Ports Tree should indicate a > dependency on base packages. Something like > "LIB_DEPENDS=3Dlibjail.so:base/libjail" ? (and yes, currently all base > packages have "base" as a single common origin...) How is the ports supposed to fulfil this dependency if it is found to be missing? You'ld either have to fail on a missing base package or rely on pkg(8) to install it -- the latter seems pretty reasonable, but that behaviour is quite an important change to the ports overall behaviour. It gets even more complicated if you need to depend on specific versions of a base package. I think having an attempt to install a port result in triggering an update to a new version of the base system would probably not go down too well. It's an interesting question though. If we're going to record explicit dependencies against the base system in packages, we'd absolutely need the whole variable version number dependency thing that was discussed earlier. You wouldn't want to be forced to recompile / reinstall everything binary if there's any update to the package containing libc, and that shouldn't be necessary in any case due to the forwards compatibility guarantee on libc's ABI. Cheers, Matthew --8mGWgvoCEoIeGdS8HGWACGUNwJonVubK8-- --2umj3wfljbSmfFgPQELI4kDNMMoGTFOI6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJW5//RAAoJEABRPxDgqeTnHy8QAJ+bo/PudzqN2JPyMFaTvizA 4F17JT+7BGZpJWguJFS5X3iUP5NEuFh+yFfofqKOLRX5cQHzwAUHFujcfdsH5NAN eVKNsrGsbWu2tKcj0LcmZV3gUMVGbREiOgzG7nwvpKlZ4lyKhBu9wSv6wCvbOkWA DvfGMcge1mMOn2kSdk2d7bOiD5zLFKB7PURXWhsTpCGyc0MIlmQLm9SUvicjZJMB pGltL3bkFuN7iY0p6VrMAdEWpvF2L8AWCNRgwv9zM2h4Nsaivlmkfm/SH/Gq9Wn2 xdE1DBGjyXl57YoAmpUTO5qyrq54IzluROPNdy+g/KfY/MYF9nyugvBZaJnsPsPE PY0OylCDywfYvssFZotIKjJY+o4WbT2qYQLPitWr2uyjAsSvAZYXbKmTPXml/n5W +GWw34VvkVSfOXVIsJMVnAkAIWdoiLCzLz5IN8ll2tczPv3KOLDwuCymySYBNCkg HMfXqHzZ5W0Z3fABr/qskT830AJoMx6TkYrQl8miSxYImdmDR++k5PNgdVDqZ2JL lcqQHyq941lFlO6gMiFjzrgsYDlO9Fi8acJTJ7C5M/Yk/EBf2r5KiYu/OE4wbhKH gpMLhz1SBCpPncn4KNajPRqRXTzVAE9kjVI5TCy0eGQRPYNwRRe07XQFfb06qE/0 QBunWQckaS2RhD9z/npn =CbJ4 -----END PGP SIGNATURE----- --2umj3wfljbSmfFgPQELI4kDNMMoGTFOI6--