Skip Menu |

This queue is for tickets about the Mac-Carbon CPAN distribution.

Report information
The Basics
Id: 30374
Status: resolved
Priority: 0/
Queue: Mac-Carbon

People
Owner: Nobody in particular
Requestors: markemer [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.77
Fixed in: (no value)



Subject: Mac::Carbon fails tests on Leopard
Mac Carbon fails to test on Leopard, Perl 5.8.8 with this message: AppleEvents/t/event....ok 1/305 Too many arguments to AEBuildParameters() at AppleEvents/t/event.t line 162, <DATA> line 1. # Looks like you planned 305 tests but only ran 145. # Looks like your test died just after 145. All other tests seem to work ok
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #30374] Mac::Carbon fails tests on Leopard
Date: Tue, 30 Oct 2007 15:09:51 -0700
To: bug-Mac-Carbon [...] rt.cpan.org
From: Chris Nandor <cnandor [...] cpan.org>
That's weird, since I think Mac::Carbon is included with Leopard, and is built for it. I'll look into it. At 17:57 -0400 2007.10.30, Mark Anderson via RT wrote: Show quoted text
>Tue Oct 30 17:57:21 2007: Request 30374 was acted upon. >Transaction: Ticket created by MARKEMER > Queue: Mac-Carbon > Subject: Mac::Carbon fails tests on Leopard > Broken in: 0.77 > Severity: Critical > Owner: Nobody > Requestors: MARKEMER@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=30374 > > > >Mac Carbon fails to test on Leopard, Perl 5.8.8 with this message: >AppleEvents/t/event....ok 1/305 >Too many arguments to AEBuildParameters() at AppleEvents/t/event.t line >162, <DATA> line 1. ># Looks like you planned 305 tests but only ran 145. ># Looks like your test died just after 145. > >All other tests seem to work ok
-- Chris Nandor pudge@pobox.com http://pudge.net/ Slashdot / SourceForge pudge@slashdot.org http://slashdot.org/
From: essuu [...] ourshack.com
Hi there, On Tue Oct 30 18:12:24 2007, CNANDOR wrote: Show quoted text
> That's weird, since I think Mac::Carbon is included with Leopard, and is > built for it. > > I'll look into it.
Just as an update to this ticket, I'm seeing the same problem trying to install Mac::Carbon under the shiny new perl5.10.0. It would be great to see this fixed so that 5.10.0 is fully usable on Leopard. Just sorry I have no idea how to fix it. Simon.
From: jeff [...] zeroclue.com
For what it's worth, the commented out $fmt on line 159 of AppleEvents/t/event.t works fine. The diff is attached. $ prove -b AppleEvents/t/event.t AppleEvents/t/event....ok 33/305 skipped: various reasons All tests successful, 33 subtests skipped. Files=1, Tests=305, 0 wallclock secs ( 0.14 cusr + 0.02 csys = 0.16 CPU) $ perl -v This is perl, v5.10.0 built for darwin-2level
--- ../Mac-Carbon-0.77/AppleEvents/t/event.t 2006-06-21 20:23:25.000000000 -0700 +++ AppleEvents/t/event.t 2008-02-21 13:26:33.000000000 -0800 @@ -155,8 +155,8 @@ } #diag($filedesc_print); - my $fmt = "'----':'obj '{ 'form':'prop', 'want':type(prop), 'from':$filedesc_print, 'seld':type(pnam) }"; - # $fmt = q"'----':'obj '{ 'form':prop, 'want':type(prop), 'from':'obj '{ 'want':type(docf), 'from':'obj '{ 'want':type(cfol), 'from':'obj '{ 'want':type(cobj), 'from':'obj '{ 'want':type(prop), 'from':'null'(), 'form':prop, 'seld':type(sdsk) }, 'form':name, 'seld':'utxt'($0070007200690076006100740065$) }, 'form':name, 'seld':'utxt'($0074006D0070$) }, 'form':name, 'seld':'TEXT'(@) }, 'seld':type(pnam) }"; + #my $fmt = "'----':'obj '{ 'form':'prop', 'want':type(prop), 'from':$filedesc_print, 'seld':type(pnam) }"; + my $fmt = q"'----':'obj '{ 'form':prop, 'want':type(prop), 'from':'obj '{ 'want':type(docf), 'from':'obj '{ 'want':type(cfol), 'from':'obj '{ 'want':type(cobj), 'from':'obj '{ 'want':type(prop), 'from':'null'(), 'form':prop, 'seld':type(sdsk) }, 'form':name, 'seld':'utxt'($0070007200690076006100740065$) }, 'form':name, 'seld':'utxt'($0074006D0070$) }, 'form':name, 'seld':'TEXT'(@) }, 'seld':type(pnam) }"; #diag($fmt); ok(AEBuildParameters($event, $fmt, 'mac-carbon-aeevent-test'), 'AEBuildParameters');
From: tmb [...] nanite.net
On Thu Feb 21 16:33:23 2008, jeff@zeroclue.com wrote: Show quoted text
> > > For what it's worth, the commented out $fmt on line 159 of > AppleEvents/t/event.t works fine. The diff is attached. > > $ prove -b AppleEvents/t/event.t > AppleEvents/t/event....ok > > 33/305 skipped: various reasons > All tests successful, 33 subtests skipped. > Files=1, Tests=305, 0 wallclock secs ( 0.14 cusr + 0.02 csys = 0.16 CPU) > > $ perl -v > > This is perl, v5.10.0 built for darwin-2level
Just confirming that Jeff's patch / workaround worked for me as well. Uncommenting line 159 makes all the tests successful and makes it build properly on MacOS X 10.5.6, Intel, perl 5.10.0. I hit this issue while trying to install an updated Bundle::CPAN, which required File::HomeDir (more specifically File::HomeDir::Darwin), which required Mac::Files which required Mac::Carbon. It would be great to see this patched and released to CPAN so others won't have any issues building this module on MacOS X 10.5.
Subject: Re: [rt.cpan.org #30374] Mac::Carbon fails tests on Leopard
Date: Tue, 23 Dec 2008 12:33:29 -0800
To: bug-Mac-Carbon [...] rt.cpan.org
From: Chris Nandor <cnandor [...] cpan.org>
Yeah, I need to do that, and hope to do it soon. Thanks for the ping. On Dec 23, 2008, at 12:29, Mason Brown via RT wrote: Show quoted text
> It would be great to see this patched and released to CPAN so others > won't have any issues > building this module on MacOS X 10.5.
-- Chris Nandor pudge@pobox.com http://pudge.net/ Slashdot / SourceForge pudge@slashdot.org http://slashdot.org/
Jeff's workaround makes the test happy in Leopard/Intel/5.8.8 as well.
Just in case you were wondering what would happen under a *ahem* more mature version of Mac OS: Under Mac OS 10.3.9 (Panther) PPC, AppleEvents/t/events.t passes both _with_ and _without_ the suggested modification, under Perls 5.10.0 and 5.8.1 RC3 (which Apple shipped with this OS). Is there enough interest in results under 10.2 (Jaguar) that I should load a machine and try? I can't go farther back than that, and if you want 10.4 (Tiger) say so, because that's what I would wipe to try Jaguar. Tom Wyant
Can you please release a new version with this patch applied? -- Best regards, Ruslan.
From: casey [...] shobe.info
On Sat Jul 25 07:48:33 2009, RUZ wrote: Show quoted text
> Can you please release a new version with this patch applied?
This being broken with default cpan settings results in a cpan that won't even start without manually removing stuff that requires it from the library directory. Why has this not been fixed in such a long time even though the fix is so simple?