[Pkg-leofs-devel] Bug#748343: erlang-cowboy installs to /usr/lib/erlang/lib

Simon MacMullen simon at rabbitmq.com
Wed Jun 25 10:55:33 UTC 2014


On 25/06/14 10:21, Sergei Golovan wrote:
> I think that installing erlang-cowboy into the system-wide Erlang
> directory is fine.
> If an application needs cowboy then it can either
>
> 1) ensure it works wit a system-wide version and depend on erlang-cowboy, or

This would be tremendously painful since the API of cowboy undergoes 
frequent incompatible changes.

> 2) include its own version and make sure that it's the one which is used
> (add -pa option to erl or otherwise).

We load the code dynamically, so -pa won't work. We may be able to 
change our code loading strategy though.

> I'd prefer that this local cowboy wasn't
> easily accessible by other Erlang applications (god knows which local changes
> it has).

Believe me, we do not add it to a path that any other application could 
pick up.

> Anyway, placing applications from regular Debian packages into /usr/lib/erlang
> shouldn't be considered a bug.

Well, if that's the decision then fair enough. For most other languages 
though it seems to be policy that the language's standard library goes 
in a different place from any other random packages; I assumed that was 
the default.

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, Pivotal



More information about the Pkg-leofs-devel mailing list