From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Subject: bug#30566: While searching for packages, deprecated packages should be ignored Date: Wed, 21 Feb 2018 10:03:16 +0100 Message-ID: <20180221100316.42ccce5f@alma-ubu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eoQJt-0002U3-At for bug-guix@gnu.org; Wed, 21 Feb 2018 04:04:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eoQJm-0004UY-Jp for bug-guix@gnu.org; Wed, 21 Feb 2018 04:04:09 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:45694) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eoQJm-0004UP-GP for bug-guix@gnu.org; Wed, 21 Feb 2018 04:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eoQJm-0007Gw-4A for bug-guix@gnu.org; Wed, 21 Feb 2018 04:04:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eoQJ8-0002Kk-G5 for bug-guix@gnu.org; Wed, 21 Feb 2018 04:03:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eoQJ4-0003ym-AI for bug-guix@gnu.org; Wed, 21 Feb 2018 04:03:21 -0500 Received: from m4s11.vlinux.de ([83.151.27.109]:51475 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eoQJ4-0003y9-34 for bug-guix@gnu.org; Wed, 21 Feb 2018 04:03:18 -0500 Received: from alma-ubu (pD951FC9C.dip0.t-ipconnect.de [217.81.252.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 92D4D403F9 for ; Wed, 21 Feb 2018 10:03:16 +0100 (CET) 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: 30566@debbugs.gnu.org When I search for a deprecated package, I get both the deprecated package and the new one. That is quite confusing and I can't decide which one to take. For example: $ guix package -s geiser name: geiser-next version: 0.9 outputs: out systems: x86_64-linux i686-linux armhf-linux aarch64-linux mips64el-linux dependencies: emacs-minimal-25.3 guile-2.0.14 location: guix/packages.scm:335:2 homepage: https://nongnu.org/geiser/ license: Modified BSD synopsis: Collection of Emacs modes for Guile and Racket hacking =20 description: [..] relevance: 6 name: geiser version: 0.9 outputs: out systems: x86_64-linux i686-linux armhf-linux aarch64-linux mips64el-linux dependencies: emacs-minimal-25.3 guile-2.0.14 location: gnu/packages/emacs.scm:314:2 homepage: https://nongnu.org/geiser/ license: Modified BSD synopsis: Collection of Emacs modes for Guile and Racket hacking =20 description:=20 [..] relevance: 6 Here I get two exactly same results, besides the package name and the source code line number. I have to look into the package sources to find out which of the two is the not-deprecated one. As a user, I would like to see only the new package mentioned. Maybe some users also want a short note like: "geiser formerly known as geiser-new." Technical background: `deprecated-package` is defined in `guix/packages.scm`:=20 ``` (define (deprecated-package old-name p) "Return a package called OLD-NAME and marked as superseded by P, a package object." (package (inherit p) (name old-name) (properties `((superseded . ,p))))) ``` That means the `guix package -s` should somehow make use of the `superseeded` property. Bj=C3=B6rn