From: ludo@gnu.org (Ludovic Courtès)
To: Andreas Enge <andreas@enge.fr>
Cc: bug-guix@gnu.org
Subject: Re: pkg-config disappeared
Date: Sat, 15 Jun 2013 15:09:24 +0200 [thread overview]
Message-ID: <871u83bjwb.fsf@gnu.org> (raw)
In-Reply-To: <201306142256.32319.andreas@enge.fr> (Andreas Enge's message of "Fri, 14 Jun 2013 22:56:32 +0200")
[-- Attachment #1: Type: text/plain, Size: 666 bytes --]
Andreas Enge <andreas@enge.fr> 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:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 557 bytes --]
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")
[-- Attachment #3: Type: text/plain, Size: 21 bytes --]
Thanks,
Ludo’.
next prev parent reply other threads:[~2013-06-15 13:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-14 20:56 pkg-config disappeared Andreas Enge
2013-06-15 13:09 ` Ludovic Courtès [this message]
2013-06-15 13:36 ` Andreas Enge
2013-06-15 13:51 ` Ludovic Courtès
2013-06-15 14:08 ` Andreas Enge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871u83bjwb.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=andreas@enge.fr \
--cc=bug-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.