guix build --with-source: transformation had no effect

  • Done
  • quality assurance status badge
Details
3 participants
  • Chris Marusich
  • Ludovic Courtès
  • Marius Bakke
Owner
unassigned
Submitted by
Chris Marusich
Severity
normal

Debbugs page

C
C
Chris Marusich wrote on 22 Mar 2018 21:42
(address . bug-guix@gnu.org)
87fu4rflm7.fsf@gmail.com
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
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlq0hdEACgkQ3UCaFdgi
Rp2zGRAAysCBNbvUb05IYMgAilQetC28zhnr60HzaVFkKPRXSKDQupB8N4w1wc61
skUEtGDgozN3OEW1CUZXIYcrr1SRT4xXbdCWc2n+vM4zWNg8p+okk0BUbJhbm5lC
sVEh+NxfSOE53vEjM1a9CMVDuHxVAL9FaUZZeAmXYFlmUHXtrQ5jm+zeiV8981HJ
l9rLvd3L95t8QxG/kEddC/gQEyzi2TaLSLtx2N4jQNi30Re3TJ/AxdK9avXmSA51
fwPFF3VMCiI7Q5Md+WOe7/aUS6KwXX0/N0kA9NiU2Tdm+JAsYhSs5ljVv9L0xBXK
6dLfuNNRouMkP1zYYK/Q/+rRGPFB0J8WAlmqW/2aNtqt+Wxkpovn9nwi4/uKMALi
VJD4YHqoj3XP7YZomn/gdP/5lUGfw0EyTy8JZ1V8ZTmN71z1ZfbwMuJqQ10vzysO
yh32t+25406Gns+3Q4W5bSF1Y7H8pNdK4kh7r1UekrRwsM8r63gnZNRjwnT3lmlG
IeCGBCe0VoVRWi/1vrfeU/TDHttqDZJspsKkgcG7V/a1mhp7UbTSUzuDQlPporhC
dUknuSUoFkFkOvWhpZ8cnRtU3e3Z22n/J3snmI9feHifEGb1UmdG9VKcGtDceCgh
zobrd1k3doJ8xXOhkznxGXI88o1vlmk/NCz4uUPvHD20Jf1iHbE=
=UIjz
-----END PGP SIGNATURE-----

M
M
Marius Bakke wrote on 23 Mar 2018 07:08
87y3iikhq3.fsf@fastmail.com
Chris Marusich <cmmarusich@gmail.com> writes:

Toggle quote (15 lines)
> 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.

Toggle quote (7 lines)
> 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.

Toggle quote (4 lines)
> 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!
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlq1CkQACgkQoqBt8qM6
VPrAHAgAp1f2pfl2AVQBOddxm47Kgt6DSNFKr5JleFwf/Lbvp7GrKaQkNAh38cNQ
+NCofev8Z+M95UqpsUC5K/OaX1RIxi6EilMVUIRuSqVE1ERKg1Es0MTcRLnF2OwM
BwujCiy1NXv9whZeUPFc9gea7O8uEbHMdiCX08rmD56RSW4zPUgC5lgFFMIf/bb7
nBbgv5mS704jKXsKW3BO6mRru7N+zZD7AVHJxMBKqxPjIbaH99dPBnBq2ecOAfhp
L/2Uia1sKFnagBHkfQp3XcqJcVhtJCdoQlb04PM1YtZ/wQngJqBDddMPkuOByX+K
OSViylPTcg8I7vf40KkYzlFCGxv3Wg==
=twgh
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 27 Mar 2018 01:41
control message for bug #30914
(address . control@debbugs.gnu.org)
87h8p1zz9l.fsf@gnu.org
tags 30914 notabug
close 30914
?
Your comment

This issue is archived.

To comment on this conversation send an email to 30914@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 30914
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch