Commit Graph

62 Commits

Author SHA256 Message Date
Richard Biener
481794b6df - Update to mpfr 4.2.1
* Includes all fixes from mpfr-4.2.0-cummulative.patch which is
    subsequently removed.
  * Improved MPFR manual.
  * Configure tests: replaced the test of the link with GMP, in order
    to avoid the use of a function without a prototype (Autoconf issue), as
    this is obsolescent in ISO C. The new test should be more robust.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=82
2023-08-22 11:48:11 +00:00
Richard Biener
566591202d - Update mpfr-4.2.0-cummulative.patch, adds patches fixing the following bugs
* the mpfr_reldiff function, which computes |b-c|/b, is buggy on special
    values, e.g. on the following (b,c) values: (+Inf,+Inf) gives ±0
    instead of NaN (like NaN/Inf); (+0,+0) gives 1 instead of NaN (like 0/0);
    (+0,1) gives 1 instead of Inf (like 1/0). Moreover, the sign of 0 for
    (+Inf,+Inf) or (-Inf,-Inf) is not set, i.e. it is just the sign of the
    destination before the call; as a consequence, results are not even
    consistent.
  * the reuse tests are incomplete: the sign of a result zero is not checked,
    so that it can miss bugs (one of the mpfr_reldiff bugs mentioned above,
    in particular).
  * the general code for the power function (mpfr_pow_general internal
    function) has two bugs in particular cases: the first one is an incorrect
    computation of the error bound when there has been an intermediate
    underflow or overflow (in such a case, the computation is performed
    again with a rescaling, thus with an additional error term, but there is
    a bug in the computation of this term), so that the result may be
    rounded incorrectly (in particular, a spurious overflow is possible);
    the second one occurs in a corner case (destination precision 1,
    rounding to nearest, and where the rounded result assuming an unbounded
    exponent range would be 2emin-2 and the exact result is larger than this
    value), with the only consequence being a missing underflow exception
    (the underflow flag is not set).
  * the mpfr_compound_si function can take a huge amount of memory and time
    in some cases (when the argument x is a large even integer and xn is
    represented exactly in the target precision) and does not correctly
    detect overflows and underflows
  * MPFR can crash when a formatted output function is called with
    %.2147483648Rg in the format string.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=80
2023-06-07 07:59:51 +00:00
Richard Biener
ad0e704d8b - Add mpfr-4.2.0-cummulative.patch, cummulative patches for
mpfr 4.2.0:
  * A test of the thousands separator in tsprintf.c is based on the
    output from the GNU C Library up to 2.36, which is incorrect.
  * The mpfr_ui_pow_ui function has infinite loop in case of overflow.
  * The tfprintf and tprintf tests may fail in locales where decimal_point
    has several bytes, such as ps_AF.
  * In particular cases that are very hard to round, mpfr_rec_sqrt may yield
    a stack overflow due to many small allocations in the stack, based on
    alloca().
- Remove tests-tsprintf.patch that's included in the above set.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=78
2023-04-18 08:22:48 +00:00
Richard Biener
abeb6a1f64 - Remove mpfr-4.1.1-patch01.patch which is included in the new release.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=76
2023-02-01 07:37:04 +00:00
Richard Biener
5cbd214a2a Accepting request 1062299 from home:Andreas_Schwab:glibc:rebuild
- tests-tsprintf.patch: Avoid testsuite failure with glibc >= 2.37

