From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: The art of guessing a packaged downgrade version of a package Date: Fri, 1 Jan 2016 16:09:59 -0500 Message-ID: <20160101210959.GA11284@jasmine> References: <22bcae0b31e189110555fdff8dfc948a@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF6xd-0005sT-6h for guix-devel@gnu.org; Fri, 01 Jan 2016 16:10:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aF6xY-0006O4-84 for guix-devel@gnu.org; Fri, 01 Jan 2016 16:10:09 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:41063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF6xX-0006Ma-QO for guix-devel@gnu.org; Fri, 01 Jan 2016 16:10:04 -0500 Content-Disposition: inline In-Reply-To: <22bcae0b31e189110555fdff8dfc948a@riseup.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: swedebugia@riseup.net Cc: guix-devel On Fri, Jan 01, 2016 at 09:35:40PM +0100, swedebugia@riseup.net wrote: > (trying to get gnupg to work knowing that ludo runs some 2.0 version) > ~/src/guix$ guix package -i gnupg:2.0.0 -r gnupg > guix package: error: package `gnupg-2.1.10' lacks output `2.0.0' Did you try `guix package -i gnupg-2.0.29`? That should put the 2.0 series gnupg in your profile. You can even specify just 'gnupg-2.0' and Guix will pick the lastest available gnupg in the '2.0' series. > > I would like to improve this command by making it either show me the valid > outputs (and optionally choosing one of them to install) for this specific > package OR hint me about running: > guix package --show=gnupg I see the value of hints, but never an interactive command as suggested by a menu of valid outputs. Interactive commands break automation. > ~$ guix package --show=gnupg > name: gnupg > version: 2.1.10 > outputs: out > ... > > name: gnupg > version: 2.0.29 > outputs: out > ... > > name: gnupg > version: 1.4.20 > outputs: out > > to get the information I need. > > I found the relevant code in: > ../gnu/packages.scm:381: (leave (_ "package `~a' lacks output > `~a'~%") > > To be able myself to improve this snippet I would have to learn a lot more > Guile first. :p > > Anybody care to help? > > swedebugia >