From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Elixir upstream question Date: Thu, 21 Jul 2016 13:52:24 +0200 Message-ID: References: <20160721105501.GA8562@thebird.nl> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQCWq-0002nl-Dc for guix-devel@gnu.org; Thu, 21 Jul 2016 07:52:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQCWm-0002Ey-5I for guix-devel@gnu.org; Thu, 21 Jul 2016 07:52:35 -0400 Received: from sinope02.bbbm.mdc-berlin.de ([141.80.25.24]:36626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQCWl-0002Eu-R6 for guix-devel@gnu.org; Thu, 21 Jul 2016 07:52:32 -0400 In-Reply-To: <20160721105501.GA8562@thebird.nl> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pjotr Prins Cc: guix-devel@gnu.org Pjotr Prins 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=E2=80=99s a snippet from the =E2=80=9Casymptote=E2=80=9D 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