<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Yay! &nbsp;Thanks, t0m!</div><div><br></div><div>t0m's fix looks like it will work for me, but I'm not sure what it will do for Felix. &nbsp;I was afraid any change would break someone. &nbsp;If Felix's scripts work because they're run from the CWD or has the lib in @INC, then he'll be fine. &nbsp;Not sure how they'd work otherwise.</div><br><div><div>On Mar 1, 2012, at 12:55 AM, Dimitar Petrov wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I think the latest commit actually fixes that issue (thanks to t0m). You can check out here:&nbsp;<a href="https://github.com/rafl/catalyst-runtime/commit/a8946dc8b4ba4c46b4db564b8f9692d48cc7a62f">https://github.com/rafl/catalyst-runtime/commit/a8946dc8b4ba4c46b4db564b8f9692d48cc7a62f</a><div>

<br></div><div>Cheers<div><div><div><br><div class="gmail_quote">On Thu, Mar 1, 2012 at 9:09 AM, Felix Ostmann <span dir="ltr">&lt;<a href="mailto:ostmann@websuche.de">ostmann@websuche.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>Plz dont change to $FindBin::RealBin/.. ! That will break our projects (we use script/http/<a href="http://catayst_fastcgi_server.pl/" target="_blank">catayst_fastcgi_server.pl</a>).</div><div class="HOEnZb"><div class="h5">

<div><br></div><br><div class="gmail_quote">2012/2/29 Louis Erickson <span dir="ltr">&lt;<a href="mailto:lerickson@rdwarf.net" target="_blank">lerickson@rdwarf.net</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On Feb 22, 2012, at 10:57 PM, Dami Laurent (PJ) wrote:<br>
<br>
&gt;&gt; -----Message d'origine-----<br>
&gt;&gt; De : Kieren Diment [mailto:<a href="mailto:diment@gmail.com" target="_blank">diment@gmail.com</a>]<br>
&gt; [...]<br>
&gt;&gt; My understanding was that a recent release of catalyst had a bug that<br>
&gt;&gt; meant that the scripts couldn't infer the location of the app's lib<br>
&gt;&gt; directory. &nbsp;It seems to be fixed in version 5.90010 as per this changes<br>
&gt;&gt; file:<br>
&gt;&gt;<br>
&gt;&gt; <a href="https://metacpan.org/source/MSTROUT/Catalyst-Runtime-5.90010/Changes" target="_blank">https://metacpan.org/source/MSTROUT/Catalyst-Runtime-5.90010/Changes</a><br>
&gt;&gt; _______________________________________________<br>
&gt;<br>
&gt; Well, I just installed, 5.900010, the bug is still there.<br>
&gt; There is a RT ticket, still open :<br>
&gt; <a href="https://rt.cpan.org/Public/Bug/Display.html?id=75098" target="_blank">https://rt.cpan.org/Public/Bug/Display.html?id=75098</a><br>
<br>
The issue I noticed in 5.9.0010 is still true; it only adds the libraries to @INC if the current working directory contains the <a href="http://Makefile.PL">Makefile.PL</a>. &nbsp;It's trying to guess if this is checked out from source control, and guessing oddly.<br>




<br>
What I don't understand is why it guesses that CWD is the place to check; wouldn't $FindBin::RealBin/.. be a better choice and less likely to be an error? &nbsp;CWD is a pretty external thing and can change easily.<br>




<br>
This little change messes up a bunch of tools I use, and means that the fastcgi version won't start in my webserver without a config change there.<br>
<br>
If I can ever get free time to poke it, I may offer a patch which adds a check for both CWD and a path relative to the script. &nbsp;Doing that neatly has been more time than I have had in the last week. &nbsp;It's on my list, really.<br>




<br>
Who would be the right person to send such a patch to? &nbsp;The list in general?<br>
<br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a></blockquote></div><a href="http://dev.catalyst.perl.org/" target="_blank"><br>
</a>
</div></div><br>_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
<br></blockquote></div><br></div></div></div></div>
_______________________________________________<br>List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>Dev site: <a href="http://dev.catalyst.perl.org/">http://dev.catalyst.perl.org/</a><br></blockquote></div><br></body></html>