OBS-URL: https://build.opensuse.org/request/show/1062299
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=75
2023-02-01 07:35:32 +00:00
Richard Biener
1df245fcd6 - Update to mpfr 4.2.0
* New functions mpfr_cosu, mpfr_sinu, mpfr_tanu, mpfr_acosu, mpfr_asinu,
    mpfr_atanu and mpfr_atan2u.
  * New functions mpfr_cospi, mpfr_sinpi, mpfr_tanpi, mpfr_acospi, mpfr_asinpi,
    mpfr_atanpi and mpfr_atan2pi.
  * New functions mpfr_log2p1, mpfr_log10p1, mpfr_exp2m1, mpfr_exp10m1 and
    mpfr_compound_si.
  * New functions mpfr_fmod_ui, mpfr_powr, mpfr_pown, mpfr_pow_uj, mpfr_pow_sj
    and mpfr_rootn_si (mpfr_pown is actually a macro defined as an alias for
    mpfr_pow_sj).
  * Bug fixes.
    In particular, for the formatted output functions (mpfr_printf, etc.),
    the case where the precision consists only of a period has been fixed
    to be like ".0" as specified in the ISO C standard, and the manual has
    been corrected and clarified.
    The macros of the custom interface have also been fixed: they now behave
    like functions (except a minor limitation for mpfr_custom_init_set).

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=74
2023-01-09 08:23:20 +00:00
Richard Biener
d070d154cc - Add mpfr-4.1.1-patch01.patch to fix bug with code using
the mpfr_custom_get_kind macro.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=72
2022-11-24 09:10:36 +00:00
Richard Biener
5d4d6e7626 Accepting request 1036805 from home:AndreasStieger:branches:devel:libraries:c_c++
- package license files correctly

OBS-URL: https://build.opensuse.org/request/show/1036805
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=70
2022-11-21 07:20:10 +00:00
Richard Biener
91dc75fbc2 - Update to mpfr 4.1.1
* Bug fixes (see <https://www.mpfr.org/mpfr-4.1.0/#fixed> and/or the
    ChangeLog file), in particular for macros implementing functions.
  * Improved manual formatting.
  * Accumulated bugfixes
- Remove mpfr-4.1.0-p7.diff, all patches are contained in the
  new version.
- Update mpfr.keyring

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=68
2022-11-18 08:01:57 +00:00
Richard Biener
15f3e5bb23 - Add cummulative patch mpfr-4.1.0-p7.diff fixing various bugs.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=66
2021-02-12 14:19:05 +00:00
Richard Biener
a9a76bc87f - Add cummulative patch mpfr-4.1.0-p7.patch fixing various bugs.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=65
2021-02-12 08:06:46 +00:00
Richard Biener
3bfb137a9f - Update to mpfr 4.1.0
* New function mpfr_get_str_ndigits about conversion to a string of digits.
  * New function mpfr_dot for the dot product (incomplete, experimental).
  * New functions mpfr_get_decimal128 and mpfr_set_decimal128 (available only
    when MPFR has been built with decimal float support).
  * New function mpfr_cmpabs_ui.
  * New function mpfr_total_order_p for the IEEE 754 totalOrder predicate.
  * The mpfr_out_str function now accepts bases from -2 to -36, in order to
    follow mpfr_get_str and GMP's mpf_out_str functions (these cases gave an
    assertion failure, as with other invalid bases).
  * Shared caches: cleanup; really detect lock failures (abort in this case).
  * The behavior of the formatted output functions (mpfr_printf, etc.) with
    an empty precision field has improved: trailing zeros are kept in a way
    similar to the formatted output functions from C.
  * Improved mpfr_add and mpfr_sub when all operands have a precision equal to
    twice the number of bits per word, e.g., 128 bits on a 64-bit platform.
  * Optimized the tuning parameters for various architectures.
  * Improved test coverage to 98.6% of code for x86_64.
  * Bug fixes.
  * MPFR manual: corrected/completed the mpfr_get_str description in order to
    follow the historical behavior and GMP's mpf_get_str function.
