From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: bug#35588: guix package --search does not search output names Date: Sun, 05 May 2019 12:39:05 -0700 Message-ID: <87r29czo6e.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:34773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNMzT-0004D7-Iy for bug-guix@gnu.org; Sun, 05 May 2019 15:40:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNMzS-0003xt-9o for bug-guix@gnu.org; Sun, 05 May 2019 15:40:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41387) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hNMzS-0003wl-71 for bug-guix@gnu.org; Sun, 05 May 2019 15:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hNMzS-00036s-42 for bug-guix@gnu.org; Sun, 05 May 2019 15:40:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:34687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNMyp-0004C1-K7 for bug-guix@gnu.org; Sun, 05 May 2019 15:39:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNMym-0001kw-NO for bug-guix@gnu.org; Sun, 05 May 2019 15:39:22 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:44445) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hNMyk-0001Td-VR for bug-guix@gnu.org; Sun, 05 May 2019 15:39:20 -0400 Received: by mail-pf1-x42b.google.com with SMTP id y13so5554608pfm.11 for ; Sun, 05 May 2019 12:39:17 -0700 (PDT) Received: from garuda.local ([2601:601:9d80:25b2::fa8]) by smtp.gmail.com with ESMTPSA id c8sm11186001pfr.16.2019.05.05.12.39.14 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 05 May 2019 12:39:14 -0700 (PDT) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 35588@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, mikadoZero reported a bug here: https://lists.gnu.org/archive/html/help-guix/2019-04/msg00206.html The bug is reproducible. On Guix commit aa7cdc57dc28673dedfc6ec210974aaa0099a419, a search for keyword "cargo" does not find the "cargo" output of the "rust" package: =2D-8<---------------cut here---------------start------------->8--- $ guix package --search=3Dcargo name: chromium-bsu version: 0.9.16.1 outputs: out systems: x86_64-linux i686-linux armhf-linux aarch64-linux mips64el-linux dependencies: gettext-minimal@0.19.8.1 glu@9.0.0 pkg-config@0.29.2 + quesoglc@0.7.2 sdl-union@1.2.15 location: gnu/packages/games.scm:3295:2 homepage: http://chromium-bsu.sourceforge.net/ license: Clarified Artistic, Expat synopsis: Fast-paced, arcade-style, top-scrolling space shooter=20=20 description: In this game you are the captain of the cargo ship Chromium + B.S.U. and are responsible for delivering supplies to the troops on the = front + line. Your ship has a small fleet of robotic fighters which you control = from + the relative safety of the Chromium vessel. relevance: 2 =2D-8<---------------cut here---------------end--------------->8--- It should have printed all the "rust" packages, and the "mrustc" package, since each of them has a "cargo" output. Example: =2D-8<---------------cut here---------------start------------->8--- name: rust version: 1.34.0 outputs: out doc cargo systems: x86_64-linux i686-linux armhf-linux aarch64-linux mips64el-linux dependencies: bison@3.0.5 cmake@3.13.1 curl@7.63.0 flex@2.6.4 gdb@8.2.1 + jemalloc@5.1.0 libssh2@1.8.2 llvm@6.0.1 openssl@1.0.2p pkg-config@0.29.2 + procps@3.3.15 python2@2.7.15 rust@1.33.0 which@2.21 location: gnu/packages/rust.scm:1026:4 homepage: https://www.rust-lang.org license: ASL 2.0, Expat synopsis: Compiler for the Rust progamming language=20=20 description: Rust is a systems programming language that provides memory + safety and thread safety guarantees. =2D-8<---------------cut here---------------end--------------->8--- The general problem here is that Guix does not include outputs whose name matches the given regex. One might argue that we should simply add the output's name to a searchable field, like the description, in cases like this, but if it's easy to fix, we should just fix it. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlzPO9kACgkQ3UCaFdgi Rp1Hdg//bDcqZLlY1wzBNhWaQek/zM1m44KKllUgWW3sMAZ2YR7EO14bq+h9IlOS KIfDVb1WVnjV3T+vY7MVhuUqCrnonyRYlKnidP2rWFf3fpVB+9aA7FuI0s8V5AWM hFg9KOZvYGZx3ECMvfWqNutvnftbRMgjy0zIBePvY+1IWn8P3NGYxKAEMjYm+F1W Irieg+MABrRGShPbcI5L0GEsn8TvNhQE5o1V2LS9RKqvohAgL7FSe6co5SkaezKv xO9bULtFyI9HIgzKRezhwIW8Dslp2oF4BaExRl4E6ft5Wa+BKzFdWom17POSWbMS erpNA5pmZNOHphkndb0ydQOn4ykopD1V/w6p/4X62KNieFgS4JPjy8Vwwj8y4RH4 MQGdWwujU/9+SCHOy7m72F1WTqheA5uvReVwHHJhMlpxS9n+by+0mnxPyc+51Kya 8Tl2MgrX4STZqcR+N0sSya3RMVpTSPWqp2D0URlb0TfZmnU78dJuoYqMJ3+gNRuF nShog/90gYe5Tcx7oU8xqwEUOCBGI2W7FPoQFMPp5JHR12EdWJnm5kYd/vOODSDL Au4riebspMRi2qfxP/+3v37v7TtKRGOSzWRJBbLJFMmPSvHJZ3gr8iCdplepxiFr LbiNMOTnL9v72zlibkfCSkcignV6BRyaO2w6k/tI3Hq9TEybOoI= =vlAX -----END PGP SIGNATURE----- --=-=-=--