all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#30914: guix build --with-source: transformation had no effect
@ 2018-03-23  4:42 Chris Marusich
  2018-03-23 14:08 ` Marius Bakke
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Marusich @ 2018-03-23  4:42 UTC (permalink / raw)
  To: 30914

[-- Attachment #1: Type: text/plain, Size: 963 bytes --]

Hi,

Is this expected?

  [0] marusich@garuda.local:~/my-guix
  $ guix build --with-source=. guix
  guix build: warning: transformation 'with-source' had no effect on guix-0.14.0-9.bdf0c64
  /gnu/store/kxihyd1f9kxrh5s2r2yk1f1kwbnxnbvs-guix-0.14.0-9.bdf0c64
  [0] marusich@garuda.local:~/my-guix
  $ guix build --with-source=$(pwd) guix
  guix build: warning: transformation 'with-source' had no effect on guix-0.14.0-9.bdf0c64
  /gnu/store/kxihyd1f9kxrh5s2r2yk1f1kwbnxnbvs-guix-0.14.0-9.bdf0c64
  [0] marusich@garuda.local:~/my-guix
  $ 

The manual provides the following examples (see: (guix) Package
Transformation Options), so I was a little surprised that the similar
invocations above didn't work for Guix:

  guix build ed --with-source=mirror://gnu/ed/ed-1.7.tar.gz
  guix build guile --with-source=../guile-2.0.9.219-e1bb7.tar.xz

For the record, it DOES work if I run:

  guix build --with-source=guix=$(pwd) guix

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#30914: guix build --with-source: transformation had no effect
  2018-03-23  4:42 bug#30914: guix build --with-source: transformation had no effect Chris Marusich
@ 2018-03-23 14:08 ` Marius Bakke
  0 siblings, 0 replies; 2+ messages in thread
From: Marius Bakke @ 2018-03-23 14:08 UTC (permalink / raw)
  To: Chris Marusich, 30914

[-- Attachment #1: Type: text/plain, Size: 1507 bytes --]

Chris Marusich <cmmarusich@gmail.com> writes:

> Hi,
>
> Is this expected?
>
>   [0] marusich@garuda.local:~/my-guix
>   $ guix build --with-source=. guix
>   guix build: warning: transformation 'with-source' had no effect on guix-0.14.0-9.bdf0c64
>   /gnu/store/kxihyd1f9kxrh5s2r2yk1f1kwbnxnbvs-guix-0.14.0-9.bdf0c64
>   [0] marusich@garuda.local:~/my-guix
>   $ guix build --with-source=$(pwd) guix
>   guix build: warning: transformation 'with-source' had no effect on guix-0.14.0-9.bdf0c64
>   /gnu/store/kxihyd1f9kxrh5s2r2yk1f1kwbnxnbvs-guix-0.14.0-9.bdf0c64
>   [0] marusich@garuda.local:~/my-guix
>   $ 

The --with-source argument requires that the directory is named the same
as the package you are building.  This is so that you can pass it
multiple times in one invocation, with multiple transformations.

> The manual provides the following examples (see: (guix) Package
> Transformation Options), so I was a little surprised that the similar
> invocations above didn't work for Guix:
>
>   guix build ed --with-source=mirror://gnu/ed/ed-1.7.tar.gz
>   guix build guile --with-source=../guile-2.0.9.219-e1bb7.tar.xz

...except for tarballs, apparently.

> For the record, it DOES work if I run:
>
>   guix build --with-source=guix=$(pwd) guix

This was added in 3e30cdf1c35ebeb52630ec19b3b43b9e6d5ffb81 precisely to
provide a convenient method for using --with-source without renaming or
symlinking the target directory, IIRC.

Hope this clears things up!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-23 14:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-23  4:42 bug#30914: guix build --with-source: transformation had no effect Chris Marusich
2018-03-23 14:08 ` Marius Bakke

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.