[erlang-questions] question about eldap and ssh

Loïc Hoguin essen@REDACTED
Thu Feb 14 14:03:39 CET 2013


Reltool and xref do not always get the complete picture, especially when 
you start putting module names into variables and only using them this way.

It would be great if it could be more explicit.

I know the dependency information in the .app file is currently for the 
start order dependency, but perhaps this meaning could be changed? Today 
starting a library application works, e.g. application:start(asn1), so 
it doesn't seem like it'd be too problematic to just put everything there?

On 02/14/2013 11:25 AM, Kenneth Lundin wrote:
> 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 <Maxim.Minin@REDACTED
> <mailto:Maxim.Minin@REDACTED>> 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:ingela.andin@REDACTED
>     <mailto:ingela.andin@REDACTED>]
>     Gesendet: Mittwoch, 13. Februar 2013 16:54
>     An: Minin Maxim
>     Cc: erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
>     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 <Maxim.Minin@REDACTED
>     <mailto:Maxim.Minin@REDACTED>>:
>      > 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
>     erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
>     http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>


-- 
Loïc Hoguin
Erlang Cowboy
Nine Nines
http://ninenines.eu



More information about the erlang-questions mailing list