Bug#951004: libmath-prime-util-gmp-perl: Patch for FTBFS with gmp 6.2.0: test failure

Marco Bodrato bodrato at mail.dm.unipi.it
Tue Feb 18 11:39:49 GMT 2020


Ciao,

in my opinion, the issue arises from a function that is directly 
accessing the internal structure. Using the documented interface heals 
the bug.

A proposed patch:

*** squfof126.c~	2020-02-18 12:25:12.210812063 +0100
--- squfof126.c	2020-02-18 12:23:50.647283918 +0100
***************
*** 50,57 ****
       mpz_mul_2exp(n, n, 32);
       mpz_add_ui(n, n, (uint32_t)v);
     } else {
!     n->_mp_d[0] = v;
!     n->_mp_size = 1;
     }
   }

--- 50,56 ----
       mpz_mul_2exp(n, n, 32);
       mpz_add_ui(n, n, (uint32_t)v);
     } else {
!     mpz_set_ui(n, v);
     }
   }



Ĝis,
m

-- 
http://bodrato.it/papers/



More information about the pkg-perl-maintainers mailing list