Subject: | Problem with PAR and Inline |
Hello,
We are experiencing a problem with PAR and Inline in conjunction.
The problem is getting PAR and Inline to work together. PAR moves some stuff around and
when Inline wants to check a given file is no longer where expected.
A patch have been attached, which implements a simple workaround. The workaround is
checking for the environment variable PAR_INITIALIZED is set and if not letting Inline do what
it has always done.
The workaround is not optimal being only based the presence of an environment variable set
by PAR, but it was all we had to go with.
jonasbn and johanl
Subject: | Inline.pm.patch |
Index: Inline.pm
===================================================================
RCS file: /cvs/patches/Inline-0.44/Inline.pm,v
retrieving revision 1.1
diff -b -B -w -u -r1.1 Inline.pm
--- Inline.pm 1 Feb 2006 11:12:52 -0000 1.1
+++ Inline.pm 1 Feb 2006 15:10:56 -0000
@@ -453,10 +453,12 @@
$o->{API}{modpname} = File::Spec->catdir(@modparts);
my $suffix = $Config{dlext};
+ unless ($ENV{PAR_INITIALIZED}) {
my $obj = File::Spec->catfile($realpath,'auto',$o->{API}{modpname},
"$o->{API}{modfname}.$suffix");
croak M30_error_no_obj($o->{CONFIG}{NAME}, $o->{API}{pkg},
$realpath) unless -f $obj;
+ }
@{$o->{CONFIG}}{qw( PRINT_INFO
REPORTBUG