From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: libjpeg-8 not installable Date: Sun, 20 Jan 2013 12:58:01 +0100 Message-ID: <201301201258.01463.andreas@enge.fr> References: <201301191216.29184.andreas@enge.fr> <87y5foyi6u.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary-01=_Jv9+QvR7ytRM3i2" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwtXN-0006Kx-CZ for bug-guix@gnu.org; Sun, 20 Jan 2013 06:58:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwtXK-0008Bq-55 for bug-guix@gnu.org; Sun, 20 Jan 2013 06:58:09 -0500 In-Reply-To: <87y5foyi6u.fsf@gnu.org> 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: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: bug-guix@gnu.org --Boundary-01=_Jv9+QvR7ytRM3i2 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Am Samstag, 19. Januar 2013 schrieb Ludovic Court=C3=A8s: > This has to do with how guix-package interprets package names. >=20 > As noted in the manual, users can write either =E2=80=9Cguix-package -i g= uile=E2=80=9D > or =E2=80=9Cguix-package -i guile-2.0.7=E2=80=9D. In the latter case, gu= ix-package > assumes that =E2=80=9C2.0.7=E2=80=9D is a version number, and then search= es all packages > whose name is =E2=80=9Cguile=E2=80=9D and whose version is =E2=80=9C2.0.7= =E2=80=9D. >=20 > In your case, it searches for packages named =E2=80=9Clibjpeg=E2=80=9D an= d whose version > number is =E2=80=9C8=E2=80=9D=E2=80=93which fails. >=20 > 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. Thanks for the explanation. I was confusing scheme variable names and=20 package names, which are the same most of the time. With (define-public libjpeg-8 (package (inherit libjpeg) (name "libjpeg") (version "8d") $ guix-package -i libjpeg-8d indeed works as expected. However, now $ guix-build libjpeg-8d returns libjpeg-8d: unknown package Using the scheme variable name does not help: $ guix-build libjpeg-8 libjpeg-8: unknown package Could the behaviour of guix-build be made the same as that of guix-package? Andreas --Boundary-01=_Jv9+QvR7ytRM3i2 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Am Samstag,= 19. Januar 2013 schrieb Ludovic Court=C3=A8s:

> This h= as to do with how guix-package interprets package names.

>

> As not= ed in the manual, users can write either =E2=80=9Cguix-package -i guile=E2= =80=9D

> or =E2= =80=9Cguix-package -i guile-2.0.7=E2=80=9D. In the latter case, guix-packa= ge

> assume= s that =E2=80=9C2.0.7=E2=80=9D is a version number, and then searches all p= ackages

> whose = name is =E2=80=9Cguile=E2=80=9D and whose version is =E2=80=9C2.0.7=E2=80= =9D.

>

> In you= r 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 fi= x it to not introduce the version number in the =E2=80=98name=E2=80=99 fiel= d, and

> instea= d leave it in the =E2=80=98version=E2=80=99 field.

&nb= sp;

Thanks for = the explanation. I was confusing scheme variable names and package names, w= hich are the same most of the time. With

(define-pub= lic libjpeg-8

(package = (inherit libjpeg)

(name &q= uot;libjpeg")

(version= "8d")

&nb= sp;

$ guix-pack= age -i libjpeg-8d

indeed work= s as expected.

&nb= sp;

However, no= w

$ guix-buil= d libjpeg-8d

returns

libjpeg-8d:= unknown package

Using the s= cheme variable name does not help:

$ guix-buil= d libjpeg-8

libjpeg-8: = unknown package

&nb= sp;

Could the b= ehaviour of guix-build be made the same as that of guix-package?

&nb= sp;

Andreas

&nb= sp;

--Boundary-01=_Jv9+QvR7ytRM3i2--