Bug 194875 - [bugfix] Port lang/elixir 1.0.2 does not run the "mix" package manager
Summary: [bugfix] Port lang/elixir 1.0.2 does not run the "mix" package manager
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Many People
Assignee: Li-Wen Hsu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-07 03:22 UTC by Kenji Rikitake
Modified: 2014-11-07 17:26 UTC (History)
0 users

See Also:
kenji: maintainer-feedback? (lwhsu)


Attachments
pkg-plist patch to add elixir_rewrite_beam.patch (452 bytes, patch)
2014-11-07 03:23 UTC, Kenji Rikitake
no flags Details | Diff
pkg-plist patch to add elixir_rewrite.beam (339 bytes, patch)
2014-11-07 03:28 UTC, Kenji Rikitake
no flags Details | Diff
Fix PORTREVISION typo in Makefile (253 bytes, patch)
2014-11-07 16:16 UTC, Kenji Rikitake
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kenji Rikitake 2014-11-07 03:22:34 UTC

    
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-11-07 03:22:34 UTC
Auto-assigned to maintainer lwhsu@FreeBSD.org
Comment 2 Kenji Rikitake 2014-11-07 03:23:43 UTC
Created attachment 149149 [details]
pkg-plist patch to add elixir_rewrite_beam.patch
Comment 3 Kenji Rikitake 2014-11-07 03:25:46 UTC
Bug description:
mix doesn't run. Error message:

** (UndefinedFunctionError) undefined function: :elixir_rewrite.inline/3 (module :elixir_rewrite is not available)
    (elixir) :elixir_rewrite.inline(Mix, :start, 0)
    (elixir) src/elixir_dispatch.erl:93: :elixir_dispatch.dispatch_require/6
    (stdlib) lists.erl:1352: :lists.mapfoldl/3

This was caused by the error of pkg-plist, which omitted the necessary inclusion of lib/elixir/lib/elixir/ebin/elixir_rewrite.beam in pkg-plist. The patch attached will fix this.
Comment 4 Kenji Rikitake 2014-11-07 03:28:50 UTC
Created attachment 149150 [details]
pkg-plist patch to add elixir_rewrite.beam
Comment 5 Li-Wen Hsu freebsd_committer freebsd_triage 2014-11-07 03:36:37 UTC
Hi, could you tell me how to reproduce/test this issue?  Thanks!
Comment 6 Kenji Rikitake 2014-11-07 03:40:12 UTC
(In reply to Li-Wen Hsu from comment #5)
> Hi, could you tell me how to reproduce/test this issue?  Thanks!

Run "mix", then the error as follows generated:

** (UndefinedFunctionError) undefined function: :elixir_rewrite.inline/3 (module :elixir_rewrite is not available)
    (elixir) :elixir_rewrite.inline(Mix, :start, 0)
    (elixir) src/elixir_dispatch.erl:93: :elixir_dispatch.dispatch_require/6
    (stdlib) lists.erl:1352: :lists.mapfoldl/3
Comment 7 commit-hook freebsd_committer freebsd_triage 2014-11-07 04:47:53 UTC
A commit references this bug:

Author: lwhsu
Date: Fri Nov  7 04:47:15 UTC 2014
New revision: 372246
URL: https://svnweb.freebsd.org/changeset/ports/372246

Log:
  - Fix pkg-plist, let mix(1) work

  PR:		194875
  Submitted by:	Kenji Rikitake  <kenji@k2r.org>

Changes:
  head/lang/elixir/Makefile
  head/lang/elixir/pkg-plist
Comment 8 Kenji Rikitake 2014-11-07 16:16:47 UTC
Created attachment 149163 [details]
Fix PORTREVISION typo in Makefile
Comment 9 Kenji Rikitake 2014-11-07 16:18:32 UTC
Change in r372246 had a typo "PORTRIVISION=   1"; attachment 149163 [details] will fix the typo.
Comment 10 commit-hook freebsd_committer freebsd_triage 2014-11-07 17:26:03 UTC
A commit references this bug:

Author: lwhsu
Date: Fri Nov  7 17:25:42 UTC 2014
New revision: 372283
URL: https://svnweb.freebsd.org/changeset/ports/372283

Log:
  - Fix typo: s/PORTRIVISION/PORTREVISION/

  PR:		194875
  Submitted by:	Kenji Rikitake <kenji@k2r.org>

Changes:
  head/lang/elixir/Makefile
Comment 11 Li-Wen Hsu freebsd_committer freebsd_triage 2014-11-07 17:26:41 UTC
Oops, fixed.  Thanks!