* Elixir upstream question
@ 2016-07-21 10:55 Pjotr Prins
2016-07-21 11:52 ` Ricardo Wurmus
0 siblings, 1 reply; 2+ messages in thread
From: Pjotr Prins @ 2016-07-21 10:55 UTC (permalink / raw)
To: guix-devel
I raised issue https://github.com/elixir-lang/elixir/issues/5043
Jose Valim, the author of Elixir, responded with:
---
I would love to include patches that generally make Mix or Elixir work
better but those seem like they would be putting a maintenance burden
on us, specially because we don't really know what is available on GNU
Guix and what is not. We would be guessing, specially when some of
those outcomes is exactly what we are testing (like handling of the
HOME environment variable).
Can't we rather try figure out if we can set a reliable PATH for
running those tests suites so we can use dialyzer and git as usual?
---
git and some other tools can be invoked from one place and patched. I
can help fix that.
My question: in the build environment, what would be a good stub for
$HOME? Can we use something for $TMPDIR?
In the test phase there appear to be write errors in the build dir -
any idea why that would be?
Thanks,
Pj.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Elixir upstream question
2016-07-21 10:55 Elixir upstream question Pjotr Prins
@ 2016-07-21 11:52 ` Ricardo Wurmus
0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2016-07-21 11:52 UTC (permalink / raw)
To: Pjotr Prins; +Cc: guix-devel
Pjotr Prins <pjotr.public12@thebird.nl> writes:
> I raised issue https://github.com/elixir-lang/elixir/issues/5043
>
> Jose Valim, the author of Elixir, responded with:
>
> ---
>
> I would love to include patches that generally make Mix or Elixir work
> better but those seem like they would be putting a maintenance burden
> on us, specially because we don't really know what is available on GNU
> Guix and what is not. We would be guessing, specially when some of
> those outcomes is exactly what we are testing (like handling of the
> HOME environment variable).
>
> Can't we rather try figure out if we can set a reliable PATH for
> running those tests suites so we can use dialyzer and git as usual?
>
> ---
>
> git and some other tools can be invoked from one place and patched. I
> can help fix that.
>
> My question: in the build environment, what would be a good stub for
> $HOME? Can we use something for $TMPDIR?
It is okay to set the HOME environment variable. A couple of packages
that need to write to $HOME for tests do this in a build phase.
Here’s a snippet from the “asymptote” package:
(add-before 'check 'set-HOME
;; Some tests require write access to $HOME, otherwise leading to
;; "failed to create directory /homeless-shelter/.asy" error.
(lambda _
(setenv "HOME" "/tmp")
#t))
Does this help or am I misunderstanding?
~~ Ricardo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-21 11:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-21 10:55 Elixir upstream question Pjotr Prins
2016-07-21 11:52 ` Ricardo Wurmus
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).