[erlang-questions] systools:make_tar/2 fails because of {filename, join, [[]]}

Siri Hansen <>
Wed Sep 7 10:52:50 CEST 2011


A correction for this is now included in the upcoming R14B04.
Regards
/siri

2011/8/31 Siri Hansen <>

> Hi Nikola!
>
> A workaround for the problem is to give the path as "./ebin" instead of
> just "ebin".
>
> The root cause is here:
>
> 35> file:path_open(["ebin"],"a.app",[read]).
> {ok,<0.189.0>,"ebin/a.app"}
>
> 36> file:path_open(["./ebin"],"a.app",[read]).
> {ok,<0.191.0>,"./ebin/a.app"}
>
> The last element of the returned tuple is used for setting #application.dir
> ("ebin" vs "./ebin") - later on systools_make:appDir/1 tries to find the
> parent directory of this... and that's where it fails.
>
> I'll try to get a solution into R14B04.
> Regards
> /siri
>
>
>
> 2011/8/31 Nikola Skoric <>
>
>> Hello everybody,
>>
>> Here is my problem:
>>
>> :~/code/egon_server$ erl -pa ebin
>> Erlang R13B03 (erts-5.7.4) [source] [smp:4:4] [rq:4] [async-threads:0]
>> [hipe] [kernel-poll:false]
>>
>> Eshell V5.7.4  (abort with ^G)
>> 1> systools:make_script("es_rel-0.0.1", [{path, ["ebin"]}]).
>> ok
>> 2> systools:make_tar("es_rel-0.0.1", [{path, ["ebin"]},{erts,
>> code:root_dir()}]).
>> {{case_clause,
>>     {'EXIT',
>>         {function_clause,
>>             [{filename,join,[[]]},
>>              {systools_make,add_appl,7},
>>              {systools_make,'-add_applications/5-fun-0-',6},
>>              {lists,foldl,3},
>>              {systools_make,add_applications,5},
>>              {systools_make,mk_tar,6},
>>              {systools_make,mk_tar,5},
>>              {systools_make,make_tar,2}]}}},
>>  [{systools_make,'-add_applications/5-fun-0-',6},
>>  {lists,foldl,3},
>>  {systools_make,add_applications,5},
>>  {systools_make,mk_tar,6},
>>  {systools_make,mk_tar,5},
>>  {systools_make,make_tar,2},
>>  {erl_eval,do_apply,5},
>>  {shell,exprs,6}]}
>> error
>> 3>
>>
>> Now, that is exactly the same problem as these two:
>>
>> http://erlang.2086793.n4.nabble.com/troubleshooting-systools-make-tar-td2117171.html
>> http://erlang.org/pipermail/erlang-questions/2008-August/037463.html
>>
>> I tried things advised in those threads, but nothing helped. I'm
>> trying to build a release of this project:
>> https://github.com/egon-sim/egon_server. Does anybody have any hints
>> where to start looking for error?
>>
>> Thanks in advance,
>> Nikola
>>
>> --
>> "Strange women lying in ponds distributing swords is no basis for a
>> system of government."
>> _______________________________________________
>> 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/20110907/4df01025/attachment.html>


More information about the erlang-questions mailing list