[erlang-questions] question about eldap and ssh

Kenneth Lundin <>
Thu Feb 14 11:25:34 CET 2013


Just a clarification.

The dependency information given in the .app file is only intended to give
info about the start order dependency. I.e. that another application needs
to be started before this application is started.

Some applications are just libraries of code and does not have any
processes that need to be started. This is the case for public_key and asn1.

So you cannot rely on the info in the .app files when it comes to run-time
dependencys (you don't get the complete picture).
For getting the complete picture you can use reltool and or xref.

This is how it is today. It might be good to include a more complete
dependency info in the .app files but we are not there yet.

/Kenneth Erlang/OTP, Ericsson

On Thu, Feb 14, 2013 at 7:56 AM, Minin Maxim <>wrote:

> Hello Ingela,
>
> thank You  for your answer.
> I use R15B03.
> You are right - in R16A ssh specifies public_key as dependency application.
> But eldap is still dependent on ASN1. If I grep, I get following result:
>
> grep -n asn src/eldap.erl
>
> 202:optional([])    -> asn1_NOVALUE;
> 376:    TcpOpts = [{packet, asn1}, {active,false}],
> 683:    {ok,Bytes} = asn1rt:encode('ELDAPv3', 'LDAPMessage', Message),
> 702:        case asn1rt:decode('ELDAPv3', 'LDAPMessage', Packet) of
>
> The module asn1rt is a part of asn1 lib. Are you planning to remove the
> dependency from ASN1 kompletely?
>
> Thanks
>
> Maxim Minin
>
> Von: Ingela Andin [mailto:]
> Gesendet: Mittwoch, 13. Februar 2013 16:54
> An: Minin Maxim
> Cc: 
> Betreff: Re: [erlang-questions] question about eldap and ssh
>
> Hello!
>
> What version are you using?  Latest ssh  specifies  public_key as
> dependency application and I do not think that eldap should be rutime
> dependent on ASN1 (atleast not latest version).
>
> Regards Ingela Erlang/OTP team - Ericsson AB
>
>
> 2013/2/11, Minin Maxim <>:
> > Hi
> >
> > i try  to build a release of an application with dependencies of some
> > standard libs and fail because not all necessary applications are have
> > been packaged.
> > I use eldap and ssh in my application. Eldap itself needs the lib ans1
> > and ssh - public_key. But both have not in their app-files the ans1
> > and public_key as dependency.  As a result this two applications (ans1
> > and
> > public_key)  are not in my release.
> > Is it a bug, that the dependencies are missing in the app-file of
> > eldap and ssh or am I doing something wrong?
> >
> > thanks
> >
> > Maxim Minin
> >
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130214/b078e860/attachment.html>


More information about the erlang-questions mailing list