Bug 1106210

Summary: perl-Switch: FTBFS: Not compatible with Filter-1.50
Product: [Fedora] Fedora Reporter: Dennis Gilmore <dennis>
Component: perl-SwitchAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: i, lav, mojbordel, olivier.lahaye1, perl-devel, ppisar, sreekumar.r84, tcallawa
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: perl-Switch-2.17-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-09 22:12:39 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:
Bug Depends On:    
Bug Blocks: 1105908    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Dennis Gilmore 2014-06-09 03:58:27 UTC
Your package perl-Switch failed to build from source in current rawhide.

http://koji.fedoraproject.org/koji/taskinfo?taskID=6958499

For details on mass rebuild see https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

Comment 1 Dennis Gilmore 2014-06-09 03:58:29 UTC
Created attachment 904192 [details]
build.log

Comment 2 Dennis Gilmore 2014-06-09 03:58:31 UTC
Created attachment 904193 [details]
root.log

Comment 3 Dennis Gilmore 2014-06-09 03:58:32 UTC
Created attachment 904194 [details]
state.log

Comment 4 Tom "spot" Callaway 2014-06-10 17:20:21 UTC
Fixed in perl-Switch-2.17-1.fc21. A change in perl-Filter-1.50 caused the FTBFS.

Comment 5 Petr Pisar 2014-06-26 08:57:38 UTC
I upgraded the perl-Filter to 1.50 in all Fedoras because the reblessing was a bug. I think the Switch-2.17-Filter-1.50.patch should be applied in F20 and 19 too <https://bugzilla.redhat.com/show_bug.cgi?id=1105167#c6>.

BTW, I cannot see the patch in the upstream bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Switch>. Is something wrong with the patch?

Comment 6 Olivier LAHAYE 2014-06-26 12:41:28 UTC
I have the problem on fc20
perl -d

Loading DB routines from perl5db.pl version 1.39_10
Editor support available.

Enter h or 'h h' for help, or 'man perldebug' for more help.

Debugged program terminated.  Use q to quit or R to restart,
use o inhibit_exit to avoid stopping after program termination,
h q, h R or h o to get additional info.
  DB<1> use Switch;
Source filters apply only to byte streams at /usr/lib64/perl5/vendor_perl/Filter/Util/Call.pm line 56.
 at /usr/lib64/perl5/vendor_perl/Filter/Util/Call.pm line 56.
        Filter::Util::Call::filter_add('HASH(0x184c380)') called at /usr/share/perl5/vendor_perl/Switch.pm line 29
        Switch::import('Switch') called at (eval 6)[/usr/share/perl5/perl5db.pl:732] line 2
        main::BEGIN() called at (eval 6)[/usr/share/perl5/perl5db.pl:732] line 2
        eval {...} called at (eval 6)[/usr/share/perl5/perl5db.pl:732] line 2
        eval 'no strict; ($@, $!, $^E, $,, $/, $\\, $^W) = @DB::saved;package main; $^D = $^D | $DB::db_stop;
use Switch;;
' called at /usr/share/perl5/perl5db.pl line 732
        DB::eval called at /usr/share/perl5/perl5db.pl line 3090
        DB::DB called at /usr/share/perl5/perl5db.pl line 10412
        DB::fake::at_exit() called at /usr/share/perl5/perl5db.pl line 9983
        DB::END() called at (eval 6)[/usr/share/perl5/perl5db.pl:732] line 2
        eval {...} called at (eval 6)[/usr/share/perl5/perl5db.pl:732] line 2
BEGIN failed--compilation aborted at (eval 6)[/usr/share/perl5/perl5db.pl:732] line 2.
 at (eval 6)[/usr/share/perl5/perl5db.pl:732] line 2.
        eval 'no strict; ($@, $!, $^E, $,, $/, $\\, $^W) = @DB::saved;package main; $^D = $^D | $DB::db_stop;
