[erlang-questions] Ability to add app directories explicitly for reltool

Siri Hansen erlangsiri@REDACTED
Thu Jan 12 12:01:17 CET 2012


Sorry, forgot to copy the list...

2012/1/12 Siri Hansen <erlangsiri@REDACTED>

> Ok, I see! But what does your reltool config look like when you start
> reltool?
>
> By default, when starting reltool it will traverse all applications seen
> in the lib dirs. The idea is that if there are multiple modules with the
> same name, then reltool will fail if it can not decide which one to
> include, but if the configuration indicates what to include, then it will
> only warn.
>
> There might of course be bugs in this functionality, so an example would
> be nice to see...
>
> /siri
>
> 2012/1/12 Dmitry Demeshchuk <demeshchuk@REDACTED>
>
>> I'm sorry, my explanation was really messy.
>>
>> It seems like in that case reltool will *see* and somehow *validate*
>> all Erlang applications it finds in the "lib" directory, no matter if
>> they are included into reltool.config or not. Maybe this should be
>> considered as wrong behavior.
>>
>> So, in my example erlson wasn't included anywhere in reltool.config.
>> It just had 'erl_parse' module included into the application. Btw,
>> apparently Anton has recently removed erl_parse.erl from his
>> repository, just because it had been causing problems with release
>> package generation.
>> Of course, this error is quite specific, but maybe there are more
>> possible errors that I just don't know.
>>
>>
>> On Thu, Jan 12, 2012 at 2:18 PM, Siri Hansen <erlangsiri@REDACTED>
>> wrote:
>> > Hi!
>> >
>> >> The only possible problem I can see is that any projects that cause
>> >> conflicts in reltool will make us unable to build release packages for
>> >> *the rest* of the projects that reside in the same directory.
>> >>
>> >> Say, I had erlson in my projects directory, and it was causing the
>> >> conflicts during release package generation (well, placing
>> >> erl_parse.erl into application listing is wrong, it definitely needs
>> >> to be fixed).
>> >> Probably, the same goes to projects that may contain same modules in
>> >> the applications listing (rabbitmq and riak_core both use
>> >> gen_server2.erl, and those modules are actually different; this
>> >> doesn't affect any of them but definitely but won't let us build
>> >> release package).
>> >> Maybe, there are some more rare errors that might occur as well.
>> >
>> >
>> > I'm not sure that I understand everything here... Do you mean that with
>> my
>> > proposal reltool will *see* some applications which it shall not
>> include in
>> > the release package? And that the fact that some of these applications
>> have
>> > modules with equal names causes problems when building the release
>> package?
>> >
>> > If so, is it not possible to write a reltool config which specifies
>> which
>> > apps/modules to use - and by this avoid conflicts? Sorry for the stupid
>> > questions - I just feel like it would be good to understand the problems
>> > completely...
>> >
>> > /siri
>>
>>
>>
>> --
>> Best regards,
>> Dmitry Demeshchuk
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120112/43bd6f9f/attachment.htm>


More information about the erlang-questions mailing list