unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Am I using --with-source improperly?
@ 2020-08-27  2:34 Jesse Gibbons
  2020-08-27  8:38 ` zimoun
  2020-08-27 11:23 ` Carlo Zancanaro
  0 siblings, 2 replies; 4+ messages in thread
From: Jesse Gibbons @ 2020-08-27  2:34 UTC (permalink / raw)
  To: help-guix

I asked about this on the IRC but had no luck.

IIUC --with-source=package=source should set the source for "package" to 
"source" when something being built depends on "package". For example, 
`guix build --with-soure=python2=/tmp/python2 lci` should build the lci 
with the python2 source in /tmp/python2, and should work because python2 
is a dependency of lci. However, when I try that, I get the message 
"guix build: warning: transformation 'with-source' had no effect on 
lci@0.11.2". Am I using the --with-source option incorrectly, or is this 
some sort of bug? I replace "--with-source=python2=/tmp/python2" with 
"--with-source=lci=/tmp/python2" when /tmp/python2 doesn't even exist, 
and it gives me the result I would expect: 'guix build: error: lstat: No 
such file or directory: "/tmp/python2"'

Should I file this as a bug report?



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

* Re: Am I using --with-source improperly?
  2020-08-27  2:34 Am I using --with-source improperly? Jesse Gibbons
@ 2020-08-27  8:38 ` zimoun
  2020-08-27 11:23 ` Carlo Zancanaro
  1 sibling, 0 replies; 4+ messages in thread
From: zimoun @ 2020-08-27  8:38 UTC (permalink / raw)
  To: Jesse Gibbons, help-guix

Dear,

On Wed, 26 Aug 2020 at 20:34, Jesse Gibbons <jgibbons2357@gmail.com> wrote:
> I asked about this on the IRC but had no luck.
>
> IIUC --with-source=package=source should set the source for "package" to 
> "source" when something being built depends on "package". For example, 
> `guix build --with-soure=python2=/tmp/python2 lci` should build the lci 
> with the python2 source in /tmp/python2, and should work because python2 
> is a dependency of lci. However, when I try that, I get the message 
> "guix build: warning: transformation 'with-source' had no effect on 
> lci@0.11.2". Am I using the --with-source option incorrectly, or is this 
> some sort of bug? I replace "--with-source=python2=/tmp/python2" with 
> "--with-source=lci=/tmp/python2" when /tmp/python2 doesn't even exist, 
> and it gives me the result I would expect: 'guix build: error: lstat: No 
> such file or directory: "/tmp/python2"'
>
> Should I file this as a bug report?

Instead, maybe “--with-source=python-2=/tmp/python2“?

BTW, note that for more complex examples, the complete graph of
dependencies would not be rewritten (if I read correctly).  That’s the
job of ‘package-with-explicit-python’ and especially
‘package-with-python2’.


Hope that helps.
simon


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

* Re: Am I using --with-source improperly?
  2020-08-27  2:34 Am I using --with-source improperly? Jesse Gibbons
  2020-08-27  8:38 ` zimoun
@ 2020-08-27 11:23 ` Carlo Zancanaro
  2020-08-27 16:07   ` Jesse Gibbons
  1 sibling, 1 reply; 4+ messages in thread
From: Carlo Zancanaro @ 2020-08-27 11:23 UTC (permalink / raw)
  To: Jesse Gibbons; +Cc: help-guix

Hi Jesse!

On Thu, Aug 27 2020, Jesse Gibbons wrote:
> Am I using the --with-source option incorrectly, or is this some 
> sort of bug?

You could argue either way. This is because --with-source is a 
shallow package rewrite, unlike the other --with-X package 
transformation options. There is an issue filed about this[1], but 
I don't think anybody has found the time to work on it yet.

Carlo

[1]: https://issues.guix.info/issue/42155


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

* Re: Am I using --with-source improperly?
  2020-08-27 11:23 ` Carlo Zancanaro
@ 2020-08-27 16:07   ` Jesse Gibbons
  0 siblings, 0 replies; 4+ messages in thread
From: Jesse Gibbons @ 2020-08-27 16:07 UTC (permalink / raw)
  To: Carlo Zancanaro; +Cc: help-guix

On 8/27/20 5:23 AM, Carlo Zancanaro wrote:
> Hi Jesse!
>
> On Thu, Aug 27 2020, Jesse Gibbons wrote:
>> Am I using the --with-source option incorrectly, or is this some sort 
>> of bug?
>
> You could argue either way. This is because --with-source is a shallow 
> package rewrite, unlike the other --with-X package transformation 
> options. There is an issue filed about this[1], but I don't think 
> anybody has found the time to work on it yet.
>
> Carlo
>
> [1]: https://issues.guix.info/issue/42155


I came to a similar conclusion after some hacking late last night. 
Thanks for linking to the issue. I might work on it.



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

end of thread, other threads:[~2020-08-27 16:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-27  2:34 Am I using --with-source improperly? Jesse Gibbons
2020-08-27  8:38 ` zimoun
2020-08-27 11:23 ` Carlo Zancanaro
2020-08-27 16:07   ` Jesse Gibbons

unofficial mirror of help-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git