git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Test suite failures due to Error.pm issues.
@ 2008-04-08 22:18 carbonated beverage
  2008-04-09  8:34 ` Rafael Garcia-Suarez
  0 siblings, 1 reply; 3+ messages in thread
From: carbonated beverage @ 2008-04-08 22:18 UTC (permalink / raw)
  To: git

Hi all,

I was trying to track down the cause of massive test failures in make
test, and running the failing entries via -v showed the following popping
up over and over again:

Can't locate Error.pm in @INC (@INC contains: /home/ramune/src/git/git/t/../perl/blib/lib /home/ramune/src/git/git/t/../perl/blib/arch/auto/Git /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8
 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/ramune/src/git/git/t/../perl/blib/lib/Git.pm line 93.^
BEGIN failed--compilation aborted at /home/ramune/src/git/git/t/../perl/blib/lib/Git.pm line 93.^
Compilation failed in require at /home/ramune/src/git/git/t/../git-add--interactive line 5.^
BEGIN failed--compilation aborted at /home/ramune/src/git/git/t/../git-add--interactive line 5.^

Since git has private-Error.pm file, shouldn't that be picked up by the
make test invocation?

-- DN
Daniel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Test suite failures due to Error.pm issues.
  2008-04-08 22:18 Test suite failures due to Error.pm issues carbonated beverage
@ 2008-04-09  8:34 ` Rafael Garcia-Suarez
  2008-04-13  3:04   ` carbonated beverage
  0 siblings, 1 reply; 3+ messages in thread
From: Rafael Garcia-Suarez @ 2008-04-09  8:34 UTC (permalink / raw)
  To: carbonated beverage; +Cc: git

On 09/04/2008, carbonated beverage <ramune@net-ronin.org> wrote:
> Hi all,
>
>  I was trying to track down the cause of massive test failures in make
>  test, and running the failing entries via -v showed the following popping
>  up over and over again:
>
>  Can't locate Error.pm in @INC (@INC contains: /home/ramune/src/git/git/t/../perl/blib/lib /home/ramune/src/git/git/t/../perl/blib/arch/auto/Git /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8
>   /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/ramune/src/git/git/t/../perl/blib/lib/Git.pm line 93.^
>  BEGIN failed--compilation aborted at /home/ramune/src/git/git/t/../perl/blib/lib/Git.pm line 93.^
>  Compilation failed in require at /home/ramune/src/git/git/t/../git-add--interactive line 5.^
>  BEGIN failed--compilation aborted at /home/ramune/src/git/git/t/../git-add--interactive line 5.^
>
>  Since git has private-Error.pm file, shouldn't that be picked up by the
>  make test invocation?

The private Error file is not installed if perl/Makefile.PL detects
than an Error.pm recent enough on your system. Do you actually have
perl/blib/lib/Error.pm ? Try to run (cd perl; make clean; cd ..; make)
and try the tests again.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Test suite failures due to Error.pm issues.
  2008-04-09  8:34 ` Rafael Garcia-Suarez
@ 2008-04-13  3:04   ` carbonated beverage
  0 siblings, 0 replies; 3+ messages in thread
From: carbonated beverage @ 2008-04-13  3:04 UTC (permalink / raw)
  To: Rafael Garcia-Suarez; +Cc: git

(Was on the road for work, so couldn't reply till now)

> The private Error file is not installed if perl/Makefile.PL detects
> than an Error.pm recent enough on your system. Do you actually have
> perl/blib/lib/Error.pm ? Try to run (cd perl; make clean; cd ..; make)
> and try the tests again.

ramune/lycaeum:git: locate Error.pm
/usr/local/stow/git-1.5.4.5/share/perl/5.8.8/Error.pm
/usr/share/perl5/Debconf/Element/Dialog/Error.pm
/usr/share/perl5/Debconf/Element/Editor/Error.pm
/usr/share/perl5/Debconf/Element/Gnome/Error.pm
/usr/share/perl5/Debconf/Element/Kde/Error.pm
/usr/share/perl5/Debconf/Element/Noninteractive/Error.pm
/usr/share/perl5/Debconf/Element/Teletype/Error.pm
/usr/share/perl5/Debconf/Element/Web/Error.pm
ramune/lycaeum:git: 

So... there's Error.pm files around, but I remember now having to copy it
over for previous versions of git.  Reporting it slipped my mind until now
(sorry).

After the:
 cd perl
 make clean
 cd ..
 make -j4
 make test

when git 1.5.4.5 is still in /usr/local/stow/git-1.5.4.5 and stow'd to
/usr/local, it passes.  So it looks like it was picking up the previous
Error.pm installed in the git directory from the previous installation.

So when it was stow -D'd, and the new git installed and stow'd, the Error.pm
went away (also, when the old git was stow -D'd before running the test).

Not sure what the right way to handle this is.  I may just make a note to
always copy over Error.pm, if it won't change in the git source.

-- DN
Daniel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-13  3:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-08 22:18 Test suite failures due to Error.pm issues carbonated beverage
2008-04-09  8:34 ` Rafael Garcia-Suarez
2008-04-13  3:04   ` carbonated beverage

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).