Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716038 - dev-lang/elixir-1.10.2: Erlang error: :enoent: (elixir 1.10.2) lib/system.ex:795: System.cmd("git", ["--version"],
Summary: dev-lang/elixir-1.10.2: Erlang error: :enoent: (elixir 1.10.2) lib/system.ex:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mikhail S. Pobolovets
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 715816
  Show dependency tree
 
Reported: 2020-04-03 16:18 UTC by Agostino Sarubbo
Modified: 2020-04-03 22:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,67.21 KB, text/plain)
2020-04-03 16:18 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-04-03 16:18:41 UTC
This is an auto-filled bug because dev-lang/elixir fails to compile on x86. Feel free to adjust the summary to clarify the exact issue. Attached build log and emerge --info
Comment 1 Agostino Sarubbo gentoo-dev 2020-04-03 16:18:49 UTC
Created attachment 629432 [details]
build.log

build log and emerge --info
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-04-03 21:53:38 UTC
Looks more like a test failure:

"""
==> mix (ex_unit)
** (ErlangError) Erlang error: :enoent
    (elixir 1.10.2) lib/system.ex:795: System.cmd("git", ["--version"], [cd: "/var/tmp/portage/dev-lang/elixir-1.10.2/work/elixir-1.10.2/lib/mix", into: "", stderr_to_stdout: true])
    (mix 1.10.2) lib/mix/scm/git.ex:253: Mix.SCM.Git.git!/2
    (mix 1.10.2) lib/mix/scm/git.ex:293: Mix.SCM.Git.git_version/0
    test/test_helper.exs:12: (file)
make: *** [Makefile:113: test_mix] Error 1
 * ERROR: dev-lang/elixir-1.10.2::gentoo failed (test phase):
 *   Make test failed. See above for details.
 * 
 * Call stack:
 *            ebuild.sh, line 125:  Called src_test
 *          environment, line 463:  Called default
 *   phase-functions.sh, line 855:  Called default_src_test
 *   phase-functions.sh, line 884:  Called __eapi0_src_test
 *     phase-helpers.sh, line 783:  Called die
 * The specific snippet of code:
 *   		$emake_cmd ${internal_opts} test || \
 *   			die "Make test failed. See above for details."
"""

We probably lack a test dependency on 'git' tool.
Comment 3 Larry the Git Cow gentoo-dev 2020-04-03 22:21:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06c4ff0d2bfad07f7855898cae1f3dbf715d7407

commit 06c4ff0d2bfad07f7855898cae1f3dbf715d7407
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-04-03 22:20:31 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-04-03 22:20:31 +0000

    dev-lang/elixir: add git test dependency, bug #716038
    
    Without `git` installed tests fail as:
    
    ```
    ** (ErlangError) Erlang error: :enoent
        (elixir 1.10.2) lib/system.ex:795: System.cmd("git", ["--version"],
        [cd: "/var/tmp/portage/dev-lang/elixir-1.10.2/work/elixir-1.10.2/lib/mix",
        into: "", stderr_to_stdout: true])
        (mix 1.10.2) lib/mix/scm/git.ex:253: Mix.SCM.Git.git!/2
        (mix 1.10.2) lib/mix/scm/git.ex:293: Mix.SCM.Git.git_version/0
        test/test_helper.exs:12: (file)
    make: *** [Makefile:113: test_mix] Error 1
    ```
    
    Reported-by: Agostino Sarubbo
    Closes: https://bugs.gentoo.org/716038
    Package-Manager: Portage-2.3.96, Repoman-2.3.22
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-lang/elixir/elixir-1.10.2.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)