Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Authorization-ACL CPAN distribution.

Report information
The Basics
Id: 49813
Status: resolved
Priority: 0/
Queue: Catalyst-Plugin-Authorization-ACL

People
Owner: Nobody in particular
Requestors: felix.ostmann [...] thewar.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.11
Fixed in: (no value)



Subject: Cannot install on a fresh system / Global symbol "$ALLOWED" requires explicit package name
t/live_app.t ....... Could not load class (ACLTestApp) because : Global symbol "$ALLOWED" requires explicit package name at t/lib/ACLTestApp.pm line 90. Global symbol "$DENIED" requires explicit package name at t/lib/ACLTestApp.pm line 90. i think there was a exportet $ALLOWED and $DENIED in 5.7 that has now gone?! only the test will fail, the module "should" work.
ok, this is currently not working i think. use Catalyst::Plugin::Authorization::ACL::Engine qw/$DENIED $ALLOWED/; On Fr. 18. Sep. 2009, 08:59:27, Sadrak wrote: Show quoted text
> t/live_app.t ....... Could not load class (ACLTestApp) because : Global > symbol "$ALLOWED" requires explicit package name at t/lib/ACLTestApp.pm > line 90. > > Global symbol "$DENIED" requires explicit package name at > t/lib/ACLTestApp.pm line 90. > > > > i think there was a exportet $ALLOWED and $DENIED in 5.7 that has now > gone?! only the test will fail, the module "should" work.
Subject: Re: [rt.cpan.org #49813] Cannot install on a fresh system / Global symbol "$ALLOWED" requires explicit package name
Date: Fri, 18 Sep 2009 13:17:22 -0400
To: Felix Antonius Wilhelm Ostmann via RT <bug-Catalyst-Plugin-Authorization-ACL [...] rt.cpan.org>
From: Rafael Kitover <rkitover [...] io.com>
Everything works for me with the latest Catalyst, Moose and CMOP: rkitover@hlagh ~/src/catalyst/acl % prove -l t t/01use.t .......... ok t/02pod.t .......... ok t/03podcoverage.t .. ok t/live_app.t ....... [warn] Action methods (restricted, default, access_denied, end) found defined in your application class, ACLTestApp. This is deprecated, please move them into a Root controller. Class Catalyst::Plugin::Authorization::ACL::Engine is calling the deprecated method Catalyst::Dispatcher::tree, this will be removed in Catalyst 5.9X t/live_app.t ....... ok t/more_live_app.t .. [warn] Action methods (foo, bar, gorch, end, access_denied) found defined in your application class, ACLTestApp2. This is deprecated, please move them into a Root controller. Class Catalyst::Plugin::Authorization::ACL::Engine is calling the deprecated method Catalyst::Dispatcher::tree, this will be removed in Catalyst 5.9X t/more_live_app.t .. ok All tests successful. Files=5, Tests=116, 10 wallclock secs ( 0.20 usr 0.03 sys + 8.98 cusr 0.45 csys = 9.66 CPU) Result: PASS rkitover@hlagh ~/src/catalyst/acl % perl -I lib -MCatalyst::Plugin::Authorization::ACL::Engine='$DENIED,$ALLOWED' -le 'print $DENIED; print $ALLOWED' Catalyst::Plugin::Authorization::ACL::Engine::Denied=HASH(0x86d7708) Catalyst::Plugin::Authorization::ACL::Engine::Allowed=HASH(0x878ae20) rkitover@hlagh ~/src/catalyst/acl % perl -MMoose\ 999 Moose version 999 required--this is only version 0.91. BEGIN failed--compilation aborted. rkitover@hlagh ~/src/catalyst/acl % perl -MCatalyst\ 999 Catalyst version 999 required--this is only version 5.80013. BEGIN failed--compilation aborted. On Fri, Sep 18, 2009 at 09:01:20AM -0400, Felix Antonius Wilhelm Ostmann via RT wrote: Show quoted text
> Queue: Catalyst-Plugin-Authorization-ACL > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > > > ok, this is currently not working i think. > use Catalyst::Plugin::Authorization::ACL::Engine qw/$DENIED $ALLOWED/; > > > On Fr. 18. Sep. 2009, 08:59:27, Sadrak wrote:
> > t/live_app.t ....... Could not load class (ACLTestApp) because : Global > > symbol "$ALLOWED" requires explicit package name at t/lib/ACLTestApp.pm > > line 90. > > > > Global symbol "$DENIED" requires explicit package name at > > t/lib/ACLTestApp.pm line 90. > > > > > > > > i think there was a exportet $ALLOWED and $DENIED in 5.7 that has now > > gone?! only the test will fail, the module "should" work.
> >
Subject: Re: [rt.cpan.org #49813] Cannot install on a fresh system / Global symbol "$ALLOWED" requires explicit package name
Date: Sat, 19 Sep 2009 10:42:44 +0200
To: bug-Catalyst-Plugin-Authorization-ACL [...] rt.cpan.org
From: Felix Antonius Wilhelm Ostmann <felix.ostmann [...] thewar.de>
Perhaps there is something missing in the dependencies? This was a fresh system with userinstalled 5.10.1, only with some other modules already installed. There is a new Class::MOP from 15.09.2009, perhaps this breaks something? Rafael Kitover via RT schrieb: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > > > Everything works for me with the latest Catalyst, Moose and CMOP: > > rkitover@hlagh ~/src/catalyst/acl % prove -l t > t/01use.t .......... ok > t/02pod.t .......... ok > t/03podcoverage.t .. ok > t/live_app.t ....... [warn] Action methods (restricted, default, access_denied, end) found defined in your application class, ACLTestApp. This is deprecated, please move them into a Root controller. > Class Catalyst::Plugin::Authorization::ACL::Engine is calling the deprecated method > Catalyst::Dispatcher::tree, > this will be removed in Catalyst 5.9X > t/live_app.t ....... ok > t/more_live_app.t .. [warn] Action methods (foo, bar, gorch, end, access_denied) found defined in your application class, ACLTestApp2. This is deprecated, please move them into a Root controller. > Class Catalyst::Plugin::Authorization::ACL::Engine is calling the deprecated method > Catalyst::Dispatcher::tree, > this will be removed in Catalyst 5.9X > t/more_live_app.t .. ok > All tests successful. > Files=5, Tests=116, 10 wallclock secs ( 0.20 usr 0.03 sys + 8.98 cusr 0.45 csys = 9.66 CPU) > Result: PASS > rkitover@hlagh ~/src/catalyst/acl % perl -I lib -MCatalyst::Plugin::Authorization::ACL::Engine='$DENIED,$ALLOWED' -le 'print $DENIED; print $ALLOWED' > Catalyst::Plugin::Authorization::ACL::Engine::Denied=HASH(0x86d7708) > Catalyst::Plugin::Authorization::ACL::Engine::Allowed=HASH(0x878ae20) > rkitover@hlagh ~/src/catalyst/acl % perl -MMoose\ 999 > Moose version 999 required--this is only version 0.91. > BEGIN failed--compilation aborted. > rkitover@hlagh ~/src/catalyst/acl % perl -MCatalyst\ 999 > Catalyst version 999 required--this is only version 5.80013. > BEGIN failed--compilation aborted. > > On Fri, Sep 18, 2009 at 09:01:20AM -0400, Felix Antonius Wilhelm Ostmann via RT wrote:
>> Queue: Catalyst-Plugin-Authorization-ACL >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > >> >> ok, this is currently not working i think. >> use Catalyst::Plugin::Authorization::ACL::Engine qw/$DENIED $ALLOWED/; >> >> >> On Fr. 18. Sep. 2009, 08:59:27, Sadrak wrote:
>>> t/live_app.t ....... Could not load class (ACLTestApp) because : Global >>> symbol "$ALLOWED" requires explicit package name at t/lib/ACLTestApp.pm >>> line 90. >>> >>> Global symbol "$DENIED" requires explicit package name at >>> t/lib/ACLTestApp.pm line 90. >>> >>> >>> >>> i think there was a exportet $ALLOWED and $DENIED in 5.7 that has now >>> gone?! only the test will fail, the module "should" work.
>>
> >
Subject: Re: [rt.cpan.org #49813] Cannot install on a fresh system / Global symbol "$ALLOWED" requires explicit package name
Date: Sat, 19 Sep 2009 13:11:28 -0400
To: Felix Antonius Wilhelm Ostmann via RT <bug-Catalyst-Plugin-Authorization-ACL [...] rt.cpan.org>
From: Rafael Kitover <rkitover [...] io.com>
I had cmop from git, so not that... Could you please check that the installed modules: perldoc -l Catalyst::Plugin::Authorization::ACL::Engine perldoc -l Catalyst::Plugin::Authorization::ACL match the ones in the distribution? On Sat, Sep 19, 2009 at 04:43:14AM -0400, Felix Antonius Wilhelm Ostmann via RT wrote: Show quoted text
> Queue: Catalyst-Plugin-Authorization-ACL > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > > > Perhaps there is something missing in the dependencies? This was a fresh > system with userinstalled 5.10.1, only with some other modules already > installed. There is a new Class::MOP from 15.09.2009, perhaps this > breaks something? > > Rafael Kitover via RT schrieb:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > > > > > Everything works for me with the latest Catalyst, Moose and CMOP: > > > > rkitover@hlagh ~/src/catalyst/acl % prove -l t > > t/01use.t .......... ok > > t/02pod.t .......... ok > > t/03podcoverage.t .. ok > > t/live_app.t ....... [warn] Action methods (restricted, default, access_denied, end) found defined in your application class, ACLTestApp. This is deprecated, please move them into a Root controller. > > Class Catalyst::Plugin::Authorization::ACL::Engine is calling the deprecated method > > Catalyst::Dispatcher::tree, > > this will be removed in Catalyst 5.9X > > t/live_app.t ....... ok > > t/more_live_app.t .. [warn] Action methods (foo, bar, gorch, end, access_denied) found defined in your application class, ACLTestApp2. This is deprecated, please move them into a Root controller. > > Class Catalyst::Plugin::Authorization::ACL::Engine is calling the deprecated method > > Catalyst::Dispatcher::tree, > > this will be removed in Catalyst 5.9X > > t/more_live_app.t .. ok > > All tests successful. > > Files=5, Tests=116, 10 wallclock secs ( 0.20 usr 0.03 sys + 8.98 cusr 0.45 csys = 9.66 CPU) > > Result: PASS > > rkitover@hlagh ~/src/catalyst/acl % perl -I lib -MCatalyst::Plugin::Authorization::ACL::Engine='$DENIED,$ALLOWED' -le 'print $DENIED; print $ALLOWED' > > Catalyst::Plugin::Authorization::ACL::Engine::Denied=HASH(0x86d7708) > > Catalyst::Plugin::Authorization::ACL::Engine::Allowed=HASH(0x878ae20) > > rkitover@hlagh ~/src/catalyst/acl % perl -MMoose\ 999 > > Moose version 999 required--this is only version 0.91. > > BEGIN failed--compilation aborted. > > rkitover@hlagh ~/src/catalyst/acl % perl -MCatalyst\ 999 > > Catalyst version 999 required--this is only version 5.80013. > > BEGIN failed--compilation aborted. > > > > On Fri, Sep 18, 2009 at 09:01:20AM -0400, Felix Antonius Wilhelm Ostmann via RT wrote:
> >> Queue: Catalyst-Plugin-Authorization-ACL > >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > > >> > >> ok, this is currently not working i think. > >> use Catalyst::Plugin::Authorization::ACL::Engine qw/$DENIED $ALLOWED/; > >> > >> > >> On Fr. 18. Sep. 2009, 08:59:27, Sadrak wrote:
> >>> t/live_app.t ....... Could not load class (ACLTestApp) because : Global > >>> symbol "$ALLOWED" requires explicit package name at t/lib/ACLTestApp.pm > >>> line 90. > >>> > >>> Global symbol "$DENIED" requires explicit package name at > >>> t/lib/ACLTestApp.pm line 90. > >>> > >>> > >>> > >>> i think there was a exportet $ALLOWED and $DENIED in 5.7 that has now > >>> gone?! only the test will fail, the module "should" work.
> >>
> > > >
> >
Subject: Re: [rt.cpan.org #49813] Cannot install on a fresh system / Global symbol "$ALLOWED" requires explicit package name
Date: Sat, 19 Sep 2009 19:36:18 +0200
To: bug-Catalyst-Plugin-Authorization-ACL [...] rt.cpan.org
From: Felix Antonius Wilhelm Ostmann <felix.ostmann [...] thewar.de>
I am not sure what do you want to know with perldoc -l :-/ websuche@intern5:~$ perldoc -l Catalyst::Plugin::Authorization::ACL::Engine No documentation found for "Catalyst::Plugin::Authorization::ACL::Engine". websuche@intern5:~$ perldoc -l Catalyst::Plugin::Authorization::ACL No documentation found for "Catalyst::Plugin::Authorization::ACL". websuche@intern5:~$ perl -MCatalyst::Plugin::Authorization::ACL\ 9999 Catalyst::Plugin::Authorization::ACL version 9999 required--this is only version 0.11. websuche@intern5:~$ cd .cpan/build/Catalyst-Plugin-Authorization-ACL-0.11-gPV1Pu/ websuche@intern5:~/.cpan/build/Catalyst-Plugin-Authorization-ACL-0.11-gPV1Pu$ make clean rm -f \ *.a core \ core.[0-9] blib/arch/auto/Catalyst/Plugin/Authorization/ACL/extralibs.all \ core.[0-9][0-9] ACL.bso \ pm_to_blib.ts core.[0-9][0-9][0-9][0-9] \ ACL.x \ perl tmon.out \ *.o pm_to_blib \ blib/arch/auto/Catalyst/Plugin/Authorization/ACL/extralibs.ld blibdirs.ts \ core.[0-9][0-9][0-9][0-9][0-9] *perl.core \ core.*perl.*.? Makefile.aperl \ perl ACL.def \ core.[0-9][0-9][0-9] mon.out \ libACL.def perlmain.c \ perl.exe so_locations \ ACL.exp rm -rf \ blib mv Makefile Makefile.old > /dev/null 2>&1 websuche@intern5:~/.cpan/build/Catalyst-Plugin-Authorization-ACL-0.11-gPV1Pu$ perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Catalyst::Plugin::Authorization::ACL websuche@intern5:~/.cpan/build/Catalyst-Plugin-Authorization-ACL-0.11-gPV1Pu$ make cp lib/Catalyst/Plugin/Authorization/ACL/Engine.pm blib/lib/Catalyst/Plugin/Authorization/ACL/Engine.pm cp lib/Catalyst/Plugin/Authorization/ACL.pm blib/lib/Catalyst/Plugin/Authorization/ACL.pm Manifying blib/man3/Catalyst::Plugin::Authorization::ACL::Engine.3 Manifying blib/man3/Catalyst::Plugin::Authorization::ACL.3 websuche@intern5:~/.cpan/build/Catalyst-Plugin-Authorization-ACL-0.11-gPV1Pu$ make test PERL_DL_NONLAZY=1 /home/websuche/perl5lib/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/01use.t .......... ok t/02pod.t .......... skipped: set TEST_POD to enable this test t/03podcoverage.t .. skipped: Test::Pod::Coverage 1.04 required t/live_app.t ....... Could not load class (ACLTestApp) because : Global symbol "$ALLOWED" requires explicit package name at t/lib/ACLTestApp.pm line 90. Global symbol "$DENIED" requires explicit package name at t/lib/ACLTestApp.pm line 90. Compilation failed in require at /home/websuche/perl5lib/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm line 129. at /home/websuche/perl5lib/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm line 114 Class::MOP::load_first_existing_class('ACLTestApp') called at /home/websuche/perl5lib/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm line 135 Class::MOP::load_class('ACLTestApp') called at /home/websuche/perl5lib/lib/site_perl/5.10.1/Test/WWW/Mechanize/Catalyst.pm line 225 Test::WWW::Mechanize::Catalyst::import('Test::WWW::Mechanize::Catalyst', 'ACLTestApp') called at t/live_app.t line 21 main::BEGIN() called at t/live_app.t line 21 eval {...} called at t/live_app.t line 21 BEGIN failed--compilation aborted at t/live_app.t line 21. # Looks like your test exited with 255 before it could output anything. t/live_app.t ....... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 97/97 subtests t/more_live_app.t .. [warn] Action methods (foo, bar, gorch, end, access_denied) found defined in your application class, ACLTestApp2. This is deprecated, please move them into a Root controller. Class Catalyst::Plugin::Authorization::ACL::Engine is calling the deprecated method Catalyst::Dispatcher::tree, this will be removed in Catalyst 5.9X t/more_live_app.t .. ok Test Summary Report ------------------- t/live_app.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 97 tests but ran 0. Files=5, Tests=15, 1 wallclock secs ( 0.02 usr 0.01 sys + 1.29 cusr 0.09 csys = 1.41 CPU) Result: FAIL Failed 1/5 test programs. 0/15 subtests failed. make: *** [test_dynamic] Fehler 255 i added the user at the same day and build perl 5.10.1 without any specials from source. After that i installed AnyEvent, Catalyst and DBIx::Class and some other modules ... Rafael Kitover via RT schrieb: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > > > I had cmop from git, so not that... > > Could you please check that the installed modules: > > perldoc -l Catalyst::Plugin::Authorization::ACL::Engine > perldoc -l Catalyst::Plugin::Authorization::ACL > > match the ones in the distribution? > > On Sat, Sep 19, 2009 at 04:43:14AM -0400, Felix Antonius Wilhelm Ostmann via RT wrote:
>> Queue: Catalyst-Plugin-Authorization-ACL >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > >> >> Perhaps there is something missing in the dependencies? This was a fresh >> system with userinstalled 5.10.1, only with some other modules already >> installed. There is a new Class::MOP from 15.09.2009, perhaps this >> breaks something? >> >> Rafael Kitover via RT schrieb:
>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > >>> >>> Everything works for me with the latest Catalyst, Moose and CMOP: >>> >>> rkitover@hlagh ~/src/catalyst/acl % prove -l t >>> t/01use.t .......... ok >>> t/02pod.t .......... ok >>> t/03podcoverage.t .. ok >>> t/live_app.t ....... [warn] Action methods (restricted, default, access_denied, end) found defined in your application class, ACLTestApp. This is deprecated, please move them into a Root controller. >>> Class Catalyst::Plugin::Authorization::ACL::Engine is calling the deprecated method >>> Catalyst::Dispatcher::tree, >>> this will be removed in Catalyst 5.9X >>> t/live_app.t ....... ok >>> t/more_live_app.t .. [warn] Action methods (foo, bar, gorch, end, access_denied) found defined in your application class, ACLTestApp2. This is deprecated, please move them into a Root controller. >>> Class Catalyst::Plugin::Authorization::ACL::Engine is calling the deprecated method >>> Catalyst::Dispatcher::tree, >>> this will be removed in Catalyst 5.9X >>> t/more_live_app.t .. ok >>> All tests successful. >>> Files=5, Tests=116, 10 wallclock secs ( 0.20 usr 0.03 sys + 8.98 cusr 0.45 csys = 9.66 CPU) >>> Result: PASS >>> rkitover@hlagh ~/src/catalyst/acl % perl -I lib -MCatalyst::Plugin::Authorization::ACL::Engine='$DENIED,$ALLOWED' -le 'print $DENIED; print $ALLOWED' >>> Catalyst::Plugin::Authorization::ACL::Engine::Denied=HASH(0x86d7708) >>> Catalyst::Plugin::Authorization::ACL::Engine::Allowed=HASH(0x878ae20) >>> rkitover@hlagh ~/src/catalyst/acl % perl -MMoose\ 999 >>> Moose version 999 required--this is only version 0.91. >>> BEGIN failed--compilation aborted. >>> rkitover@hlagh ~/src/catalyst/acl % perl -MCatalyst\ 999 >>> Catalyst version 999 required--this is only version 5.80013. >>> BEGIN failed--compilation aborted. >>> >>> On Fri, Sep 18, 2009 at 09:01:20AM -0400, Felix Antonius Wilhelm Ostmann via RT wrote:
>>>> Queue: Catalyst-Plugin-Authorization-ACL >>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > >>>> >>>> ok, this is currently not working i think. >>>> use Catalyst::Plugin::Authorization::ACL::Engine qw/$DENIED $ALLOWED/; >>>> >>>> >>>> On Fr. 18. Sep. 2009, 08:59:27, Sadrak wrote:
>>>>> t/live_app.t ....... Could not load class (ACLTestApp) because : Global >>>>> symbol "$ALLOWED" requires explicit package name at t/lib/ACLTestApp.pm >>>>> line 90. >>>>> >>>>> Global symbol "$DENIED" requires explicit package name at >>>>> t/lib/ACLTestApp.pm line 90. >>>>> >>>>> >>>>> >>>>> i think there was a exportet $ALLOWED and $DENIED in 5.7 that has now >>>>> gone?! only the test will fail, the module "should" work.
>>>
>>
> >
Subject: Re: [rt.cpan.org #49813] Cannot install on a fresh system / Global symbol "$ALLOWED" requires explicit package name
Date: Sat, 19 Sep 2009 14:44:45 -0400
To: Felix Antonius Wilhelm Ostmann via RT <bug-Catalyst-Plugin-Authorization-ACL [...] rt.cpan.org>
From: Rafael Kitover <rkitover [...] io.com>
Something's wrong with your perldoc :) If you go to the dist distribution, what does this do: perl -I lib \ -MCatalyst::Plugin::Authorization::ACL::Engine='$DENIED,$ALLOWED' \ -le 'print $DENIED; print $ALLOWED' and again without the -I lib On Sat, Sep 19, 2009 at 01:36:52PM -0400, Felix Antonius Wilhelm Ostmann via RT wrote: Show quoted text
> Queue: Catalyst-Plugin-Authorization-ACL > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > > > I am not sure what do you want to know with perldoc -l :-/ > > websuche@intern5:~$ perldoc -l Catalyst::Plugin::Authorization::ACL::Engine > No documentation found for "Catalyst::Plugin::Authorization::ACL::Engine". > websuche@intern5:~$ perldoc -l Catalyst::Plugin::Authorization::ACL > No documentation found for "Catalyst::Plugin::Authorization::ACL". > > > websuche@intern5:~$ perl -MCatalyst::Plugin::Authorization::ACL\ 9999 > Catalyst::Plugin::Authorization::ACL version 9999 required--this is only > version 0.11. > > > > websuche@intern5:~$ cd > .cpan/build/Catalyst-Plugin-Authorization-ACL-0.11-gPV1Pu/ > > websuche@intern5:~/.cpan/build/Catalyst-Plugin-Authorization-ACL-0.11-gPV1Pu$ > make clean > rm -f \ > > *.a core \ > > core.[0-9] > blib/arch/auto/Catalyst/Plugin/Authorization/ACL/extralibs.all \ > core.[0-9][0-9] ACL.bso \ > > pm_to_blib.ts core.[0-9][0-9][0-9][0-9] \ > > ACL.x \ > > perl tmon.out \ > > *.o pm_to_blib \ > > blib/arch/auto/Catalyst/Plugin/Authorization/ACL/extralibs.ld > blibdirs.ts \ > core.[0-9][0-9][0-9][0-9][0-9] *perl.core \ > > core.*perl.*.? Makefile.aperl \ > > perl ACL.def \ > > core.[0-9][0-9][0-9] mon.out \ > > libACL.def perlmain.c \ > > perl.exe so_locations \ > > ACL.exp > > rm -rf \ > > blib > > mv Makefile Makefile.old > /dev/null 2>&1 > > websuche@intern5:~/.cpan/build/Catalyst-Plugin-Authorization-ACL-0.11-gPV1Pu$ > perl Makefile.PL > Checking if your kit is complete... > > Looks good > > Writing Makefile for Catalyst::Plugin::Authorization::ACL > > websuche@intern5:~/.cpan/build/Catalyst-Plugin-Authorization-ACL-0.11-gPV1Pu$ > make > cp lib/Catalyst/Plugin/Authorization/ACL/Engine.pm > blib/lib/Catalyst/Plugin/Authorization/ACL/Engine.pm > cp lib/Catalyst/Plugin/Authorization/ACL.pm > blib/lib/Catalyst/Plugin/Authorization/ACL.pm > Manifying blib/man3/Catalyst::Plugin::Authorization::ACL::Engine.3 > Manifying blib/man3/Catalyst::Plugin::Authorization::ACL.3 > websuche@intern5:~/.cpan/build/Catalyst-Plugin-Authorization-ACL-0.11-gPV1Pu$ > make test > PERL_DL_NONLAZY=1 /home/websuche/perl5lib/bin/perl > "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', > 'blib/arch')" t/*.t > t/01use.t .......... ok > t/02pod.t .......... skipped: set TEST_POD to enable this test > t/03podcoverage.t .. skipped: Test::Pod::Coverage 1.04 required > t/live_app.t ....... Could not load class (ACLTestApp) because : Global > symbol "$ALLOWED" requires explicit package name at t/lib/ACLTestApp.pm > line 90. > Global symbol "$DENIED" requires explicit package name at > t/lib/ACLTestApp.pm line 90. > Compilation failed in require at > /home/websuche/perl5lib/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm > line 129. > at > /home/websuche/perl5lib/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm > line 114 > Class::MOP::load_first_existing_class('ACLTestApp') called at > /home/websuche/perl5lib/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm > line 135 > Class::MOP::load_class('ACLTestApp') called at > /home/websuche/perl5lib/lib/site_perl/5.10.1/Test/WWW/Mechanize/Catalyst.pm > line 225 > > Test::WWW::Mechanize::Catalyst::import('Test::WWW::Mechanize::Catalyst', > 'ACLTestApp') called at t/live_app.t line 21 > main::BEGIN() called at t/live_app.t line 21 > eval {...} called at t/live_app.t line 21 > BEGIN failed--compilation aborted at t/live_app.t line 21. > # Looks like your test exited with 255 before it could output anything. > t/live_app.t ....... Dubious, test returned 255 (wstat 65280, 0xff00) > Failed 97/97 subtests > t/more_live_app.t .. [warn] Action methods (foo, bar, gorch, end, > access_denied) found defined in your application class, ACLTestApp2. > This is deprecated, please move them into a Root controller. > Class Catalyst::Plugin::Authorization::ACL::Engine is calling the > deprecated method > Catalyst::Dispatcher::tree, > this will be removed in Catalyst 5.9X > t/more_live_app.t .. ok > > Test Summary Report > ------------------- > t/live_app.t (Wstat: 65280 Tests: 0 Failed: 0) > Non-zero exit status: 255 > Parse errors: Bad plan. You planned 97 tests but ran 0. > Files=5, Tests=15, 1 wallclock secs ( 0.02 usr 0.01 sys + 1.29 cusr > 0.09 csys = 1.41 CPU) > Result: FAIL > Failed 1/5 test programs. 0/15 subtests failed. > make: *** [test_dynamic] Fehler 255 > > > > i added the user at the same day and build perl 5.10.1 without any > specials from source. After that i installed AnyEvent, Catalyst and > DBIx::Class and some other modules ... > > > Rafael Kitover via RT schrieb:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > > > > > I had cmop from git, so not that... > > > > Could you please check that the installed modules: > > > > perldoc -l Catalyst::Plugin::Authorization::ACL::Engine > > perldoc -l Catalyst::Plugin::Authorization::ACL > > > > match the ones in the distribution? > > > > On Sat, Sep 19, 2009 at 04:43:14AM -0400, Felix Antonius Wilhelm Ostmann via RT wrote:
> >> Queue: Catalyst-Plugin-Authorization-ACL > >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > > >> > >> Perhaps there is something missing in the dependencies? This was a fresh > >> system with userinstalled 5.10.1, only with some other modules already > >> installed. There is a new Class::MOP from 15.09.2009, perhaps this > >> breaks something? > >> > >> Rafael Kitover via RT schrieb:
> >>> <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > > >>> > >>> Everything works for me with the latest Catalyst, Moose and CMOP: > >>> > >>> rkitover@hlagh ~/src/catalyst/acl % prove -l t > >>> t/01use.t .......... ok > >>> t/02pod.t .......... ok > >>> t/03podcoverage.t .. ok > >>> t/live_app.t ....... [warn] Action methods (restricted, default, access_denied, end) found defined in your application class, ACLTestApp. This is deprecated, please move them into a Root controller. > >>> Class Catalyst::Plugin::Authorization::ACL::Engine is calling the deprecated method > >>> Catalyst::Dispatcher::tree, > >>> this will be removed in Catalyst 5.9X > >>> t/live_app.t ....... ok > >>> t/more_live_app.t .. [warn] Action methods (foo, bar, gorch, end, access_denied) found defined in your application class, ACLTestApp2. This is deprecated, please move them into a Root controller. > >>> Class Catalyst::Plugin::Authorization::ACL::Engine is calling the deprecated method > >>> Catalyst::Dispatcher::tree, > >>> this will be removed in Catalyst 5.9X > >>> t/more_live_app.t .. ok > >>> All tests successful. > >>> Files=5, Tests=116, 10 wallclock secs ( 0.20 usr 0.03 sys + 8.98 cusr 0.45 csys = 9.66 CPU) > >>> Result: PASS > >>> rkitover@hlagh ~/src/catalyst/acl % perl -I lib -MCatalyst::Plugin::Authorization::ACL::Engine='$DENIED,$ALLOWED' -le 'print $DENIED; print $ALLOWED' > >>> Catalyst::Plugin::Authorization::ACL::Engine::Denied=HASH(0x86d7708) > >>> Catalyst::Plugin::Authorization::ACL::Engine::Allowed=HASH(0x878ae20) > >>> rkitover@hlagh ~/src/catalyst/acl % perl -MMoose\ 999 > >>> Moose version 999 required--this is only version 0.91. > >>> BEGIN failed--compilation aborted. > >>> rkitover@hlagh ~/src/catalyst/acl % perl -MCatalyst\ 999 > >>> Catalyst version 999 required--this is only version 5.80013. > >>> BEGIN failed--compilation aborted. > >>> > >>> On Fri, Sep 18, 2009 at 09:01:20AM -0400, Felix Antonius Wilhelm Ostmann via RT wrote:
> >>>> Queue: Catalyst-Plugin-Authorization-ACL > >>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > > >>>> > >>>> ok, this is currently not working i think. > >>>> use Catalyst::Plugin::Authorization::ACL::Engine qw/$DENIED $ALLOWED/; > >>>> > >>>> > >>>> On Fr. 18. Sep. 2009, 08:59:27, Sadrak wrote:
> >>>>> t/live_app.t ....... Could not load class (ACLTestApp) because : Global > >>>>> symbol "$ALLOWED" requires explicit package name at t/lib/ACLTestApp.pm > >>>>> line 90. > >>>>> > >>>>> Global symbol "$DENIED" requires explicit package name at > >>>>> t/lib/ACLTestApp.pm line 90. > >>>>> > >>>>> > >>>>> > >>>>> i think there was a exportet $ALLOWED and $DENIED in 5.7 that has now > >>>>> gone?! only the test will fail, the module "should" work.
> >>>
> >>
> > > >
> >
Subject: Re: [rt.cpan.org #49813] Cannot install on a fresh system / Global symbol "$ALLOWED" requires explicit package name
Date: Sun, 20 Sep 2009 13:44:45 +0200
To: bug-Catalyst-Plugin-Authorization-ACL [...] rt.cpan.org
From: Felix Antonius Wilhelm Ostmann <felix.ostmann [...] thewar.de>
i had used the wrong perldoc from the systemperl, sorry for that :-/ websuche@intern5:~/perl5lib$ which perl /home/websuche/perl5lib/bin/perl websuche@intern5:~/perl5lib$ perl -I lib -MCatalyst::Plugin::Authorization::ACL::Engine='$DENIED,$ALLOWED' -le 'print $DENIED; print $ALLOWED' websuche@intern5:~/perl5lib$ perl -I lib -MCatalyst::Plugin::Authorization::ACL::Engine='$DENIED,$ALLOWED' -lwe 'print $DENIED; print $ALLOWED' Name "main::DENIED" used only once: possible typo at -e line 1. Name "main::ALLOWED" used only once: possible typo at -e line 1. Use of uninitialized value $DENIED in print at -e line 1. Use of uninitialized value $ALLOWED in print at -e line 1. Rafael Kitover via RT schrieb: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=49813 > > > Something's wrong with your perldoc :) > > If you go to the dist distribution, what does this do: > > perl -I lib \ > -MCatalyst::Plugin::Authorization::ACL::Engine='$DENIED,$ALLOWED' \ > -le 'print $DENIED; print $ALLOWED' > > and again without the -I lib > > On Sat, Sep 19, 2009 at 01:36:52PM -0400, Felix Antonius Wilhelm Ostmann via RT wrote:
>> Queue: Catalyst-Plugin-Authorization-ACL >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > >> >> I am not sure what do you want to know with perldoc -l :-/ >> >> websuche@intern5:~$ perldoc -l Catalyst::Plugin::Authorization::ACL::Engine >> No documentation found for "Catalyst::Plugin::Authorization::ACL::Engine". >> websuche@intern5:~$ perldoc -l Catalyst::Plugin::Authorization::ACL >> No documentation found for "Catalyst::Plugin::Authorization::ACL". >> >> >> websuche@intern5:~$ perl -MCatalyst::Plugin::Authorization::ACL\ 9999 >> Catalyst::Plugin::Authorization::ACL version 9999 required--this is only >> version 0.11. >> >> >> >> websuche@intern5:~$ cd >> .cpan/build/Catalyst-Plugin-Authorization-ACL-0.11-gPV1Pu/ >> >> websuche@intern5:~/.cpan/build/Catalyst-Plugin-Authorization-ACL-0.11-gPV1Pu$ >> make clean >> rm -f \ >> >> *.a core \ >> >> core.[0-9] >> blib/arch/auto/Catalyst/Plugin/Authorization/ACL/extralibs.all \ >> core.[0-9][0-9] ACL.bso \ >> >> pm_to_blib.ts core.[0-9][0-9][0-9][0-9] \ >> >> ACL.x \ >> >> perl tmon.out \ >> >> *.o pm_to_blib \ >> >> blib/arch/auto/Catalyst/Plugin/Authorization/ACL/extralibs.ld >> blibdirs.ts \ >> core.[0-9][0-9][0-9][0-9][0-9] *perl.core \ >> >> core.*perl.*.? Makefile.aperl \ >> >> perl ACL.def \ >> >> core.[0-9][0-9][0-9] mon.out \ >> >> libACL.def perlmain.c \ >> >> perl.exe so_locations \ >> >> ACL.exp >> >> rm -rf \ >> >> blib >> >> mv Makefile Makefile.old > /dev/null 2>&1 >> >> websuche@intern5:~/.cpan/build/Catalyst-Plugin-Authorization-ACL-0.11-gPV1Pu$ >> perl Makefile.PL >> Checking if your kit is complete... >> >> Looks good >> >> Writing Makefile for Catalyst::Plugin::Authorization::ACL >> >> websuche@intern5:~/.cpan/build/Catalyst-Plugin-Authorization-ACL-0.11-gPV1Pu$ >> make >> cp lib/Catalyst/Plugin/Authorization/ACL/Engine.pm >> blib/lib/Catalyst/Plugin/Authorization/ACL/Engine.pm >> cp lib/Catalyst/Plugin/Authorization/ACL.pm >> blib/lib/Catalyst/Plugin/Authorization/ACL.pm >> Manifying blib/man3/Catalyst::Plugin::Authorization::ACL::Engine.3 >> Manifying blib/man3/Catalyst::Plugin::Authorization::ACL.3 >> websuche@intern5:~/.cpan/build/Catalyst-Plugin-Authorization-ACL-0.11-gPV1Pu$ >> make test >> PERL_DL_NONLAZY=1 /home/websuche/perl5lib/bin/perl >> "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', >> 'blib/arch')" t/*.t >> t/01use.t .......... ok >> t/02pod.t .......... skipped: set TEST_POD to enable this test >> t/03podcoverage.t .. skipped: Test::Pod::Coverage 1.04 required >> t/live_app.t ....... Could not load class (ACLTestApp) because : Global >> symbol "$ALLOWED" requires explicit package name at t/lib/ACLTestApp.pm >> line 90. >> Global symbol "$DENIED" requires explicit package name at >> t/lib/ACLTestApp.pm line 90. >> Compilation failed in require at >> /home/websuche/perl5lib/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm >> line 129. >> at >> /home/websuche/perl5lib/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm >> line 114 >> Class::MOP::load_first_existing_class('ACLTestApp') called at >> /home/websuche/perl5lib/lib/site_perl/5.10.1/x86_64-linux/Class/MOP.pm >> line 135 >> Class::MOP::load_class('ACLTestApp') called at >> /home/websuche/perl5lib/lib/site_perl/5.10.1/Test/WWW/Mechanize/Catalyst.pm >> line 225 >> >> Test::WWW::Mechanize::Catalyst::import('Test::WWW::Mechanize::Catalyst', >> 'ACLTestApp') called at t/live_app.t line 21 >> main::BEGIN() called at t/live_app.t line 21 >> eval {...} called at t/live_app.t line 21 >> BEGIN failed--compilation aborted at t/live_app.t line 21. >> # Looks like your test exited with 255 before it could output anything. >> t/live_app.t ....... Dubious, test returned 255 (wstat 65280, 0xff00) >> Failed 97/97 subtests >> t/more_live_app.t .. [warn] Action methods (foo, bar, gorch, end, >> access_denied) found defined in your application class, ACLTestApp2. >> This is deprecated, please move them into a Root controller. >> Class Catalyst::Plugin::Authorization::ACL::Engine is calling the >> deprecated method >> Catalyst::Dispatcher::tree, >> this will be removed in Catalyst 5.9X >> t/more_live_app.t .. ok >> >> Test Summary Report >> ------------------- >> t/live_app.t (Wstat: 65280 Tests: 0 Failed: 0) >> Non-zero exit status: 255 >> Parse errors: Bad plan. You planned 97 tests but ran 0. >> Files=5, Tests=15, 1 wallclock secs ( 0.02 usr 0.01 sys + 1.29 cusr >> 0.09 csys = 1.41 CPU) >> Result: FAIL >> Failed 1/5 test programs. 0/15 subtests failed. >> make: *** [test_dynamic] Fehler 255 >> >> >> >> i added the user at the same day and build perl 5.10.1 without any >> specials from source. After that i installed AnyEvent, Catalyst and >> DBIx::Class and some other modules ... >> >> >> Rafael Kitover via RT schrieb:
>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > >>> >>> I had cmop from git, so not that... >>> >>> Could you please check that the installed modules: >>> >>> perldoc -l Catalyst::Plugin::Authorization::ACL::Engine >>> perldoc -l Catalyst::Plugin::Authorization::ACL >>> >>> match the ones in the distribution? >>> >>> On Sat, Sep 19, 2009 at 04:43:14AM -0400, Felix Antonius Wilhelm Ostmann via RT wrote:
>>>> Queue: Catalyst-Plugin-Authorization-ACL >>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > >>>> >>>> Perhaps there is something missing in the dependencies? This was a fresh >>>> system with userinstalled 5.10.1, only with some other modules already >>>> installed. There is a new Class::MOP from 15.09.2009, perhaps this >>>> breaks something? >>>> >>>> Rafael Kitover via RT schrieb:
>>>>> <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > >>>>> >>>>> Everything works for me with the latest Catalyst, Moose and CMOP: >>>>> >>>>> rkitover@hlagh ~/src/catalyst/acl % prove -l t >>>>> t/01use.t .......... ok >>>>> t/02pod.t .......... ok >>>>> t/03podcoverage.t .. ok >>>>> t/live_app.t ....... [warn] Action methods (restricted, default, access_denied, end) found defined in your application class, ACLTestApp. This is deprecated, please move them into a Root controller. >>>>> Class Catalyst::Plugin::Authorization::ACL::Engine is calling the deprecated method >>>>> Catalyst::Dispatcher::tree, >>>>> this will be removed in Catalyst 5.9X >>>>> t/live_app.t ....... ok >>>>> t/more_live_app.t .. [warn] Action methods (foo, bar, gorch, end, access_denied) found defined in your application class, ACLTestApp2. This is deprecated, please move them into a Root controller. >>>>> Class Catalyst::Plugin::Authorization::ACL::Engine is calling the deprecated method >>>>> Catalyst::Dispatcher::tree, >>>>> this will be removed in Catalyst 5.9X >>>>> t/more_live_app.t .. ok >>>>> All tests successful. >>>>> Files=5, Tests=116, 10 wallclock secs ( 0.20 usr 0.03 sys + 8.98 cusr 0.45 csys = 9.66 CPU) >>>>> Result: PASS >>>>> rkitover@hlagh ~/src/catalyst/acl % perl -I lib -MCatalyst::Plugin::Authorization::ACL::Engine='$DENIED,$ALLOWED' -le 'print $DENIED; print $ALLOWED' >>>>> Catalyst::Plugin::Authorization::ACL::Engine::Denied=HASH(0x86d7708) >>>>> Catalyst::Plugin::Authorization::ACL::Engine::Allowed=HASH(0x878ae20) >>>>> rkitover@hlagh ~/src/catalyst/acl % perl -MMoose\ 999 >>>>> Moose version 999 required--this is only version 0.91. >>>>> BEGIN failed--compilation aborted. >>>>> rkitover@hlagh ~/src/catalyst/acl % perl -MCatalyst\ 999 >>>>> Catalyst version 999 required--this is only version 5.80013. >>>>> BEGIN failed--compilation aborted. >>>>> >>>>> On Fri, Sep 18, 2009 at 09:01:20AM -0400, Felix Antonius Wilhelm Ostmann via RT wrote:
>>>>>> Queue: Catalyst-Plugin-Authorization-ACL >>>>>> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=49813 > >>>>>> >>>>>> ok, this is currently not working i think. >>>>>> use Catalyst::Plugin::Authorization::ACL::Engine qw/$DENIED $ALLOWED/; >>>>>> >>>>>> >>>>>> On Fr. 18. Sep. 2009, 08:59:27, Sadrak wrote:
>>>>>>> t/live_app.t ....... Could not load class (ACLTestApp) because : Global >>>>>>> symbol "$ALLOWED" requires explicit package name at t/lib/ACLTestApp.pm >>>>>>> line 90. >>>>>>> >>>>>>> Global symbol "$DENIED" requires explicit package name at >>>>>>> t/lib/ACLTestApp.pm line 90. >>>>>>> >>>>>>> >>>>>>> >>>>>>> i think there was a exportet $ALLOWED and $DENIED in 5.7 that has now >>>>>>> gone?! only the test will fail, the module "should" work.
>>>
>>
> >
Subject: Re: [rt.cpan.org #49813] Cannot install on a fresh system / Global symbol "$ALLOWED" requires explicit package name
Date: Sun, 20 Sep 2009 13:29:40 -0400
To: Felix Antonius Wilhelm Ostmann via RT <bug-Catalyst-Plugin-Authorization-ACL [...] rt.cpan.org>
From: Rafael Kitover <rkitover [...] io.com>
Try running that command in the directory of the unpacked dist. Also try doing an "uninstall Catalyst::Plugin::Authorization::ACL" from cpanp. On Sun, Sep 20, 2009 at 07:45:38AM -0400, Felix Antonius Wilhelm Ostmann via RT wrote: Show quoted text
> Queue: Catalyst-Plugin-Authorization-ACL > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=49813 > > > i had used the wrong perldoc from the systemperl, sorry for that :-/ > > > websuche@intern5:~/perl5lib$ which perl > /home/websuche/perl5lib/bin/perl > > > websuche@intern5:~/perl5lib$ perl -I lib > -MCatalyst::Plugin::Authorization::ACL::Engine='$DENIED,$ALLOWED' > -le 'print $DENIED; print $ALLOWED' > > > websuche@intern5:~/perl5lib$ perl -I lib > -MCatalyst::Plugin::Authorization::ACL::Engine='$DENIED,$ALLOWED' > -lwe 'print $DENIED; print $ALLOWED' > Name "main::DENIED" used only once: possible typo at -e line 1. > Name "main::ALLOWED" used only once: possible typo at -e line 1. > Use of uninitialized value $DENIED in print at -e line 1. > > Use of uninitialized value $ALLOWED in print at -e line 1.
We've put in a workaround in 0.12 that should resolve this issue. Also added test_requires to the Makefile.PL to make sure it wasn't caused by a missing dependency. -- Rafael