[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

`guix search` feature or bug?

From: zimoun
Subject: `guix search` feature or bug?
Date: Wed, 17 Jul 2019 15:40:29 +0200


An example describes better than words. :-)

  guix package --show=tuxpaint

And one can read the terms `software` in the synopsis and `tools` in
the description.
However, `guix search software tools` does not output the package `tuxpaint`.

  guix search software tools | recsel -C -P name | sort

>From the function `relevance` in `guix/ui.scm`, if I understand well,
it seems expected. Each field deals with the regexp and the terms
`software` and `tools` does not appear both in only one field.

Is this behaviour expected?

To be more concrete, the manual says "And now for a more elaborate
example.  The following command searches for cryptographic libraries,
filters out Haskell, Perl, Python, and Ruby libraries, and prints the
name and synopsis of the matching packages:

   $ guix search crypto library | \
        recsel -e '! (name ~ "^(ghc|perl|python|ruby)")' -p name,synopsis

and the cryptographic library `libb2` is not listed by the previous
search command line because the terms `crypto` and `library` does not
appear both in the same field.

    guix package --show=libb2

name: libb2
version: 0.98.1
outputs: out
systems: x86_64-linux i686-linux armhf-linux aarch64-linux mips64el-linux
location: gnu/packages/crypto.scm:648:2
license: Public Domain
synopsis: Library implementing the BLAKE2 family of hash functions
description: libb2 is a portable implementation of the BLAKE2 family of
+ cryptographic hash functions.  It includes optimised implementations for IA-32
+ and AMD64 processors, and an interface layer that automatically selects the
+ best implementation for the processor it is run on.
+ "BLAKE2" (RFC 7693) is a family of high-speed cryptographic hash functions
+ that are faster than MD5, SHA-1, SHA-2, and SHA-3, yet are at least as secure
+ as the latest standard, SHA-3.  It is an improved version of the SHA-3
+ finalist BLAKE.

All the best,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]