Bug#1043234: libmath-bigint-perl: subclassing breaks numeric comparison

Niko Tyni ntyni at debian.org
Thu Aug 10 19:58:00 BST 2023


Control: forwarded -1 https://github.com/pjacklam/p5-Math-BigInt/issues/8
Control: tag -1 patch
Control: affects -1 libpgobject-type-bigfloat-perl

On Mon, Aug 07, 2023 at 08:06:09PM +0100, Niko Tyni wrote:
> Package: libmath-bigint-perl
> Version: 1.999838-1
> Severity: important
> Tags: ftbfs upstream
> User: debian-perl at lists.debian.org
> Usertags: perl-5.38-transition
> Control: affects -1 ledgersmb

> I was able to narrow it down to this test, which fails with newer versions:
> 
> ---------------
> package MyFloat;
> use base qw(Math::BigFloat);
> 1;
> 
> print MyFloat->new(9999.99) == Math::BigFloat->new(9999.99) ? "ok\n": "not ok\n";
> ---------------
> 
> It bisects down to upstream commit 
> 
>   https://github.com/pjacklam/p5-Math-BigInt/commit/46d1252c98f565ae787c840173e5f98acf8953f1
> 
> so it regressed with upstream version 1.999836.

I've filed an upstream bug at https://github.com/pjacklam/p5-Math-BigInt/issues/8
and sent a proposed patch at  https://github.com/pjacklam/p5-Math-BigInt/pull/9

-- 
Niko



More information about the pkg-perl-maintainers mailing list