From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: libjpeg-8 not installable Date: Sat, 19 Jan 2013 22:30:17 +0100 Message-ID: <87y5foyi6u.fsf@gnu.org> References: <201301191216.29184.andreas@enge.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwfzZ-0003iN-5O for bug-guix@gnu.org; Sat, 19 Jan 2013 16:30:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwfzY-0001jx-0G for bug-guix@gnu.org; Sat, 19 Jan 2013 16:30:21 -0500 Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:16953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwfzX-0001jl-PN for bug-guix@gnu.org; Sat, 19 Jan 2013 16:30:19 -0500 In-Reply-To: <201301191216.29184.andreas@enge.fr> (Andreas Enge's message of "Sat, 19 Jan 2013 12:16:28 +0100") 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-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: bug-guix@gnu.org Hi! Andreas Enge skribis: > libjpeg-8 is listed by "guix-package --list-available", and built without= =20 > problem by "guix-build libjpeg-8". However: > > $ guix-package -i libjpeg-8 > libjpeg-8: package not found (Note that you could do: guix-package -i `guix-build libjpeg-8`.) > Could this be related to the definition with inheritance? > (define-public libjpeg-8 > (package (inherit libjpeg) > (name "libjpeg-8") > ... This has to do with how guix-package interprets package names. As noted in the manual, users can write either =E2=80=9Cguix-package -i gui= le=E2=80=9D or =E2=80=9Cguix-package -i guile-2.0.7=E2=80=9D. In the latter case, guix= -package assumes that =E2=80=9C2.0.7=E2=80=9D is a version number, and then searches= all packages whose name is =E2=80=9Cguile=E2=80=9D and whose version is =E2=80=9C2.0.7= =E2=80=9D. In your case, it searches for packages named =E2=80=9Clibjpeg=E2=80=9D and = whose version number is =E2=80=9C8=E2=80=9D=E2=80=93which fails. The fix it to not introduce the version number in the =E2=80=98name=E2=80= =99 field, and instead leave it in the =E2=80=98version=E2=80=99 field. HTH, Ludo=E2=80=99.