From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: pkg-config disappeared Date: Sat, 15 Jun 2013 15:09:24 +0200 Message-ID: <871u83bjwb.fsf@gnu.org> References: <201306142256.32319.andreas@enge.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnqJI-0002Fc-Gs for bug-guix@gnu.org; Sat, 15 Jun 2013 09:14:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnqJG-0007ke-Ld for bug-guix@gnu.org; Sat, 15 Jun 2013 09:14:28 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:39665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnqJG-0007kT-FG for bug-guix@gnu.org; Sat, 15 Jun 2013 09:14:26 -0400 In-Reply-To: <201306142256.32319.andreas@enge.fr> (Andreas Enge's message of "Fri, 14 Jun 2013 22:56:32 +0200") 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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Andreas Enge skribis: > The package pkg-config does not exist any more: > > $ guix package -i pkg-config > guix package: error: pkg-config: package not found > > This has probably to do with the cross-compilation changes. > > In pkg-config.scm, there is a > (define-syntax pkg-config > I can use pkg-config in my package definitions, but it does not seem to b= e=20 > exported to "guix package". It=E2=80=99s actually exported (see the =E2=80=98define-module=E2=80=99 for= m) but since it=E2=80=99s not a =E2=80=98package=E2=80=99 object, the =E2=80=98fold-packages=E2=80=99 pro= cedure (used by =E2=80=9Cguix package=E2=80=9D et al.) skips it. I just committed this to solve the problem: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/pkg-config.scm b/gnu/packages/pkg-config.scm index 9f10440..eb5f748 100644 --- a/gnu/packages/pkg-config.scm +++ b/gnu/packages/pkg-config.scm @@ -24,7 +24,10 @@ #:use-module (guix build-system trivial) #:export (pkg-config)) -(define %pkg-config +;; This is the "primitive" pkg-config package. People should use `pkg-config' +;; (see below) rather than `%pkg-config', but we export `%pkg-config' so that +;; `fold-packages' finds it. +(define-public %pkg-config (package (name "pkg-config") (version "0.27.1") --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 DQpUaGFua3MsDQpMdWRv4oCZLg0K --=-=-=--