From: Steve V. <vi...@ie...> - 2011-06-03 15:48:10
|
2011/6/3 Sergey Shilov <hs...@ma...>: > В сообщении от 7 мая 2011 17:12:45 автор Steve Vinoski написал: >> Hi Dominique, >> >> I can't say for sure as I've never tried it, but the goal is to be >> able to make Yaws play nicely and correctly in rebar environments. If >> you try this and run into problems, just let me know. >> > > Mybe this hack need for load setuid_drv.so from rebar generated release? > > --- a/src/yaws.erl > +++ b/src/yaws.erl > @@ -1739,7 +1739,15 @@ uid_to_name(Uid) -> > load_setuid_drv() -> > Path = case yaws_generated:is_local_install() of > true -> > - filename:dirname(code:which(?MODULE)) ++ "/../priv/lib"; > + ModulePath = filename:dirname(code:which(?MODULE)), > + case string:str(ModulePath, ".ez/") of > + 0 -> > + % Localinstall > + ModulePath ++ "/../priv/lib"; > + I -> > + % Inside reltool package > + string:sub_string( ModulePath, 1, I - 1) ++ > "/priv/lib" > + end; > false -> > %% ignore dialyzer on this one > PrivDir = code:priv_dir(yaws), > > > Did anyone collect Rebar release with Yaws applications in embedded mode? > Especially if Yaws included as a dependency in the application rebar > configuration. > > B.e. > {deps, [ > {yaws, ".*", {git, "git://github.com/klacke/yaws.git", {tag, "yaws-1.90"}}} > ]}. There are definitely problems with yaws as a dependency with rebar at the moment. Dominique and I are working with the rebar folks to try to resolve them. I also intend to change yaws to keep any rebar install it does completely self-contained within the build area so it doesn't put scripts or conf files in your home directory. Stay tuned. --steve |