[Koha-bugs] [Bug 8798] Add the use of DBIx::Class

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Sep 22 01:54:17 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8798

--- Comment #23 from wajasu <matted-34813 at mypacks.net> ---
Investigated why I get the exception as described in comment #5.

I was able to get the test to run with cpanm with a local::lib running on my
hostOS(archlinux).  I compared the DBIx::Class::Exception between my archlinux
cpan install (possible metacpan), and my koha test debian VM.

Undefined subroutine &DBIx::Class::Exception::blessed called at
/usr/share/perl5/DBIx/Class/Exception.pm line 55

In that file the code is different:
debian code with libdbix-class-schema-loader-perl:
    # Don't re-encapsulate exception objects of any kind
    die $msg if blessed($msg);
my archlinux host cpanm local::lib  has:
    # Don't re-encapsulate exception objects of any kind
    die $msg if ref($msg);

koha at biblio:/usr/share/perl5/DBIx$ grep VER *       DEBIAN SQUEEZE VM
Class.pm:$VERSION = '0.08123';   <-- debian squeeze 
kohaclone/local/lib/perl5/DBIx$ grep VER *          ARCHLINUX hostOS
Class.pm:$VERSION = '0.08200';

The reason I am investigating this is if squeeze's package has an older .deb,
it may break folks upgrading, just by installing the package and our upgraded
code. Note: Also, my hostOS has a much newer perl 5.16.1.

Maybe its my environment's fault, where I pull my deb packages:
(OR do i need to do ann update in some way) 
Here is my /etc/apt/sources.list
# deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official amd64 NETINST Binary-1
20120512-20:40]/ squeeze main

#deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official amd64 NETINST Binary-1
20120512-20:40]/ squeeze main

deb http://ftp.gtlib.gatech.edu/debian/ squeeze main
deb-src http://ftp.gtlib.gatech.edu/debian/ squeeze main

deb http://debian.koha-community.org/koha squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

# squeeze-updates, previously known as 'volatile'
deb http://ftp.gtlib.gatech.edu/debian/ squeeze-updates main
deb-src http://ftp.gtlib.gatech.edu/debian/ squeeze-updates main

I'm documenting this for all future DBIx related deployment.

Also, I had done a dbicdump on my archlinux with the newer version and it
generated  Koha::Schema::ActionLog.pm
Maybe yours was generated with the debian pkg version.

wajasu

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list