Erlang/OTP Forums

Author Message

<  Erlang questions mailing list  ~  systools:make_tar/2 fails because of {filename, join, [[]]}

dijxtra
Posted: Tue Aug 30, 2011 11:27 pm Reply with quote
Joined: 07 Mar 2011 Posts: 6
Hello everybody,

Here is my problem:

nick@miljenko:~/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
erlang-questions@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
Post received from mailinglist
View user's profile Send private message Send e-mail
Guest
Posted: Wed Aug 31, 2011 7:50 am Reply with quote
Guest
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 <nskoric@gmail.com (nskoric@gmail.com)>
Quote:
Hello everybody,

Here is my problem:

nick@miljenko:~/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
Guest
Posted: Wed Sep 07, 2011 8:52 am Reply with quote
Guest
A correction for this is now included in the upcoming R14B04.Regards
/siri

2011/8/31 Siri Hansen <erlangsiri@gmail.com (erlangsiri@gmail.com)>
Quote:
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 <nskoric@gmail.com (nskoric@gmail.com)>
Quote:
Hello everybody,

Here is my problem:

nick@miljenko:~/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

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum