Message ID | 86bkmr3m4t.fsf@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C1C4F27BBED; Sat, 21 Jan 2023 16:29:21 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 40A7A27BBE9 for <patchwork@mira.cbaines.net>; Sat, 21 Jan 2023 16:29:21 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1pJGjo-0003rm-8C; Sat, 21 Jan 2023 11:29:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1pJGjn-0003rG-BI for guix-patches@gnu.org; Sat, 21 Jan 2023 11:29:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1pJGjn-0007EM-2h for guix-patches@gnu.org; Sat, 21 Jan 2023 11:29:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1pJGjm-0005ey-Tv for guix-patches@gnu.org; Sat, 21 Jan 2023 11:29:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52109] Mention bsdcat, bsdcpio and bsdtar in description of libarchive Resent-From: zimoun <zimon.toutoune@gmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 21 Jan 2023 16:29:02 +0000 Resent-Message-ID: <handler.52109.B52109.167431850021677@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52109 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler <liliana.prikler@gmail.com>, Giovanni Biscuolo <g@xelera.eu>, Maxim Cournoyer <maxim.cournoyer@gmail.com> Cc: kiasoc5 <kiasoc5@disroot.org>, 52109@debbugs.gnu.org, Foo Chuan Wei <chuanwei.foo@hotmail.com> Received: via spool by 52109-submit@debbugs.gnu.org id=B52109.167431850021677 (code B ref 52109); Sat, 21 Jan 2023 16:29:02 +0000 Received: (at 52109) by debbugs.gnu.org; 21 Jan 2023 16:28:20 +0000 Received: from localhost ([127.0.0.1]:49640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1pJGj6-0005dT-28 for submit@debbugs.gnu.org; Sat, 21 Jan 2023 11:28:20 -0500 Received: from mail-wr1-f49.google.com ([209.85.221.49]:44850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <zimon.toutoune@gmail.com>) id 1pJGiy-0005cX-UQ for 52109@debbugs.gnu.org; Sat, 21 Jan 2023 11:28:13 -0500 Received: by mail-wr1-f49.google.com with SMTP id bk16so7286906wrb.11 for <52109@debbugs.gnu.org>; Sat, 21 Jan 2023 08:28:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=gZv1Ox5iKdxzvsgZAC3rnoANCgTnep3jFUTtdgAMUnY=; b=pcVdeOdQ5YBwaZ/p/3wYDQI42d43m/J4L0Gpgu6vnjHcH0DtYjTBtsztP5gg22YYUj 7nhSXygmy3zQ67PPnm5vQJG9UIT/w/n3FBPYwbPBXS+CN3RPKrhzmKxeb4zm7j/lhJNC XP27lBx0Rw++GZP0HKSuoSp4Ygul7CBnH6UjJ/TyTTtBxxSszYypZo1vM0o/FtqNeKEz TMk8we7sabzqe2tya8bHZzCgoWFmN0Rb/K6+yTXDwnSp8k+dvgp1ZbhlEKecs4k0JwSs fnkSaNucB4L8ZRL17y3wzGu/Sjyll+HxIieU+O3frCYEHCxut6gXywvDLFGrHhLGgI0T 1xGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gZv1Ox5iKdxzvsgZAC3rnoANCgTnep3jFUTtdgAMUnY=; b=Jct4SAW11IIXibwwKOZ94MnKIJi/bw/5e8RMxtyK89N3IvW4I2JTvThNpn0lYnOn4I 6qk6SIKlxe++Dx9ZNfn5grNK0boRoYbWlvEIu9C5BzYJTEw0E+CuxGNGm+RhgAF2ZLYp hEXzVb4cSLMDtbRHS0D+nek6UbvQuOaxDgguCpifbd6QZq39AnwxbXmXogtH+WrduDNC JON0SB38PNt9JsY2hgPM3HUl1FW2hCdbtC8S6zMlr6kqEtCiKX8MU1bCFdl76u9NdEk1 SZ8ihJ2ajpoEZXhWxEbLd/tlZRiWo2f5FETYRATTKvVyMjT1Cb32/g67ZojeUJkwF4qd cOsQ== X-Gm-Message-State: AFqh2kolR102PIsJjE47uGoAJx2ZnERsQlZbWM0sXQf55uRuz1s8Gsho /OdXgE3t0UDWFeR5nvXIZy4= X-Google-Smtp-Source: AMrXdXvfo6Uc/SAAoEKLf6okSLSGZrhkaQJrcqqd2dwPLyDMsT1da0HsAdmJippmYYClf76nqYQeww== X-Received: by 2002:a05:6000:98d:b0:242:879c:1e29 with SMTP id by13-20020a056000098d00b00242879c1e29mr3911490wrb.2.1674318487245; Sat, 21 Jan 2023 08:28:07 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id q17-20020a056000137100b002be4ff0c917sm4645001wrz.84.2023.01.21.08.28.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Jan 2023 08:28:06 -0800 (PST) From: zimoun <zimon.toutoune@gmail.com> In-Reply-To: <87bkmytoy6.fsf@gmail.com> References: <877cxqwjen.fsf@gmail.com> <e85c206ba99a4b7bdd7bd4f23a91f78d69ca630c.camel@gmail.com> <87o7qyvmkp.fsf@gmail.com> <69bf571edfe9834851ddcd9f93e8158983b42612.camel@gmail.com> <87bkmytoy6.fsf@gmail.com> Date: Sat, 21 Jan 2023 17:09:22 +0100 Message-ID: <86bkmr3m4t.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#52109] Mention bsdcat, bsdcpio and bsdtar in description of libarchive
|
|
Commit Message
Simon Tournier
Jan. 21, 2023, 4:09 p.m. UTC
Hi Liliana,
On Mon, 16 Jan 2023 at 17:38, Simon Tournier <zimon.toutoune@gmail.com> wrote:
> Thanks. I will update libarchive description, if no one beats me.
Please find attach the patch. :-) If it appears to you fine, could you
merge it?
Cheers,
simon
Comments
Am Samstag, dem 21.01.2023 um 17:09 +0100 schrieb zimoun: > Hi Liliana, > > On Mon, 16 Jan 2023 at 17:38, Simon Tournier > <zimon.toutoune@gmail.com> wrote: > > > Thanks. I will update libarchive description, if no one beats me. > > Please find attach the patch. :-) If it appears to you fine, could > you merge it? Hmm, I fear that this line doesn't do much except helping folk to grep for "bsdtar" et al. Should we perhaps explain in a sentence or two what those commands do?
Hello Simon, zimoun <zimon.toutoune@gmail.com> writes: > Hi Liliana, > > On Mon, 16 Jan 2023 at 17:38, Simon Tournier <zimon.toutoune@gmail.com> wrote: > >> Thanks. I will update libarchive description, if no one beats me. > > Please find attach the patch. :-) If it appears to you fine, could you > merge it? > > Cheers, > simon > > > From 6947165af4e53821662049aac847a50fc470c49e Mon Sep 17 00:00:00 2001 > From: Simon Tournier <zimon.toutoune@gmail.com> > Date: Sat, 21 Jan 2023 17:04:56 +0100 > Subject: [PATCH] gnu: libarchive: Mention bsdcat, bsdcpio and bsdtar in > description. > > * gnu/packages/backup.scm (libarchive)[description]: Mention the utilities > bsdcat, bsdcpio and bsdtar. > --- > gnu/packages/backup.scm | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm > index 8e629c2592..7e8282da20 100644 > --- a/gnu/packages/backup.scm > +++ b/gnu/packages/backup.scm > @@ -333,7 +333,9 @@ (define-public libarchive > as gzip and bzip2. The library is inherently stream-oriented; readers > serially iterate through the archive, writers serially add things to the > archive. In particular, note that there is currently no built-in support for > -random access nor for in-place modification.") > +random access nor for in-place modification. > + > +This package also provides the three utilities bsdcat, bsdcpio and bsdtar.") > (license license:bsd-2))) > Nitpick, but I'd use "also provides the @command{bsdcat}, @command{bsdcpio} and @command{bsdtar} commands.", for the extra eye-pleasing effect.
Hi Liliana, Liliana Marie Prikler <liliana.prikler@gmail.com> writes: > Am Samstag, dem 21.01.2023 um 17:09 +0100 schrieb zimoun: >> Hi Liliana, >> >> On Mon, 16 Jan 2023 at 17:38, Simon Tournier >> <zimon.toutoune@gmail.com> wrote: >> >> > Thanks. I will update libarchive description, if no one beats me. >> >> Please find attach the patch. :-) If it appears to you fine, could >> you merge it? > Hmm, I fear that this line doesn't do much except helping folk to grep > for "bsdtar" et al. Should we perhaps explain in a sentence or two > what those commands do? Either way is fine by me; if we want to summarize what these commands do we could use a '@table @command' construct, I think.
Hi, On Sat, 21 Jan 2023 at 18:59, Liliana Marie Prikler <liliana.prikler@gmail.com> wrote: >> Please find attach the patch. :-) If it appears to you fine, could >> you merge it? > > Hmm, I fear that this line doesn't do much except helping folk to grep > for "bsdtar" et al. Should we perhaps explain in a sentence or two > what those commands do? It is not ’grep’ but “guix search” so it is only an internal SEO. ;-) From my point of view, some explanations about what these commands do are done by the man pages. Well, this trivial patch is just a quick workaround at 2 levels. One, because Guix File Search [1] is almost done but not very popular yet. Two, because this libarchive should be split into 2 different packages or outputs: one for the library itself and another for the commands. 1: <https://yhetil.org/guix/87pmd1r8kt.fsf@gmail.com> However, if a table containing what these utilities do seems appropriated, here the description from the Debian package ’libarchive-tools’: --8<---------------cut here---------------start------------->8--- The bsdtar program is the default system 'tar' program used on FreeBSD. bsdtar uses the libarchive library as a backend which does all of the work for reading and writing archives in various formats. The bsdcpio program is the default system 'cpio' program used on FreeBSD. bsdcpio uses the libarchive library as a backend which does all of the work for reading and writing archives in various formats The bsdcat program reads archived data from files or from its standard input and uses the libarchive library to decompresses it to its standard output. It may be used for viewing the contents of archives or for passing it to other tools for further processing. --8<---------------cut here---------------end--------------->8--- Cheers, simon
Am Sonntag, dem 22.01.2023 um 16:09 +0100 schrieb zimoun: > Hi, > > On Sat, 21 Jan 2023 at 18:59, Liliana Marie Prikler > <liliana.prikler@gmail.com> wrote: > > > > Please find attach the patch. :-) If it appears to you fine, > > > could you merge it? > > > > Hmm, I fear that this line doesn't do much except helping folk to > > grep for "bsdtar" et al. Should we perhaps explain in a sentence > > or two what those commands do? > > It is not ’grep’ but “guix search” so it is only an internal SEO. ;-) > > From my point of view, some explanations about what these commands do > are done by the man pages. > > Well, this trivial patch is just a quick workaround at 2 levels. > One, because Guix File Search [1] is almost done but not very popular > yet. Fair enough. > Two, because this libarchive should be split into 2 different > packages or outputs: one for the library itself and another for the > commands. > > 1: <https://yhetil.org/guix/87pmd1r8kt.fsf@gmail.com> Splitting libarchive outputs is sadly a core-updates change, but we could hide the existing one and add a user-facing one with the split if that's what you desire. I don't think adding a package for just the tools has merits. > However, if a table containing what these utilities do seems > appropriated, here the description from the Debian package > ’libarchive-tools’: > > --8<---------------cut here---------------start------------->8--- > The bsdtar program is the default system 'tar' program used on > FreeBSD. bsdtar uses the libarchive library as a backend which does > all of the work for reading and writing archives in various formats. > > The bsdcpio program is the default system 'cpio' program used on > FreeBSD. bsdcpio uses the libarchive library as a backend which does > all of the work for reading and writing archives in various formats > > The bsdcat program reads archived data from files or from its > standard input and uses the libarchive library to decompresses it to > its standard output. It may be used for viewing the contents of > archives or for passing it to other tools for further processing. > --8<---------------cut here---------------end--------------->8--- I think these could be shortened as follows: This package/the 'bin' output also provides @itemize @item @command{bsdtar} and @command{bsdcpio} to pack/unpack archives like @command{tar} and @command{cpio} respectively, and @item @command{bsdcat} to concatenate files like @command{cat} does, while transparently unpacking archives. @end itemize WDYT?
Hi Liliana, Liliana Marie Prikler <liliana.prikler@gmail.com> writes: > Am Sonntag, dem 22.01.2023 um 16:09 +0100 schrieb zimoun: >> Hi, >> >> On Sat, 21 Jan 2023 at 18:59, Liliana Marie Prikler >> <liliana.prikler@gmail.com> wrote: >> >> > > Please find attach the patch. :-) If it appears to you fine, >> > > could you merge it? >> > >> > Hmm, I fear that this line doesn't do much except helping folk to >> > grep for "bsdtar" et al. Should we perhaps explain in a sentence >> > or two what those commands do? >> >> It is not ’grep’ but “guix search” so it is only an internal SEO. ;-) >> >> From my point of view, some explanations about what these commands do >> are done by the man pages. >> >> Well, this trivial patch is just a quick workaround at 2 levels. >> One, because Guix File Search [1] is almost done but not very popular >> yet. > Fair enough. > >> Two, because this libarchive should be split into 2 different >> packages or outputs: one for the library itself and another for the >> commands. >> >> 1: <https://yhetil.org/guix/87pmd1r8kt.fsf@gmail.com> > Splitting libarchive outputs is sadly a core-updates change, but we > could hide the existing one and add a user-facing one with the split if > that's what you desire. I don't think adding a package for just the > tools has merits. > >> However, if a table containing what these utilities do seems >> appropriated, here the description from the Debian package >> ’libarchive-tools’: >> >> --8<---------------cut here---------------start------------->8--- >> The bsdtar program is the default system 'tar' program used on >> FreeBSD. bsdtar uses the libarchive library as a backend which does >> all of the work for reading and writing archives in various formats. >> >> The bsdcpio program is the default system 'cpio' program used on >> FreeBSD. bsdcpio uses the libarchive library as a backend which does >> all of the work for reading and writing archives in various formats >> >> The bsdcat program reads archived data from files or from its >> standard input and uses the libarchive library to decompresses it to >> its standard output. It may be used for viewing the contents of >> archives or for passing it to other tools for further processing. >> --8<---------------cut here---------------end--------------->8--- > I think these could be shortened as follows: > > This package/the 'bin' output also provides > @itemize > @item @command{bsdtar} and @command{bsdcpio} to pack/unpack archives > like @command{tar} and @command{cpio} respectively, and > @item @command{bsdcat} to concatenate files like @command{cat} does, > while transparently unpacking archives. > @end itemize Like Simon, I think just mentioning the commands solve the lack of discovery problem that they reported about these commands; the details themselves can be further looked up by users via the manpages or --help output, since the above description wouldn't provide much more than what can be guessed already. I pushed Simon's suggested change.
Hi Liliana, On Sun, 22 Jan 2023 at 18:44, Liliana Marie Prikler <liliana.prikler@gmail.com> wrote: > Splitting libarchive outputs is sadly a core-updates change, but we > could hide the existing one and add a user-facing one with the split if > that's what you desire. I don't think adding a package for just the > tools has merits. Well, I think the addition of a ’bin’ outputs would be the most suitable, even if it is a core-updates change. > This package/the 'bin' output also provides > @itemize > @item @command{bsdtar} and @command{bsdcpio} to pack/unpack archives > like @command{tar} and @command{cpio} respectively, and > @item @command{bsdcat} to concatenate files like @command{cat} does, > while transparently unpacking archives. > @end itemize This table looks good to me. Although Maxim pushed the v2 (which I find already enough :-)), it could be included for the package containing a ’bin’ outputs directed to core-updates. WDYT? Cheers, simon
Am Montag, dem 23.01.2023 um 08:45 +0100 schrieb zimoun: > Hi Liliana, > > On Sun, 22 Jan 2023 at 18:44, Liliana Marie Prikler > <liliana.prikler@gmail.com> wrote: > > > Splitting libarchive outputs is sadly a core-updates change, but we > > could hide the existing one and add a user-facing one with the > > split if that's what you desire. I don't think adding a package > > for just the tools has merits. > > Well, I think the addition of a ’bin’ outputs would be the most > suitable, even if it is a core-updates change. > > > This package/the 'bin' output also provides > > @itemize > > @item @command{bsdtar} and @command{bsdcpio} to pack/unpack > > archives > > like @command{tar} and @command{cpio} respectively, and > > @item @command{bsdcat} to concatenate files like @command{cat} > > does, > > while transparently unpacking archives. > > @end itemize > > This table looks good to me. Although Maxim pushed the v2 (which I > find already enough :-)), it could be included for the package > containing a ’bin’ outputs directed to core-updates. WDYT? I have no strong preference for either solution (with the other solution being keeping the package as pushed by Maxim). If you think we should do a bin output with that description, go for it. Cheers
From 6947165af4e53821662049aac847a50fc470c49e Mon Sep 17 00:00:00 2001 From: Simon Tournier <zimon.toutoune@gmail.com> Date: Sat, 21 Jan 2023 17:04:56 +0100 Subject: [PATCH] gnu: libarchive: Mention bsdcat, bsdcpio and bsdtar in description. * gnu/packages/backup.scm (libarchive)[description]: Mention the utilities bsdcat, bsdcpio and bsdtar. --- gnu/packages/backup.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm index 8e629c2592..7e8282da20 100644 --- a/gnu/packages/backup.scm +++ b/gnu/packages/backup.scm @@ -333,7 +333,9 @@ (define-public libarchive as gzip and bzip2. The library is inherently stream-oriented; readers serially iterate through the archive, writers serially add things to the archive. In particular, note that there is currently no built-in support for -random access nor for in-place modification.") +random access nor for in-place modification. + +This package also provides the three utilities bsdcat, bsdcpio and bsdtar.") (license license:bsd-2))) (define-public rdup base-commit: 900d33527c9286a811f064d4bb8f4a9b18d1db0b -- 2.38.1