On Oct 7, 2011 4:04 AM, "Steve Vinoski" <email@example.com> wrote:
> 2011/10/6 Essien Essien <firstname.lastname@example.org>:
> > Hi folks,
> > I'm trying to use yaws in embedded mode, as a rebar dependency.
> > I had a little bit of head scratching before I realized that currently, the
> > rebar support only extends to the local install.
> > To work around this, I simply hardcoded yaws_generated:is_local_install/0 to
> > return false, before all the code loading paths worked properly.
> > My questions are:
> > 1. Would code:priv_dir/1 not work properly when installed locally? It seems
> > to work from the shell, so please ignore my ignorance (no pun intended!
> > honest!!! ;) )
> > 2. What is the work involved in making rebar support non local installs
> > properly? I am willing to do this work, with a bit of guidance from someone
> > more familiar with the code and history. I took a quick peek at all the
> > references to yaws_generated:is_local_install(), and from my naive look, it
> > seems these are easily taken care of, but I do not know if that's the only
> > problem with the rebar support.
> The local install aspect of the yaws rebar support needs to be fixed,
> no doubt about that. However, for the past several months there's been
> a bigger issue with rebar which has been preventing progress on fixing
> the ability to embed yaws with a rebar build. Tuncer has gotten back
> to working on that issue within the past few days and may be getting
> close to a fix; if so, then once that's addressed, fixing the local
> install issue will be fairly straightforward.
The work around is sufficient for now, so I can live with that hack on my local branch.
I'll just watch the commits to note when it's done then.
Thanks for your reply steve.