tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Lang/elixir shebang interpreter to a shebang
Hello,
I'm testing the lang/elixir package.
Mix tool is a kind of build tool provided with elixir. It is just a simple shell script with a shebang to an « elixir interpreter ».
The problem is the following:
« elixir » is not a binary interpreter but just a shell script wrapper (with #!/bin/sh) calling erl , a beam vm (Erlang virtual machine).
mix crashes with "command not found error".
Mainstream uses #!/usr/bin/env elixir in mix.
lang/elixir uses REPLACE_FILES and REPLACE_INTERPRETER in the Makefile to change the pathname to the script interpreter.
REPLACE_INTERPRETER+= elixir
REPLACE.elixir.old= .*elixir
REPLACE.elixir.new= ${PREFIX}/bin/elixir
REPLACE_FILES.elixir= bin/mix
So the mix command does not work as expected.
I found pkg/51152 with the same kind of « bug ».
What are the options to correct it?
Clément.
Home |
Main Index |
Thread Index |
Old Index