- Remove mpfr-4.0.2-p6.patch and floating-point-format-no-lto.patch

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=62
2020-07-13 09:40:43 +00:00
Richard Biener
287533c1c8 - Add cummulative patch mpfr-4.0.2-p6.patch fixing various bugs.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=60
2020-04-01 07:37:50 +00:00
Richard Biener
f829e63b51 Accepting request 715464 from home:marxin:branches:devel:libraries:c_c++
- Add floating-point-format-no-lto.patch in order to fix assembler scanning
  (boo#1141190).

OBS-URL: https://build.opensuse.org/request/show/715464
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=58
2019-07-15 12:53:12 +00:00
Richard Biener
a1fcc2b453 * Cummulative bugfix release, includes mpfr-4.0.1-cummulative-patch.patch.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=56
2019-02-01 11:14:10 +00:00
Richard Biener
2641247c79 - Update to mpfr 4.0.2
* Cummulative bugfix release.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=55
2019-02-01 08:38:10 +00:00
Richard Biener
c209961b17 Accepting request 610001 from home:1Antoine1:branches:devel:libraries:c_c++
- Fix %install_info_delete usage:
  * It has to be performed in %preun not in %postun.
  * See https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25install_info_delete.

OBS-URL: https://build.opensuse.org/request/show/610001
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=53
2018-05-17 07:02:05 +00:00
Richard Biener
29e86add7c - Add mpfr-4.0.1-cummulative-patch.patch. Fixes
* A subtraction of two numbers of the same sign or addition of two
    numbers of different signs can be rounded incorrectly (and the
    ternary value can be incorrect) when one of the two inputs is
    reused as the output (destination) and all these MPFR numbers
    have exactly GMP_NUMB_BITS bits of precision (typically, 32 bits
    on 32-bit machines, 64 bits on 64-bit machines).
  * The mpfr_fma and mpfr_fms functions can behave incorrectly in case
    of internal overflow or underflow.
  * The result of the mpfr_sqr function can be rounded incorrectly
    in a rare case near underflow when the destination has exactly
    GMP_NUMB_BITS bits of precision (typically, 32 bits on 32-bit
    machines, 64 bits on 64-bit machines) and the input has at most
    GMP_NUMB_BITS bits of precision.
  * The behavior and documentation of the mpfr_get_str function are
    inconsistent concerning the minimum precision (this is related to
    the change of the minimum precision from 2 to 1 in MPFR 4.0.0). The
    get_str patch fixes this issue in the following way: the value 1
    can now be provided for n (4th argument of mpfr_get_str); if n = 0,
    then the number of significant digits in the output string can now
    be 1, as already implied by the documentation (but the code was
    increasing it to 2).
  * The mpfr_cmp_q function can behave incorrectly when the rational
    (mpq_t) number has a null denominator.
  * The mpfr_inp_str and mpfr_out_str functions might behave
    incorrectly when the stream is a null pointer: the stream is
    replaced by stdin and stdout, respectively. This behavior is
    useless, not documented (thus incorrect in case a null pointer
    would have a special meaning), and not consistent with other
    input/output functions.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=51
2018-05-02 09:02:53 +00:00
459183fddf Accepting request 573894 from home:AndreasStieger:branches:devel:libraries:c_c++
mpfr 4.0.1

OBS-URL: https://build.opensuse.org/request/show/573894
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=49
2018-02-08 08:38:43 +00:00
Richard Biener
0f7b204ad7 - Update to mpfr 4.0.0
* The "dinde aux marrons" release.
  * MPFR now depends on GMP 5.0+ instead of 4.1+.
  * API change:
    Applications that call GMP's mp_set_memory_functions function to change
    the allocators must first call the new function mpfr_mp_memory_cleanup
    in all threads where MPFR is potentially used; this new function is
    currently equivalent to mpfr_free_cache.
    The reason is that the way memory allocation is done by MPFR has changed
    (again), so that the current GMP allocators are used (since for some
    applications, the old allocators may become invalid).
    Note: Freeing the caches like this might have a performance impact on some
    particular applications; if this is an issue, this could be handled for a
    future MPFR version.
  * Mini-gmp support via the --enable-mini-gmp configure option (experimental).
  * The minimum precision MPFR_PREC_MIN is now 1, with rounding defined as
    in the errata of IEEE 754-2008 and in the following IEEE 754 revision
    (ties rounded away from zero).
  * Shared caches for multithreaded applications.
    New function mpfr_free_cache2.
  * Partial support of MPFR_RNDF (faithful rounding).
  * New functions: mpfr_fpif_export and mpfr_fpif_import to export and import
    numbers in a floating-point interchange format, independent both on the
    number of bits per word and on the endianness.
  * New function mpfr_fmodquo to return the low bits of the quotient
    corresponding to mpfr_fmod.
  * New functions mpfr_flags_clear, mpfr_flags_set, mpfr_flags_test,
    mpfr_flags_save and mpfr_flags_restore to operate on groups of flags.
  * New functions mpfr_set_float128 and mpfr_get_float128 to convert from/to
    the __float128 type (requires --enable-float128 and compiler support).

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=47
2018-01-02 12:43:08 +00:00
Richard Biener
8c81ad16e0 - Update to mpfr 3.1.6 release
* Includes mpfr-3.1.5-p9.patch

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=45
2017-09-12 08:11:00 +00:00
Richard Biener
2d2969333b - Add mpfr-3.1.5-p9.patch with cummulative patches to patchlevel p9,
obsoletes mpfr-3.1.5-p8.patch.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=43
2017-07-25 10:40:38 +00:00
Richard Biener
8d9b00ed45 - Add mpfr-3.1.5-p8.patch with cummulative patches to patchlevel p8.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=41
2017-06-07 08:19:23 +00:00
Richard Biener
a4b44f3727 Accepting request 439927 from home:dimstar:Factory
- Follow openSUSE Packaging Guidelines: do not packae static
  libraries:
  + Pass --disable-static to configure.

OBS-URL: https://build.opensuse.org/request/show/439927
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=39
2016-11-14 09:57:41 +00:00
Richard Biener
15f9a9afc5 - Update to mpfr 3.1.5:
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=37
2016-09-28 07:34:57 +00:00
Richard Biener
16b48dd0cd - Update to mpfr 3.1.4:
* C++11 compatibility.
  * Bug fixes (see <http://www.mpfr.org/mpfr-3.1.4/#fixed>
    and ChangeLog file).
  * More tests.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=36
2016-09-27 12:53:03 +00:00
Richard Biener
c3847d56ec Accepting request 367179 from home:AndreasStieger:branches:devel:libraries:c_c++
mpfr 3.1.4

OBS-URL: https://build.opensuse.org/request/show/367179
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=34
2016-03-07 09:54:01 +00:00
Richard Biener
035087ef6c - Add cummulative patch mpfr-3.1.3-patch1to12.patch
* Bug fixes (see <http://www.mpfr.org/mpfr-3.1.3/#fixed>

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=32
2016-02-17 11:09:26 +00:00
Ismail Dönmez
a50a12de43 Accepting request 312935 from home:AndreasStieger:branches:devel:libraries:c_c++
update to 3.1.3

OBS-URL: https://build.opensuse.org/request/show/312935
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=30
2015-06-21 16:09:53 +00:00
ac16df0bcd Accepting request 288292 from home:pluskalm:branches:devel:libraries:c_c++
- Cleanup spec file with spec-claner
- Add gpg signature

OBS-URL: https://build.opensuse.org/request/show/288292
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=28
2015-03-01 12:25:00 +00:00
Richard Biener
0063cae2f0 - Add mpfr-3.1.2-patch11.diff to fix possible buffer overflow in
mpfr_strtofr (CVE-2014-9474).  [bnc#911812]

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=26
2015-01-08 10:25:44 +00:00
Richard Biener
ae7726ea10 Accepting request 171090 from home:namtrac:bugfix
- Add Source URL, see https://en.opensuse.org/SourceUrls

OBS-URL: https://build.opensuse.org/request/show/171090
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=24
2013-04-16 12:51:20 +00:00
Richard Biener
5c8e287e88 - Update to version 3.1.2.
* Bug fixes
  * Updated examples to the MPFR 3.x API

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=22
2013-03-14 09:09:08 +00:00
Richard Biener
921d79a8f1 - Update to version 3.1.1.
* Bug fixes

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=20
2012-07-04 08:51:38 +00:00
Richard Biener
18b58a1f5a Accepting request 104419 from devel:openSUSE:Factory:patch-license
patch license to follow spdx.org standard

OBS-URL: https://build.opensuse.org/request/show/104419
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=18
2012-02-13 11:35:29 +00:00
e31dd74f0f Remove redundant tags/sections
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=17
2012-01-29 20:35:22 +00:00
Richard Biener
b7027645fd - Update to version 3.1.0.
* The mpfr_urandom and mpfr_urandomb functions now return identical
    values on processors with different word size.
  * Speed improvement for the mpfr_sqr and mpfr_div functions using
    Mulders' algorithm.
  * Much faster formatted output (mpfr_printf, etc.) with %Rg and similar.
  * New divide-by-zero exception (flag) and associated functions.
- Remove bogus provides/obsoletes for old shared library version.
- Fix license, it is LGPL v3 or later.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=16
2011-10-11 12:49:40 +00:00
Richard Biener
e3146e1343 - Update to version 3.0.1.
* Minor bugfixes.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=14
2011-04-08 13:59:32 +00:00
OBS User autobuild
e839fa372a Accepting request 48543 from devel:libraries:c_c++
checked in (request 48543)

OBS-URL: https://build.opensuse.org/request/show/48543
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=13
2010-09-20 14:33:18 +00:00
Richard Biener
b6c617ebfc - Update to version 3.0.0.
* Bump SO version to 4.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=12
2010-09-06 14:04:14 +00:00
Richard Biener
62522cbe5f Accepting request 42151 from home:jengelh:smp
Copy from home:jengelh:smp/mpfr via accept of submit request 42151 revision 2.
Request was accepted with message:

OBS-URL: https://build.opensuse.org/request/show/42151
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=11
2010-06-28 08:36:07 +00:00
Richard Biener
cd28bf3af2 Accepting request 40101 from home:adrianSuSE:branches:devel:libraries:c_c++
Copy from home:adrianSuSE:branches:devel:libraries:c_c++/mpfr via accept of submit request 40101 revision 2.
Request was accepted with message:

OBS-URL: https://build.opensuse.org/request/show/40101
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=10
2010-05-17 08:23:08 +00:00
OBS User buildservice-autocommit
0aa5aaccc9 Updating link to change in openSUSE:Factory/mpfr revision 20.0
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/mpfr?expand=0&rev=6ff3ac1080cdb71610d5568f5ca18a65
2010-03-18 15:09:54 +00:00
OBS User autobuild
e63d0ebf2f Accepting request 48543 from devel:libraries:c_c++
Copy from devel:libraries:c_c++/mpfr based on submit request 48543 from user rguenther

OBS-URL: https://build.opensuse.org/request/show/48543
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mpfr?expand=0&rev=23
2010-09-20 14:33:20 +00:00
OBS User autobuild
c170bc7632 Accepting request 29105 from devel:libraries:c_c++
Copy from devel:libraries:c_c++/mpfr based on submit request 29105 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/29105
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mpfr?expand=0&rev=19
2010-01-14 14:15:37 +00:00
OBS User autobuild
1bef109409 Accepting request 25269 from devel:libraries:c_c++
Copy from devel:libraries:c_c++/mpfr based on submit request 25269 from user rguenther

OBS-URL: https://build.opensuse.org/request/show/25269
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mpfr?expand=0&rev=18
2009-12-04 08:51:45 +00:00
OBS User unknown
7dd1b3baa0 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mpfr?expand=0&rev=16 2009-07-23 13:31:00 +00:00
OBS User unknown
982e153654 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mpfr?expand=0&rev=15 2009-03-17 15:32:52 +00:00
OBS User unknown
ca7f68c34b OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mpfr?expand=0&rev=14 2009-03-03 17:34:45 +00:00
OBS User unknown
60790751d9 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mpfr?expand=0&rev=13 2009-01-29 21:29:08 +00:00