A correction for this is now included in the upcoming R14B04.<div>Regards</div><div>/siri</div><div><br><div class="gmail_quote">2011/8/31 Siri Hansen <span dir="ltr"><<a href="mailto:erlangsiri@gmail.com">erlangsiri@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Nikola!<div><br></div><div>A workaround for the problem is to give the path as "./ebin" instead of just "ebin".</div>
<div><br></div><div>The root cause is here:</div><div><br></div><div><div>35> file:path_open(["ebin"],"a.app",[read]).</div>
<div>{ok,<0.189.0>,"ebin/a.app"}</div><div><br></div><div>36> file:path_open(["./ebin"],"a.app",[read]).</div><div>{ok,<0.191.0>,"./ebin/a.app"}</div></div><div><br>
</div>
<div>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.</div>

<div><br></div><div>I'll try to get a solution into R14B04.</div><div>Regards</div><div>/siri</div><div><div></div><div class="h5"><div><br></div><div><br></div><div><br><div class="gmail_quote">2011/8/31 Nikola Skoric <span dir="ltr"><<a href="mailto:nskoric@gmail.com" target="_blank">nskoric@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everybody,<br>
<br>
Here is my problem:<br>
<br>
nick@miljenko:~/code/egon_server$ erl -pa ebin<br>
Erlang R13B03 (erts-5.7.4) [source] [smp:4:4] [rq:4] [async-threads:0]<br>
[hipe] [kernel-poll:false]<br>
<br>
Eshell V5.7.4  (abort with ^G)<br>
1> systools:make_script("es_rel-0.0.1", [{path, ["ebin"]}]).<br>
ok<br>
2> systools:make_tar("es_rel-0.0.1", [{path, ["ebin"]},{erts,<br>
code:root_dir()}]).<br>
{{case_clause,<br>
     {'EXIT',<br>
         {function_clause,<br>
             [{filename,join,[[]]},<br>
              {systools_make,add_appl,7},<br>
              {systools_make,'-add_applications/5-fun-0-',6},<br>
              {lists,foldl,3},<br>
              {systools_make,add_applications,5},<br>
              {systools_make,mk_tar,6},<br>
              {systools_make,mk_tar,5},<br>
              {systools_make,make_tar,2}]}}},<br>
 [{systools_make,'-add_applications/5-fun-0-',6},<br>
  {lists,foldl,3},<br>
  {systools_make,add_applications,5},<br>
  {systools_make,mk_tar,6},<br>
  {systools_make,mk_tar,5},<br>
  {systools_make,make_tar,2},<br>
  {erl_eval,do_apply,5},<br>
  {shell,exprs,6}]}<br>
error<br>
3><br>
<br>
Now, that is exactly the same problem as these two:<br>
<a href="http://erlang.2086793.n4.nabble.com/troubleshooting-systools-make-tar-td2117171.html" target="_blank">http://erlang.2086793.n4.nabble.com/troubleshooting-systools-make-tar-td2117171.html</a><br>
<a href="http://erlang.org/pipermail/erlang-questions/2008-August/037463.html" target="_blank">http://erlang.org/pipermail/erlang-questions/2008-August/037463.html</a><br>
<br>
I tried things advised in those threads, but nothing helped. I'm<br>
trying to build a release of this project:<br>
<a href="https://github.com/egon-sim/egon_server" target="_blank">https://github.com/egon-sim/egon_server</a>. Does anybody have any hints<br>
where to start looking for error?<br>
<br>
Thanks in advance,<br>
Nikola<br>
<font color="#888888"><br>
--<br>
"Strange women lying in ponds distributing swords is no basis for a<br>
system of government."<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</font></blockquote></div><br></div>
</div></div></blockquote></div><br></div>