bug 2459: fix module depedency error blocking SIP2
authorGalen Charlton <galen.charlton@liblime.com>
Mon, 4 Aug 2008 15:15:23 +0000 (10:15 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 4 Aug 2008 20:26:54 +0000 (15:26 -0500)
commit0bf4cdba9a5432e3efa920da073f8f5fa7e6656d
treebeb463c3b0cbce2651c49cd10320e93de3074ecf
parent639a3cf88d25bbf6690ba2dd8a1ec0b37a708998
bug 2459: fix module depedency error blocking SIP2

Ror a poorly understood (by me) reason, use of 'use
UNIVERSAL' and 'use C4::Auth' in the SIP2 code is resulting
in a compilation error, thus blocking SIP2 from working.

The error (prior to this patch) could be reproduced as follows:

cd C4/SIP
perl -I. -wc Sip/MsgType.pm
"get_session" is not exported by the C4::Auth module
Can't continue after import errors at /home/gmc/koha/dev/C4/VirtualShelves.pm
line 51
BEGIN failed--compilation aborted at /home/gmc/koha/dev/C4/VirtualShelves.pm
line 51.
Compilation failed in require at /home/gmc/koha/dev/C4/Auth.pm line 34.
BEGIN failed--compilation aborted at /home/gmc/koha/dev/C4/Auth.pm line 34.
Compilation failed in require at Sip/MsgType.pm line 21.
BEGIN failed--compilation aborted at Sip/MsgType.pm line 21.

or more minimally

perl -ce 'use UNIVERSAL; use C4::Auth;'

This patch works around the problem by making C4::Auth
and C4::VirtualShelves not import any symbols
from each other.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Auth.pm
C4/VirtualShelves.pm