[Catalyst] Template::Plugin::Latex 3.00_05 and catalyst

Francesc Romà i Frigolé francesc.roma+catalyst at gmail.com
Fri Feb 29 17:55:34 GMT 2008


Thanks Jon,

Unfortunately it didn't work for me :(

I'm using catalyst 5.7012-r2 on gentoo

Francesc

On Thu, Feb 28, 2008 at 10:30 PM, Jon Schutz <jon+catalyst at youramigo.com>
wrote:

>
> > The weird thing is that the workaround doesn't work for me with
> > version 3 of the T:P:Latex, but if I force  (in the T:P:Latex code,
> > not in my application) the return value of the system call to be 0,
> > then it works. The hack proposed in the catalyst calendar looks like
> > this, and I can't see anything that would make it work only for a
> > particular version of a plugin.
> >
> >      {
> >        no warnings 'redefine';  # right here, you can tell bad things
> > will happen
> >        local *Template::Latex::system =3D sub {
> >
> >          my $ret =3D system(@_);
> >
> >          # guesstimate whether the system call was successful or not
> >
> >          return 0 if ( guess =3D=3D OK );
> >          return $ret;
> >        } if $c->engine =3D~ /^Catalyst::Engine::HTTP/;
> >
> >
> > Any ideas why it doesn't work?
>
> Not sure, but I have successfully used Template::Plugin::Latex 3.00_05
> in Catalyst dev server using a patch for the system() problem previously
> posted on the catalyst-dev list, which I have attached.  Seems others
> may not have had the same success as me, so YMMV.
>
>
> --
>
> Jon Schutz                        My tech notes http://notes.jschutz.net
> Chief Technology Officer                        http://www.youramigo.com
> YourAmigo
>
>
> ---------- Forwarded message ----------
> From: Jon Schutz <jon+catalyst at youramigo.com>
> To: Development of the elegant MVC web framework <
> catalyst-dev at lists.scsys.co.uk>
> Date: Sun, 28 Oct 2007 17:51:04 +1030
> Subject: Re: [Catalyst-dev] Fix for system() returning -1 on dev server
> On Sat, 2007-10-27 at 12:46 -0400, Andy Grundman wrote:
>
> > > optional_http-server.t + live_fork.t already tests for this and was
> > > failing the tests for system() and backticks return codes.  Post-patch
> > > it passes system() and still fails backticks exit code.
> >
> > Hmm, even with the patch both the system and backticks tests fail for
> > me.  The output is the same with or without the patch:
> >
>
> Well, I checked with vanilla 5.8.8, vanilla 5.9.5 and RHEL5
> perl-5.8.8-24, and on all systems I got the same - prepatch both system
> () and backticks fail, and postpatch system() is fixed but backticks
> still fails.
>
> Nevertheless, I thought I'd have a look at the backticks problem as
> well, and implement the double-fork approach - the main process forks
> and reaps its child inline, which happens without delay because all the
> child does is fork again and exit, so there is no need for any SIG{CHLD}
> handling at all.
>
> Attached is suggested patch against svn 7075, with which I get all tests
> passing on optional_http-server and optional_http-server-restart. (And
> yes, my app still works too!)  Please give it a try and see if you have
> more success.
>
> --
>
> Jon
>
> _______________________________________________
> Catalyst-dev mailing list
> Catalyst-dev at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080229/56274=
c60/attachment.htm


More information about the Catalyst mailing list