[Buildroot] [PATCH v4 02/17] package/erlang-rebar: new host package
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Mon Dec 22 14:16:40 UTC 2014
Dear Johan Oudinet,
On Tue, 9 Dec 2014 15:34:07 +0100, Johan Oudinet wrote:
> From: "Yann E. MORIN" <yann.morin.1998 at free.fr>
>
> rebar is used to compile Erlang packages.
>
> We need host variant so as to be able to provide it to Erlang packages
> that do not bundle their own version, or bundle a broken version.
>
> Since this is a host-only package, used only internally, we do not
> provide a Kconfig option for it. Packages that need it will depend on
> it.
>
> Signed-off-by: Johan Oudinet <johan.oudinet at gmail.com>
> [yann.morin.1998 at free.fr: extract host-rebar to its own patch]
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
> Cc: Arnout Vandecappelle <arnout at mind.be>
Thanks, patch applied.
There's one thing I've noticed though: trying to run the 'rebar' binary
doesn't work:
$ LANG=C ./output/host/usr/bin/rebar
/usr/bin/env: escript: No such file or directory
This is obviously due to:
#!/usr/bin/env escript
at the beginning of the rebar binary, and the fact that
output/host/usr/bin is not in my PATH.
Executing ./output/host/usr/bin/escript ./output/host/usr/bin/rebar
works fine. This is not a problem for Buildroot packages, as
$(HOST_DIR)/usr/bin will be in the PATH. Not sure if it's worth fixing
for other use cases.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list