https://bugzilla.redhat.com/show_bug.cgi?id=2380086



--- Comment #1 from Petr Pisar <ppi...@redhat.com> ---
The warning is unrelated.

The failure appeared in 5.41.7 and this perldelta seems related:

        When assigning from an SVt_IV into a SVt_NV (or vice versa),
        providing that both are "bodyless" types, Perl_sv_setsv_flags will
        now just change the destination type to match the source type.
        Previously, an SVt_IV would have been upgraded to a SVt_PVNV to
        store an NV, and an SVt_NV would have been upgraded to a SVt_PVIV to
        store an IV. This change prevents the need to allocate - and later
        free - the relevant body struct.

That probably corresponds to perl commit
fbebf96ce083dc15b63c04d5695997d6e2657b03 ("Perl_sv_setsv_flags: handle mixed IV
and NV fast case").


When minimizing the failing test too much:

  my $hash = decode( encode( { A => unpack("d<",pack("H*","000000000000f0ff"))
} ) );
  is( ref(B::svref_2object( \$hash->{A} )), 'B::PVNV', "double->double" );

the type becomes NV not only on perl 5.42.0 but also on perl 5.40.2.

If one calls:

  my $hash2 = decode( encode( { A => 3.14159 } ), wrap_numbers => 1);

before the test, the test returns PVPN on old perl.

I conclude the test or the BSON code builds on a side effect of the interpreter
implementation which does not hold true anymore.

Normally I would adjust the test, but here BSON task is to reproduce Perl data
structures and it does not reproduce them anymore.

I'm keen to remove perl-BSON and perl-Mongo from Rawhide. It's unmaintained
since 2020 by upstream.


-- 
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2380086

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202380086%23c1

-- 
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to