Debian Patches
Status for libbson-perl/1.12.2-3
Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
---|---|---|---|---|---|---|
BSON-v1.12.2-Fix-an-operator-preference.patch | [PATCH] Fix an operator preference Perl 5.42.0 started to warn: Possible precedence problem between ! and string eq at /home/test/fedora/perl-BSON/perl-BSON-1.12.2-build/BSON-v1.12.2/blib/lib/BSON.pm line 99. That was indeed a bug in the expression. |
=?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> | no | 2025-07-15 | ||
BSON-v1.12.2-Adapt-tests-to-perl-5.41.7.patch | [PATCH 2/2] Adapt tests to perl 5.41.7 t/mapping/double.t faileded with perl 5.42.0: # Failed test 'Inf as double->double' # at t/mapping/double.t line 55. # got: 'NV' # expected: 'PVNV' # Failed test '-Inf as double->double' # at t/mapping/double.t line 55. # got: 'NV' # expected: 'PVNV' # Failed test 'NaN as double->double' # at t/mapping/double.t line 55. # got: 'NV' # expected: 'PVNV' # Failed test 'Inf as BSON::Double->BSON::Double' # at t/mapping/double.t line 69. # got: 'NV' # expected: 'PVNV' # Failed test '-Inf as BSON::Double->BSON::Double' # at t/mapping/double.t line 69. # got: 'NV' # expected: 'PVNV' # Failed test 'NaN as BSON::Double->BSON::Double' # at t/mapping/double.t line 69. # got: 'NV' # expected: 'PVNV' # Looks like you failed 6 tests of 39. t/mapping/double.t ............... Dubious, test returned 6 (wstat 1536, 0x600) Failed 6/39 subtests The is caused by an optimiziation in 5.41.7: 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. The new behavior is more consistent because decode(encode({A => 3.14159})) now has both input and output NV. Users who want the old behvior are advised to call "decode(, wrap_numbers => 1)" as documented in BSON. https://bugzilla.redhat.com/show_bug.cgi?id=2380086 |
=?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> | no | 2025-07-15 |