Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Inline CPAN distribution.

Report information
The Basics
Id: 17415
Status: resolved
Priority: 0/
Queue: Inline

People
Owner: Nobody in particular
Requestors: johanl [...] DarSerMan.com
jonasbn [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.44
Fixed in: (no value)



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
This looks like a specific example of the general issue of being able to run when relocated. The bug is from 2006. In 2014, Inline's M30_error_no_obj function (which will get called in the code the proposed patch wants to not run) gives instructions on how to allow a new compile of the inline code. I propose that the correct way to deal with the problem the requestor was having is to either make PAR create suitable 'auto' directories so Inline can find what it's looking for, or update the modules that use inline code to not disable the rebuilding.
Should be addressed from within PAR