From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jelle Licht Subject: Re: [PATCH 2/2] Add jq Date: Sat, 26 Mar 2016 23:53:24 +0100 Message-ID: References: <1459019619.979274.560403538.738A9771@webmail.messagingengine.com> <20160326224554.GA430@jasmine> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b3441da0a4267052efb8c00 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajx5L-00041X-Nn for guix-devel@gnu.org; Sat, 26 Mar 2016 18:53:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajx5G-0007Gy-O0 for guix-devel@gnu.org; Sat, 26 Mar 2016 18:53:35 -0400 Received: from cavendish.fsfeurope.org ([2001:aa8:ffed::3:102]:50082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajx5G-0007Gq-Dr for guix-devel@gnu.org; Sat, 26 Mar 2016 18:53:30 -0400 Received: from localhost (localhost [127.0.0.1]) by cavendish.fsfeurope.org (Postfix) with ESMTP id 6881163B9E5 for ; Sat, 26 Mar 2016 23:53:29 +0100 (CET) Received: from cavendish.fsfeurope.org ([127.0.0.1]) by localhost (cavendish.fsfeurope.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rfu0yVeE+6x4 for ; Sat, 26 Mar 2016 23:53:29 +0100 (CET) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) (Authenticated sender: jlicht) by cavendish.fsfeurope.org (Postfix) with ESMTPSA id 9A37A63B9E7 for ; Sat, 26 Mar 2016 23:53:27 +0100 (CET) Received: by mail-lb0-f173.google.com with SMTP id qe11so63882003lbc.3 for ; Sat, 26 Mar 2016 15:53:27 -0700 (PDT) In-Reply-To: <20160326224554.GA430@jasmine> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Leo Famulari Cc: guix-devel@gnu.org --047d7b3441da0a4267052efb8c00 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable >From jq's README: To get regexp support you'll also need to install Oniguruma (note that jq's > tests require regexp support to pass). So it seems to be an optional dependency (which allows tests to pass and adds functionality). I could make it a build-time dependency, or not. What is the 'guix' way of handling these cases? -- Jelle 2016-03-26 23:45 GMT+01:00 Leo Famulari : > On Sat, Mar 26, 2016 at 11:06:15PM +0100, Jelle Licht wrote: > > + (inputs > > + `(("oniguruma" ,oniguruma))) > > [...] > > > + (description "jq is like sed for JSON data =E2=80=93 you can use i= t to > slice and > > +filter and map and transform structured data with the same ease that > sed, awk, > > +grep and friends let you play with text. It is written in portable C, > and it > > +has zero runtime dependencies. jq can mangle the data format that you > have > ^-----------------------^ > > Since oniguruma is listed as a run-time dependency, does this mean the > description is wrong? Or is oniguruma only needed to build? > --047d7b3441da0a4267052efb8c00 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
From jq's README:

To get regexp support you'll also need to install Oniguruma (note that jq'= s tests require regexp support to pass).

So i= t seems to be an optional dependency (which allows tests to pass and adds f= unctionality). I could make it a build-time dependency, or not.
What is the 'guix' way of handling these cases?

--
Jelle


=
2016-03-26 23:45 GMT+01:00 Leo Famulari <leo@fa= mulari.name>:
On Sat, Mar 2= 6, 2016 at 11:06:15PM +0100, Jelle Licht wrote:
> +=C2=A0 =C2=A0 (inputs
> +=C2=A0 =C2=A0 =C2=A0`(("oniguruma" ,oniguruma)))

[...]

> +=C2=A0 =C2=A0 (description "jq is like sed for JSON data =E2=80= =93 you can use it to slice and
> +filter and map and transform structured data with the same ease that = sed, awk,
> +grep and friends let you play with text.=C2=A0 It is written in porta= ble C, and it
> +has zero runtime dependencies.=C2=A0 jq can mangle the data format th= at you have
=C2=A0 =C2=A0 =C2=A0 =C2=A0^-----------------------^

Since oniguruma is listed as a run-time dependency, does this mean the
description is wrong? Or is oniguruma only needed to build?

--047d7b3441da0a4267052efb8c00--