* pkg-config disappeared
@ 2013-06-14 20:56 Andreas Enge
2013-06-15 13:09 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Enge @ 2013-06-14 20:56 UTC (permalink / raw)
To: bug-guix
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".
Andreas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: pkg-config disappeared
2013-06-14 20:56 pkg-config disappeared Andreas Enge
@ 2013-06-15 13:09 ` Ludovic Courtès
2013-06-15 13:36 ` Andreas Enge
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2013-06-15 13:09 UTC (permalink / raw)
To: Andreas Enge; +Cc: bug-guix
[-- 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’.
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: pkg-config disappeared
2013-06-15 13:09 ` Ludovic Courtès
@ 2013-06-15 13:36 ` Andreas Enge
2013-06-15 13:51 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Enge @ 2013-06-15 13:36 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: bug-guix
Am Samstag, 15. Juni 2013 schrieb Ludovic Courtès:
> I just committed this to solve the problem:
-(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
This is weird; we should not expect people to install %pkg-config instead
of pkg-config. Something else should be modified so that pkg-config is
"visible" by "guix package" under its normal name.
Andreas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: pkg-config disappeared
2013-06-15 13:36 ` Andreas Enge
@ 2013-06-15 13:51 ` Ludovic Courtès
2013-06-15 14:08 ` Andreas Enge
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2013-06-15 13:51 UTC (permalink / raw)
To: Andreas Enge; +Cc: bug-guix
Andreas Enge <andreas@enge.fr> skribis:
> Am Samstag, 15. Juni 2013 schrieb Ludovic Courtès:
>> I just committed this to solve the problem:
>
> -(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
>
> This is weird; we should not expect people to install %pkg-config instead
> of pkg-config. Something else should be modified so that pkg-config is
> "visible" by "guix package" under its normal name.
It /is/ visible under its normal name: the package name is different
from the variable name. What matters for ‘guix package’ is the ‘name’
field, not the name of the variable.
BTW, in the meantime it’s always possible to install pkg-config with
something like:
guix package -e '(@@ (gnu packages pkg-config) %pkg-config)'
which directly refers to the variable.
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-06-15 14:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-14 20:56 pkg-config disappeared Andreas Enge
2013-06-15 13:09 ` Ludovic Courtès
2013-06-15 13:36 ` Andreas Enge
2013-06-15 13:51 ` Ludovic Courtès
2013-06-15 14:08 ` Andreas Enge
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.