From mboxrd@z Thu Jan 1 00:00:00 1970 From: swedebugia@riseup.net Subject: The art of guessing a packaged downgrade version of a package Date: Fri, 01 Jan 2016 21:35:40 +0100 Message-ID: <22bcae0b31e189110555fdff8dfc948a@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF6QK-0000zq-2w for guix-devel@gnu.org; Fri, 01 Jan 2016 15:35:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aF6QH-0007WT-D6 for guix-devel@gnu.org; Fri, 01 Jan 2016 15:35:44 -0500 Received: from mx1.riseup.net ([198.252.153.129]:35819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aF6QH-0007WK-4w for guix-devel@gnu.org; Fri, 01 Jan 2016 15:35:41 -0500 Received: from cotinga.riseup.net (unknown [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 806281A1AA0 for ; Fri, 1 Jan 2016 12:35:40 -0800 (PST) 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: guix-devel (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' 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 ~$ 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