Package: libvcp-perl
Version: 0.9-20050110-1
Severity: important
User: [EMAIL PROTECTED]
Usertags: perl-5.10-ftbfs

This package fails to build with Perl 5.10.0 (currently in experimental.)

I looked into this a bit, and the reason is a change in Getopt::Long
between 2.35 (bundled with Perl 5.8.8) and 2.37 (bundled with Perl
5.10.0). The argument given to a user callback function is now a
'Getopt::Long::CallBack' object that is overloaded to return the option
name when stringified for backwards compatibility, but it's always 0
when numified.

In this case, bin/gentrevml is using the argument of which() in a numeric
context, so the '--cvs' argument becomes false when it used to be true.

>From the build log:

/usr/bin/make
make[1]: Entering directory `/build/niko/libvcp-perl-0.9-20050110'
cp lib/VCP/Dest/branch_diagram.pm blib/lib/VCP/Dest/branch_diagram.pm
[...]
cp bin/vcp blib/script/vcp
/usr/bin/perl -Iinc "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/vcp
/usr/bin/perl -Iinc  "-Iblib/arch" "-Iinc" "-Iblib/lib" "-I/usr/lib/perl/5.10" 
"-I/usr/share/perl/5.10" \
        bin/gentrevml --cvs --batch 0 --no-big-files > 
t/test-cvs-in-0-no-big-files.revml
  NAME
    gentrevml - Generate a .revml file used by the t/ scripts

  SYNOPSIS
       perl bin/gentrevml --(revml|p4|cvs|vss) [--bootstrap] [--no-a-big-file] 
[--batch=1]

  DESCRIPTION
    The test suite uses a basic RevML file to check to see vcp it can copy
    in to and out of a repository correctly. This is done for each
    repository class.

    Note that going through a repository may lose some information, so the
    test suite can't always compare the input RevML to the output RevML.

    Only the revml->revml case is known to be idempotent.

    I chose to do this over using some base repository because not every
    user is going to happen to have that repository, and (2) not every
    repository will pass through all information correctly.

  COPYRIGHT
    Copyright 2000, 2003 Perforce Software, Inc. All Rights Reserved.

    This will be licensed under a suitable license at a future date. Until
    then, you may only use this for evaluation purposes. Besides which, it's
    in an early alpha state, so you shouldn't depend on it anyway.

  AUTHOR
    Barrie Slaymaker <[EMAIL PROTECTED]>

make[1]: *** [t/test-cvs-in-0-no-big-files.revml] Error 2
make[1]: Leaving directory `/build/niko/libvcp-perl-0.9-20050110'
make: *** [build-stamp] Error 2

Cheers,
-- 
Niko Tyni   [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to