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 tMt4EhbQt16EVgAA0tVLHw (envelope-from ) for ; Sun, 10 May 2020 09:57:42 +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 2DxTLiPQt15KMAAAB5/wlQ (envelope-from ) for ; Sun, 10 May 2020 09:57:55 +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 A6D92940429 for ; Sun, 10 May 2020 09:57:53 +0000 (UTC) Received: from localhost ([::1]:58132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXiiY-0007zz-DJ for larch@yhetil.org; Sun, 10 May 2020 05:57:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXiiH-0007yS-0U for guix-devel@gnu.org; Sun, 10 May 2020 05:57:38 -0400 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:33794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXiiF-0005Zg-C2 for guix-devel@gnu.org; Sun, 10 May 2020 05:57:36 -0400 Received: by mail-qt1-x82c.google.com with SMTP id b1so4628456qtt.1 for ; Sun, 10 May 2020 02:57:34 -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:content-transfer-encoding; bh=P7jcQkK1nEZ/iKSBqGsgmIzFjAieqFDk1KXzZIJp43s=; b=PLNyxkUIxIiFrYKDMoE1GUrZl7zCV4dbNorn8278JOpYTrPeZuvAoLTF1IMZp7eGZ0 1l685gZKSy5G4o9ILdPlI4B2kO2gyu1gOFLbB+ZuFL6/znLKhS1vsj4jpMC++p2FZT0g 3inYJgNJrD2nREyFW13fO/yIyna+igugSZga4Rb5Mgr4WzypUm8858+OVPJ2B4GE0wTR l8ReWrxiBVpPu404lVMP96MLNQIjKqiNUhxQhfykdxy0l7y3o+jwNpRqIs8kqQ3KO4Zt mdoP4+zD7ZThoAdwJ9Bt94AX4Ukq6EQa4VBUwVgBarM40Q1+bgCOviLLT8k7uDhZhk6O iCpQ== 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:content-transfer-encoding; bh=P7jcQkK1nEZ/iKSBqGsgmIzFjAieqFDk1KXzZIJp43s=; b=drgx051FI8G7AlQMcPh36wq5QFR4WIr06wgkSCiH+bt7hlTPpB8LaCDf2XjR5U8r0j ZCoY7Hm46xNxfkdGhj0H2NSB1S9+xkkn3m4dEn86dPmTJLqoB0qoYSLJYcAnkSkj9vbe ik8vo/Wa1OKepf+TpCNAghSbI6wNqyDfI4vNa8Ysy5QngeBd7ZGectOXoVWpGz/zG7mA GJMu8rofAoLz7TQLROMKexHgc0g+kF+N9jXJdcGXQDKx7hc1i0WW7j6uZ98j99yBdGsz fla+LHlp8o+i0PsHMNr2lSSpSL1v8PcxA3S/m7pBe5Pvvg+YOIW9i20Urg9CfoD4UQ84 wAeQ== X-Gm-Message-State: AGi0PuZ3OOcb4grQ+6YLGMbI8HGbcGMs7DefrIg6PLtfO0modtRKF0ln HPENgn+XsbFIeEX9S7FncnOeQOP8VPjSOOw+tz8= X-Google-Smtp-Source: APiQypJBENEI7Q2SdxAwHk+j5g50BItsinpKdfQyynjP6+EzoAbELcLDbxh2/+OVWKdwR0smAQt3SGsHJjrtZ3xI2gc= X-Received: by 2002:ac8:758a:: with SMTP id s10mr11279573qtq.217.1589104654095; Sun, 10 May 2020 02:57:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: zimoun Date: Sun, 10 May 2020 11:57:22 +0200 Message-ID: Subject: Re: Should guix track package aliases? To: Josh Marshall Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::82c; envelope-from=zimon.toutoune@gmail.com; helo=mail-qt1-x82c.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: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, DEAR_NOBODY=2.442, 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 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: -0.71 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=PLNyxkUI; dmarc=pass (policy=none) header.from=gmail.com; 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 [-0.71 / 13.00]; GENERIC_REPUTATION(0.00)[-0.53904475844861]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail,gmail.com: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)]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com]; 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]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[guix-devel@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RCVD_TLS_LAST(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: c80SUxCCk2XX Dear, On Sat, 9 May 2020 at 22:19, Josh Marshall wrote: > [...] naming conventions between the source project, [...] , and guix its= elf have some drift. Some packages already track upstream name: see the field '(proprieties (upstream-name . "foo"))', e.g., the package "r-flowsom", > The approach which I think makes the most sense is to add an optional but= encouraged field in package definitions which takes a list of alternative = package names. When using `guix search` this field could also be evaluated= , and when `guix package -i` is invoked and the target does not exist, thes= e aliases could be searched through for similar names to the non-existing t= arget and suggest the actual package they might have intended. Well, the 'proprieties' field is not used by 'package->recutils' which is the function used by "guix show" (and "guix search"). I do not have an option if an extra field "upstream-name" should be added or not. However, from my point of view, "Explicit is better than implicit." as said any good Zen. ;-) So, I appears to me a bad idea to implicitly install 'bar' when I type "guix package -i foo" because 'bar' is an alternative name I am not aware of. IMHO, the fix is to improve the synposis and the description to be able to reach the expected package. If the description is well-written, then "guix search bar" should return the package "foo". Well, do you have specific example in mind? All the best, simon