use Switch;;
' called at /usr/share/perl5/perl5db.pl line 732
        DB::eval called at /usr/share/perl5/perl5db.pl line 3090
        DB::DB called at /usr/share/perl5/perl5db.pl line 10412
        DB::fake::at_exit() called at /usr/share/perl5/perl5db.pl line 9983
        DB::END() called at (eval 6)[/usr/share/perl5/perl5db.pl:732] line 2
        eval {...} called at (eval 6)[/usr/share/perl5/perl5db.pl:732] line 2

  DB<2>

Comment 7 Olivier LAHAYE 2014-06-26 12:42:52 UTC
forgot the version when the problem can be seen:
- perl-Filter-1.50-1.fc20.x86_64
- perl-Switch-2.16-8.fc20.noarch
- perl-5.18.2-289.fc20.x86_64

Comment 8 Tom "spot" Callaway 2014-06-26 13:38:26 UTC
Nah, I think the patch is fine, I just forgot to submit it upstream. I've just done that:

https://rt.cpan.org/Public/Bug/Display.html?id=96736

I'll go ahead and build for f19/f20.

Comment 9 Petr Pisar 2014-06-26 13:50:02 UTC
(In reply to Olivier LAHAYE from comment #6)
> I have the problem on fc20
> perl -d
> 
> Loading DB routines from perl5db.pl version 1.39_10
> Editor support available.
> 
> Enter h or 'h h' for help, or 'man perldebug' for more help.
> 
> Debugged program terminated.  Use q to quit or R to restart,
> use o inhibit_exit to avoid stopping after program termination,
> h q, h R or h o to get additional info.
>   DB<1> use Switch;
> Source filters apply only to byte streams at
> /usr/lib64/perl5/vendor_perl/Filter/Util/Call.pm line 56.
>  at /usr/lib64/perl5/vendor_perl/Filter/Util/Call.pm line 56.
>         Filter::Util::Call::filter_add('HASH(0x184c380)') called at
> /usr/share/perl5/vendor_perl/Switch.pm line 29
>         Switch::import('Switch') called at (eval
> 6)[/usr/share/perl5/perl5db.pl:732] line 2
>         main::BEGIN() called at (eval 6)[/usr/share/perl5/perl5db.pl:732]
> line 2
[...]

I think this is a different bug in perl debugger or perl filters independent of Switch version. This kind of warning has been introduced in Perl 5.16. Please report a new bug report. However I worry this a principal limitation of perl debugger. Asking perl developers (using perlbug tool or <https://rt.perl.org/Public/>) would be the best approach in this case.

Comment 10 Fedora Update System 2014-06-26 13:56:53 UTC
perl-Switch-2.17-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/perl-Switch-2.17-1.fc19

Comment 11 Fedora Update System 2014-06-26 13:57:02 UTC
perl-Switch-2.17-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/perl-Switch-2.17-1.fc20

Comment 12 Petr Pisar 2014-06-26 14:34:32 UTC
*** Bug 1113638 has been marked as a duplicate of this bug. ***

Comment 13 Fedora Update System 2014-06-27 02:20:34 UTC
Package perl-Switch-2.17-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing perl-Switch-2.17-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7761/perl-Switch-2.17-1.fc19
then log in and leave karma (feedback).

Comment 14 Marek 2014-07-10 08:24:55 UTC
I was hit by this bug in F20 x86_64:

$ rpm -q perl-Switch perl-Filter
perl-Switch-2.16-8.fc20.noarch
perl-Filter-1.50-1.fc20.x86_64

$ perl -e 'use Switch;'
Can't call method "filter" on unblessed reference at -e line 2.
$

I applied the perl-Switch-2.17-1.fc20 update from updates-testing and am happy to report that it solved my issue.

Comment 15 Christopher Meng 2014-08-21 07:47:12 UTC
Can someone put this in overrides / push it to stable?

I'm hitting this issue while building libdom's %check.

Comment 16 Fedora Update System 2014-09-09 22:12:39 UTC
perl-Switch-2.17-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2014-09-09 22:14:21 UTC
perl-Switch-2.17-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.