CentOS Bug Tracker
CentOS Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004987CentOS-5perlpublic2011-07-19 22:452011-07-20 14:25
Reporterclockworksoldier 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionnot a bug 
PlatformOSOS Version
Product Version5.6 
Target VersionFixed in Version 
Summary0004987: perl-5.8.8-32.el5_6.3.i386 -- Update -- broken -> Scalar::Util::weaken gone
DescriptionMost recent perl update (I got it 2am 19th) aparrently removed Scalar::Util::weaken.

Many packages depend on this module like Memcached/Fast.pm.

Subtle failures ensued :

Undefined subroutine &Scalar::Util::weaken called at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Cache/Memcached/Fast.pm line 591.\nCompilation failed in require ...

Reproduce easily every time with perl-5.8.8-32.el5_6.3.i386 by trying to install :

perl -MCPAN -e "install Task::Weaken"

subsequently fails :

    A CPAN module critically requires a function
    (Scalar::Util::weaken) that should exist in your
    Scalar::Util module but doesn't.

    This probably happened because you are using a Perl
    provided by a binary package from a vendor, and this
    vendor has packaged Perl incorrectly.

.....
---8<---
Additional InformationFull Transcript of testcase(s) attached in txtfile.
TagsNo tags attached.
Attached Filestxt file icon centos-5.6-perl-scalar_util_weaken-error-transcript.txt [^] (5,586 bytes) 2011-07-19 22:45 [Show Content]

- Relationships

-  Notes
(0013013)
wolfy (developer)
2011-07-20 10:50

I could not reproduce on a freshly installed C5.6/x86_64

[root@pc68 ~]# rpm -q perl --qf "%{name}-%{version}.%{release}.%{arch}\n"
perl-5.8.8.32.el5_6.3.x86_64
perl-5.8.8.32.el5_6.3.i386

[root@pc68 ~]# perl -MCPAN -e "install Task::Weaken"
[..]
Running make for A/AD/ADAMK/Task-Weaken-1.04.tar.gz
  Is already unwrapped into directory /root/.cpan/build/Task-Weaken-1.04

  CPAN.pm: Going to build A/AD/ADAMK/Task-Weaken-1.04.tar.gz

cp lib/Task/Weaken.pm blib/lib/Task/Weaken.pm
Manifying blib/man3/Task::Weaken.3pm
  /usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/01_compile....ok
t/02_weaken.....ok
All tests successful.
Files=2, Tests=21, 0 wallclock secs ( 0.03 cusr + 0.01 csys = 0.04 CPU)
  /usr/bin/make test -- OK
Running make install
Installing /usr/lib/perl5/site_perl/5.8.8/Task/Weaken.pm
Installing /usr/share/man/man3/Task::Weaken.3pm
Appending installation info to /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod
  /usr/bin/make install -- OK
(0013014)
range (administrator)
2011-07-20 10:56

Same here.
(0013015)
clockworksoldier (reporter)
2011-07-20 12:49

Sorry. My problem Seems to be related to a thrid party package. Very Sorry. ;-(

Comparing my workstation [fty] where Moose was previously fiddled with, with a pretty bare server [chewbag] - the cause becomes clear.

[fty ~]# cat tt.pl
##!/usr/bin/perl

    use Scalar::Util qw/weaken/;
      my $a;

    {
        my $b = "some very big thing";
        $a = \$b;

        weaken($a); # Make $a a weak reference
    }

    # $b has gone out of scope, since $a was a weak reference
    # $b can now be cleaned up and $a is set to undef


[fty ~]# perl ./tt.pl
weaken is only available with the XS version of Scalar::Util at ./tt.pl line 3
BEGIN failed--compilation aborted at ./tt.pl line 3.


[fty ~]# rpm -q perl-Task-Weaken --qf "%{name}-%{version}.%{release}.%{arch}\n"
perl-Task-Weaken-1.03.1.el5.rf.noarch
[fty ~]# ### this is broken

[fty ~]# rpm -qi perl-Task-Weaken
Name : perl-Task-Weaken Relocations: (not relocatable)
Version : 1.03 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ [^]
Release : 1.el5.rf Build Date: Thu 18 Jun 2009 04:59:44 BST
Install Date: Fri 11 Feb 2011 16:48:42 GMT Build Host: lisse.hasselt.wieers.com
Group : Applications/CPAN Source RPM: perl-Task-Weaken-1.03-1.el5.rf.src.rpm
Size : 29721 License: Artistic/GPL
Signature : DSA/SHA1, Fri 19 Jun 2009 02:21:08 BST, Key ID a20e52146b8d79e6
Packager : Dag Wieers <dag@wieers.com>
URL : http://search.cpan.org/dist/Task-Weaken/ [^]
Summary : Ensure that a platform has weaken support
Description :
Ensure that a platform has weaken support.

After errant package is removed [fty] and a rollback to perl-5.8.8-32.el5_5.2.i386.rpm then a subsequent upgrade - fault remains.

-----------------------------

[chewbag ~]# rpm -q perl-Task-Weaken --qf "%{name}-%{version}.%{release}.%{arch}\n"
package perl-Task-Weaken is not installed
[chewbag ~]# ### this box is OK


Sorry, but thanks for yout time (I will try to be less excited next time).

Please close this ticket, because it is not a bug as I had initially thought.
(0013016)
herrold (reporter)
2011-07-20 14:25

close per reporter request, as mis-filed

- Issue History
Date Modified Username Field Change
2011-07-19 22:45 clockworksoldier New Issue
2011-07-19 22:45 clockworksoldier File Added: centos-5.6-perl-scalar_util_weaken-error-transcript.txt
2011-07-20 10:50 wolfy Note Added: 0013013
2011-07-20 10:56 range Note Added: 0013014
2011-07-20 12:49 clockworksoldier Note Added: 0013015
2011-07-20 14:25 herrold Note Added: 0013016
2011-07-20 14:25 herrold Status new => closed
2011-07-20 14:25 herrold Resolution open => not a bug


Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker