[Bug 800241] New: Catalyst fails to locate user application library via Catalyst::ScriptRunner->run('MyApp', 'Server')

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: Catalyst fails to locate user application library via Catalyst::ScriptRunner->run('MyApp', 'Server')

https://bugzilla.redhat.com/show_bug.cgi?id=800241

           Summary: Catalyst fails to locate user application library via
                    Catalyst::ScriptRunner->run('MyApp', 'Server')
           Product: Fedora
           Version: 16
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: medium
          Priority: unspecified
         Component: perl-Catalyst-Runtime
        AssignedTo: iarnell@xxxxxxxxx
        ReportedBy: eley.ken@xxxxxxxxx
         QAContact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: iarnell@xxxxxxxxx, fedora-perl-devel-list@xxxxxxxxxx,
                    mmaslano@xxxxxxxxxx
    Classification: Fedora
      Story Points: ---
              Type: ---
        Regression: ---
        Mount Type: ---
     Documentation: ---


Description of problem:
Following the upgrade of perl-Catalyst-Runtime and
perl-Catalyst-Runtime-scripts to version 5.90010-1-fc16.noarch the command:

Catalyst::ScriptRunner->run('MyApp', 'Server');

produces the error:

Can't locate MyApp.pm in @INC (@INC contains: /home/ken/ .... )

The error is known to CPAN which reports the error as occurring in version
5.90009 and having been fixed in 5.90010.  Here is a copy for the log for the
module:

"5.90010 - 2012-02-18 00:01:00
 Bug fixes:
  - Fix the previous fix to Catalyst::ScriptRunner which was resulting
    in the lib directory not being pushed onto @INC.
    This meant perl ./script/myapp_server.pl failed, however
    perl -Ilib ./script/myapp_server.pl would succeed."

However I see the bug is in ver 5.90010.  I will report the bug as continuing
to CPAN.

Version-Release number of selected component (if applicable):

5.90010.  I believe that the error also occurs in 5.90009 as I have seen a bug
reported to CPAN for 5.90009, and the code difference shown under Additional
info: (which I believe to be responsible) is also seen between 5.90007 and
5.90009.

Additional info
How reproducible:

This is a repeatable error which occurs when ver 5.90010 of
perl-Catalyst-Runtime is installed, and is removed when that module and
perl-Catalyst-Runtime-scripts are downgraded.  In my case the downgrade
resulted in version perl-Catalyst-Runtime-5.90002-1.fc16.noarch and
perl-Catalyst-Runtime-scripts-5.90002-1.fc16.noarch.


Steps to Reproduce:
1.  Create a catalyst app
2.  Start the catalyst server
3.  Note the error Can't locate MyApp.pm in @INC (@INC contains: ....)

Actual results:

as above, Note the error Can't locate MyApp.pm in @INC (@INC contains: ....)

Expected results:

the server runs without error

Additional info:

I believe that the bug is due to the following change between ver 5.90007 and
5.90010:

$ diff ScriptRunner.5.90007.pm ScriptRunner.5.90010.pm
6a7
> use Catalyst::Utils;
37c38,40
<     lib->import(File::Spec->catdir($FindBin::Bin, '..', 'lib'));
---
>     if (my $home = Catalyst::Utils::find_home_unloaded_in_checkout()) {
>         lib->import(File::Spec->catdir($home, 'lib'));
>     }

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux