Bug 182488
| Summary: | perl-Sub-Uplevel: misbehaves in perl 5.8.8 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jose Pedro Oliveira <jose.p.oliveira.oss> |
| Component: | perl-Sub-Uplevel | Assignee: | Jose Pedro Oliveira <jose.p.oliveira.oss> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | extras-qa, wtogami |
| 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: | 2006-03-02 18:37:53 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
Jose Pedro Oliveira
2006-02-22 20:54:23 UTC
Sub-Uplevel-0.09/lib/Sub/Uplevel.pm patch
-----------------------------------------
@@ -120,13 +120,14 @@
# Yes, we need a C style for loop here since $height changes
for( my $up = 1; $up <= $height + 1; $up++ ) {
my @caller = CORE::caller($up);
+ next unless @caller;
if( $caller[0] eq __PACKAGE__ ) {
$height++;
$height += $Up_Frames unless $saw_uplevel;
$saw_uplevel = 1;
}
}
With the above patch (already available in the CVS devel branch) applied I was
able to eliminate the warnings and able to build successfully perl-Test-Warn,
perl-Test-Exception and perl-WWW-Mechanize.
But I am not sure if it is the best solution for the problem ....
Any way, feedback would be appreciated.
jpo
PS - Patch in CPAN ticket 17637
http://rt.cpan.org/Public/Bug/Display.html?id=17637
Today a new working patch appeared in the CPAN ticket system: http://rt.cpan.org/Public/Bug/Display.html?id=17807 Rafael Garcia-Suarez forwarded us to one of the bug fixes mentioned in the perl 5.8.8 release notes (perl588delta): http://search.cpan.org/dist/perl/pod/perl588delta.pod#no_warnings_%27category%27_works_correctly_with_-w Source: http://www.redhat.com/archives/fedora-perl-devel-list/2006-February/msg00038.html From the perl 5.8.8 delta page ========== ... no warnings 'category' works correctly with -w ---------------------------------------------- Previously when running with warnings enabled globally via -w, selective disabling of specific warning categories would actually turn off all warnings. This is now fixed; now no warnings 'io'; will only turn off warnings in the io class. Previously it would erroneously turn off all warnings. This bug fix may cause some programs to start correctly issuing warnings. ... ========== Closing ticket: perl-Sub-Uplevel-0.09-4.fc5 is already in the Fedora Extra's mirrors (with the patch from comment #1 applied). |