Debian Patches

Status for linbox/1.6.3-3

Patch Description Author Forwarded Bugs Origin Last update
example.patch Fix example source related issues. no
soname.patch Debian specific soname. no
fix-doc-path.patch Fix links in documentation and provide a pointer to README about how to generate
developer's documentation.
no
fix-RR-RecCounter.patch Set RecCounter=0 if rbound_==0 to avoid cast of -inf.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733917

Test test-det on i386 or amd64 successfully pass after a few iterations, on
mips this test has an enormous number of iterations and build of the linbox
package on buildd breaks after 300 minutes of inactivity.

The reason for this behavior is that in:

linbox/algorithms/rational-reconstruction-base.h

the way to calculate RecCounter is:

RecCounter = (size_t)((double)log((double)rbound_)/log(2.));//2^RecCounter < rbound_ <=2^(RecCounter+1)

When rbound_ is equal to zero the result of log function is -inf (double[8
bytes]).

When we cast -inf to size_t (unsigned int[4 bytes]) on i386 and amd64, the
result is zero.

In the same situation on mips architecture, cast is done through TRUNC.W.D
instruction.

For this instruction, if the source value is Infinity, NaN, or rounds to an
integer outside the range -2^31 to 2^31-1, the result cannot be represented
correctly and an IEEE Invalid Operation condition exists. The result depends on
the FP exception model currently active and the default result is 2^31-1
(2147483647).
Dejan Latinovic <Dejan.Latinovic@rt-rk.com> no
pkgconfig.patch Do not put the CFLAGS used to build linbox into the pkg-config file @DEFAULT_CFLAGS@ results in something like
-O2 -Wall -g -DNDEBUG -U_LB_DEBUG
Also remove obsoloete @LINBOXSAGE_LIBS@.
Tobias Hansen <thansen@debian.org> no
replace-dangerous-pointer-casts-with-memcpy.patch Use memcpy instead of dangerous casts. This fixes testsuite failures
When building on systems that don't support fully support unaligned
memory access.

===================================================================
Peter Michael Green <plugwash@debian.org> no 2020-01-30
iterator-difference-type.patch Use std::ptrdiff_t for vector iterator difference type Doug Torrance <dtorrance@piedmont.edu> yes debian upstream https://github.com/linbox-team/linbox/pull/274 2021-05-09

All known versions for source package 'linbox'

Links