Bug 461285

Summary: Any use of Class::MethodMaker spews pages of warnings to console
Product: [Fedora] Fedora Reporter: Daniel Berrangé <berrange>
Component: perl-Class-MethodMakerAssignee: Dennis Gregorovic <dgregor>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: perl-devel, rc040203
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-25 00:22:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Berrangé 2008-09-05 16:12:44 UTC
Description of problem:
Since the upgrade to perl 5.10, any application which uses Class::MethodMaker spews pages of warnings to stderr. This makes such apps essentially unusable if they're console based

See this demo:

# cat > cmm.pl <<EOF
package Foo;

use Class::MethodMaker
    new_with_init => "new",
    get_set => [qw(bar)];

sub init {
    my $self = shift;

    $self->bar("hello");
}

package main;

my $foo = Foo->new;

print $foo->bar, "\n";

$foo->bar("world");

print $foo->bar, "\n";
EOF



Version-Release number of selected component (if applicable):
perl-5.10.0-31.fc9.i386
perl-Class-MethodMaker-2.11-1.fc9.i386


How reproducible:
Always

Steps to Reproduce:
1. perl cmm.pl
2.
3.
  
Actual results:
Name " Foo::bar" used only once: possible typo at /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Class/MethodMaker/Engine.pm line 781.
Name " Foo::get_bar" used only once: possible typo at /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Class/MethodMaker/Engine.pm line 781.
Name " Foo::new" used only once: possible typo at /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Class/MethodMaker/Engine.pm line 781.
Name " Foo::bar_reset" used only once: possible typo at /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Class/MethodMaker/Engine.pm line 781.
Name " Foo::bar_isset" used only once: possible typo at /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Class/MethodMaker/Engine.pm line 781.
Name " Foo::set_bar" used only once: possible typo at /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Class/MethodMaker/Engine.pm line 781.
Name " Foo::clear_bar" used only once: possible typo at /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi/Class/MethodMaker/Engine.pm line 781.
hello
world

Expected results:
hello
world

Additional info:

Comment 1 Daniel Berrangé 2008-09-05 16:14:22 UTC
This is tracked upstream in:

http://rt.cpan.org/Public/Bug/Display.html?id=35840


which indicates it is fixed in version 2.12 of Class::MethodMaker.  I'd request that Fedora just upgrade to 2.12, since the diff from 2.11 to 2.12 contains only the fix for this bug

http://search.cpan.org/diff?from=Class-MethodMaker-2.11&to=Class-MethodMaker-2.12

Comment 2 Ralf Corsepius 2008-09-05 16:32:37 UTC
OK, now the maintainer of this package still seem to be AWOL, 
I'll look into this and try to push a updates to rawhide rsp. testing.

Comment 3 Ralf Corsepius 2008-09-05 16:35:47 UTC
OK, you were faster, I will stop working on this and leave this issue to you.

Comment 4 Daniel Berrangé 2008-09-05 16:40:26 UTC
Yep, just spoke to the maintainer directly after I noticed he's a RH guy and he said to go ahead & fix it...

Comment 5 Ralf Corsepius 2008-09-05 17:03:49 UTC
As he has ignored this package for years, I recommend him to abandon maintainership.

Comment 6 Fedora Update System 2008-09-05 17:34:55 UTC
perl-Class-MethodMaker-2.12-1.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/perl-Class-MethodMaker-2.12-1.fc9

Comment 7 Dennis Gregorovic 2008-09-05 18:05:53 UTC
I've gone and released my ownership of this package in the pkgdb.  I don't use this library anymore, so it doesn't make sense for me to be the maintainer.

Comment 8 Daniel Berrangé 2008-09-05 18:31:43 UTC
I grabbed ownership of F8/9/rawhide, but not EPEL. Ralf if you or anyone you know wants to co-maintain just request it in pkgdb & i'll approve

Comment 9 Ralf Corsepius 2008-09-09 06:54:42 UTC
(In reply to comment #8)
Thanks, I just applied for co-maintainership.

Comment 10 Fedora Update System 2008-09-11 17:13:39 UTC
perl-Class-MethodMaker-2.12-1.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update perl-Class-MethodMaker'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-7956

Comment 11 Fedora Update System 2008-09-25 00:22:52 UTC
perl-Class-MethodMaker-2.12-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.