[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pkg-config disappeared
From: |
Ludovic Courtès |
Subject: |
Re: pkg-config disappeared |
Date: |
Sat, 15 Jun 2013 15:09:24 +0200 |
User-agent: |
Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) |
Andreas Enge <address@hidden> 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 be
> exported to "guix package".
It’s actually exported (see the ‘define-module’ form) but since it’s not
a ‘package’ object, the ‘fold-packages’ procedure (used by “guix
package” et al.) skips it.
I just committed this to solve the problem:
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")
Thanks,
Ludo’.