Bug#719591: libmongodb-perl: FTBFS with Perl 5.18: 't use string ("no such cmd: ") as a HASH ref while "strict refs" in use
Dominic Hargreaves
dom at earth.li
Tue Aug 13 20:25:43 UTC 2013
On Tue, Aug 13, 2013 at 03:13:43PM +0300, Niko Tyni wrote:
> This package fails to build with Perl 5.18 (currently in experimental):
>
> Can't use string ("no such cmd: num") as a HASH ref while "strict refs" in use at /build/dom-libmongodb-perl_0.700.0-1+b1-i386-Oc2cF5/libmongodb-perl-0.700.0/blib/lib/MongoDB/Collection.pm line 424.
> # Looks like you planned 75 tests but ran 40.
> # Looks like your test exited with 115 just after 40.
> t/bson.t .................
>
> [...]
>
> Test Summary Report
> -------------------
> t/bson.t (Wstat: 29440 Tests: 40 Failed: 0)
> Non-zero exit status: 115
> Parse errors: Bad plan. You planned 75 tests but ran 40.
> t/collection.t (Wstat: 29440 Tests: 9 Failed: 0)
> Non-zero exit status: 115
> Parse errors: Bad plan. You planned 140 tests but ran 9.
> t/cursor.t (Wstat: 29440 Tests: 23 Failed: 0)
> Non-zero exit status: 115
> Parse errors: Bad plan. You planned 74 tests but ran 23.
> t/gridfs.t (Wstat: 29440 Tests: 0 Failed: 0)
> Non-zero exit status: 115
> Parse errors: Bad plan. You planned 62 tests but ran 0.
> t/old_conn_collection.t (Wstat: 29440 Tests: 10 Failed: 0)
> Non-zero exit status: 115
> Parse errors: Bad plan. You planned 137 tests but ran 10.
> t/old_conn_database.t (Wstat: 29440 Tests: 3 Failed: 0)
> Non-zero exit status: 115
> Parse errors: Bad plan. You planned 16 tests but ran 3.
> Files=21, Tests=327, 47 wallclock secs ( 0.09 usr 0.10 sys + 14.64 cusr 0.83 csys = 15.66 CPU)
> Result: FAIL
> Failed 6/21 test programs. 0/327 subtests failed.
According to <https://jira.mongodb.org/browse/PERL-232> this has been
fixed in 0.701.1 but all versions on CPAN > 0.701.1 have a new
directory which contains some questionable licencing arrangements
(including contradictory references to a BSD LICENCE file which doesn't
appear to exist). These files are mostly (if not completely) inside the
mongo-meta-driver subdirectory, and this directory appears not to be used
at all by the package build, so I am inclined to repack the orig.tar.gz
to remove this inconvenience.
Dominic.
More information about the pkg-perl-maintainers
mailing list