From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aF/IC94CuF7+MwAA0tVLHw (envelope-from ) for ; Sun, 10 May 2020 13:34:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iMQTLOsCuF7ARQAAB5/wlQ (envelope-from ) for ; Sun, 10 May 2020 13:34:35 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B42D3940F90 for ; Sun, 10 May 2020 13:34:33 +0000 (UTC) Received: from localhost ([::1]:34042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXm6E-0000bC-Fi for larch@yhetil.org; Sun, 10 May 2020 09:34:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXm5p-0008TO-5Q for guix-devel@gnu.org; Sun, 10 May 2020 09:34:09 -0400 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]:46279) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXm5o-0008EG-4r for guix-devel@gnu.org; Sun, 10 May 2020 09:34:08 -0400 Received: by mail-qv1-xf32.google.com with SMTP id 59so3263110qva.13 for ; Sun, 10 May 2020 06:34:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tmRvkxw048uMeWlGf8frz9DYTpzdpJ5RlWqW5E4N+Qg=; b=XQumLoEx0qRuPmz5vCA9+H+B62EqfboqUr3V74KoZrPx+JWOukGPmZ4ziwtJG3oVPZ /KMXsgiKKT9ijekcTJvrFOnbauXdThmw/OxJtAQv9RaWodBkK5JfIubNZMuJNICHNNg5 v4Z5UDpaOaH8TeAuk3YaGgIQKMavvSbd7LdvVkC8MuOKq7JQQF4M+Fsfl5fF/+K/R8L/ 0jEaDebwfcPMhJndcd2Fo63VR7hgnweV3VYsYQWviyrapWpyPHd8XD/QT1LYGAJqeWUz +iW3JQu4mdTR4r/baP8M8z14mp7sUlwJhBPmMy7kAoy3pRg6a5uB8+S9GaSrBFG9CVNo 7VCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tmRvkxw048uMeWlGf8frz9DYTpzdpJ5RlWqW5E4N+Qg=; b=SGlhYylOlTZ5eMsL/XBbhFQGkxmsVHqbxMb8/H53TQ8olHar+PZiGVY84D6Qi36OXa 5nj6vO+Knj0+/kk0oxxLk6g8YeHNtu6A4DB2XUIEHIBZs9x52nn6mOcEe5SULbi0EATS ZTp7txg61f74KXujfJTgFWNzlZPFZ9KCBV1VtVx72vRH9DvkA/iRyo7oNbaxYnUqjAvW 6YczTr2OuqOXXl6/4psmQNEWrAN1hKlrkWAx3rsXvAxCItj3olDEWi1ypeJjhyzLynK3 gfrx1Xqe+E9n790bkZVo708zXY7QRVFJoGnLD9jBe/6lrCeCp0wGhUowgUpkvVLSGedJ bYVg== X-Gm-Message-State: AGi0PuZQGGfbw+zRO0mFPzfGsYqCcqh0Lt5Nzs9Qaq2xP9TZdAcacCQg 61x5Pll3aO1qZJPi3ELaLVO6t1fK3cgst/vNq+8= X-Google-Smtp-Source: APiQypL0Awm8AB3oBX/Efl+ogz+B7/EV1WT6075FIuNedVlXPyaZdegrbMniGXf9y5EKal4jJQpyjPvoViSk8e58hR4= X-Received: by 2002:ad4:4441:: with SMTP id l1mr11409766qvt.74.1589117647072; Sun, 10 May 2020 06:34:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: zimoun Date: Sun, 10 May 2020 15:33:55 +0200 Message-ID: Subject: Re: Should guix track package aliases? To: Julien Lepiller Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::f32; envelope-from=zimon.toutoune@gmail.com; helo=mail-qv1-xf32.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 X-Spam-Score: 1.09 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=XQumLoEx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Scan-Result: default: False [1.09 / 13.00]; GENERIC_REPUTATION(0.00)[-0.53886732862873]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; FREEMAIL_FROM(0.00)[gmail.com]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.08), country: US(-0.00), ip: 209.51.188.17(-0.54)]; R_DKIM_REJECT(1.00)[gmail.com:s=20161025]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[gmail.com:-]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[zimontoutoune@gmail.com,guix-devel-bounces@gnu.org]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; URIBL_BLOCKED(0.00)[lepiller.eu:email]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[guix-devel@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed),none] X-TUID: +QYpPRRAIJu/ Hi Julien, On Sun, 10 May 2020 at 14:13, Julien Lepiller wrote: > The proposal was about suggesting anotger nameqwhen no package was found, not to install something else. Sorry I misinterpreted. > >Well, do you have specific example in mind? > > $ guix install gcc > guix install: error: gcc: unknown package > Hint: did you mean `guix install gcc-toolchain`? > > Since not being able to install gcc is surprising, and you don't always know about gcc-toolchain. I understand even if this one is the wrong example. :-) It even deserves an entry in the manual. Well, but I understand what you mean. > $ guix install gpg > Hint: did you mean `guix install gnupg`? The question is: why do you type 'gpg'? I mean, the upstream name is really GnuPG so it is not one "stupid" Guix devs arbitrary rename because in their infinite wisdom they decided to. ;-) Well, do you type 'gpg' because a) it is the name of the binary? or b) it is the name of the package in your previous favourite distro? If it is a), then a proposal by Pierre named "filesearch" is floating around. And this should improve the situation. If it is b), then I do not see how to improve the situation in the general case. But maybe there is some well-known cases. > Often a name is used to refer to a package, and it's annoying to go through a search, especially when you have to filter a big output. I agree. From my point the issue is that "guix search" is not doing the job and the improvement should come from this. And your 'gpg' example is a good one, IMHO: --8<---------------cut here---------------start------------->8--- $ guix search gpg | recsel -C -p name,relevance name: signing-party relevance: 16 name: qgpgme relevance: 15 name: libgpg-error relevance: 14 name: python2-gpg relevance: 11 name: python-gpg relevance: 11 name: ledger-agent relevance: 9 name: python2-pygpgme relevance: 8 name: python-pygpgme relevance: 8 name: gpgme relevance: 8 name: kgpg relevance: 6 name: jetring relevance: 6 name: emacs-pinentry relevance: 6 name: trezor-agent relevance: 5 name: python-trezor-agent relevance: 5 name: keepkey-agent relevance: 5 name: qtpass relevance: 2 name: pinentry relevance: 2 name: pinentry-tty relevance: 2 name: pinentry-qt relevance: 2 name: pinentry-gtk2 relevance: 2 name: pinentry-gnome3 relevance: 2 name: pinentry-emacs relevance: 2 name: pinentry-efl relevance: 2 name: kleopatra relevance: 2 name: gnupg relevance: 2 name: gnupg relevance: 2 name: git-remote-gcrypt relevance: 2 name: gajim relevance: 2 name: emacs-extend-smime relevance: 2 name: assword relevance: 2 --8<---------------cut here---------------end--------------->8--- The expected package 'gnupg' appears... piouf! I fully agree that the experience with "guix search" is frustating. And maybe using both the 'upstream-name' and an extra 'properties' such as 'alternative-names' or 'extra-keywords' should help for discoverability. WDYT? All the best, simon