public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mpfi] rawhide: Version 1.5.5
@ 2026-12-01 22:42 Jerry James
0 siblings, 0 replies; only message in thread
From: Jerry James @ 2026-12-01 22:42 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/mpfi
Branch : rawhide
Commit : 08f52b9903bc31ee803733f1941c410ca57d5208
Author : Jerry James <loganjerry@gmail.com>
Date : 2026-12-01T15:42:15-07:00
Stats : +10/-267 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/mpfi/c/08f52b9903bc31ee803733f1941c410ca57d5208?branch=rawhide
Log:
Version 1.5.5
- Drop all patches
---
diff --git a/mpfi-bad-ref.patch b/mpfi-bad-ref.patch
deleted file mode 100644
index dd60081..0000000
--- a/mpfi-bad-ref.patch
+++ /dev/null
@@ -1,120 +0,0 @@
-Fixes these GCC warnings:
-
-div_ext.c: In function 'mpfi_div_ext':
-div_ext.c:62:25: warning: passing argument 1 of 'mpfr_div' from incompatible pointer type [-Wincompatible-pointer-types]
- 62 | tmp = mpfr_div (&(tmp2), &(op1->right), &(op2->left), MPFI_RNDD);
- | ^~~~~~~
- | |
- | __mpfr_struct (*)[1]
-In file included from mpfi.h:34,
- from mpfi-impl.h:29,
- from div_ext.c:27:
-/usr/include/mpfr.h:569:31: note: expected 'mpfr_ptr' {aka '__mpfr_struct *'} but argument is of type '__mpfr_struct (*)[1]'
- 569 | __MPFR_DECLSPEC int mpfr_div (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_rnd_t);
- | ^~~~~~~~
-div_ext.c:65:24: warning: passing argument 1 of 'mpfr_set_zero' from incompatible pointer type [-Wincompatible-pointer-types]
- 65 | mpfr_set_zero (&(tmp2), 1);
- | ^~~~~~~
- | |
- | __mpfr_struct (*)[1]
-/usr/include/mpfr.h:475:37: note: expected 'mpfr_ptr' {aka '__mpfr_struct *'} but argument is of type '__mpfr_struct (*)[1]'
- 475 | __MPFR_DECLSPEC void mpfr_set_zero (mpfr_ptr, int);
- | ^~~~~~~~
-div_ext.c:69:26: warning: passing argument 1 of 'mpfr_div' from incompatible pointer type [-Wincompatible-pointer-types]
- 69 | tmp = mpfr_div ( &(tmp1), &(op1->right), &(op2->right), MPFI_RNDU);
- | ^~~~~~~
- | |
- | __mpfr_struct (*)[1]
-/usr/include/mpfr.h:569:31: note: expected 'mpfr_ptr' {aka '__mpfr_struct *'} but argument is of type '__mpfr_struct (*)[1]'
- 569 | __MPFR_DECLSPEC int mpfr_div (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_rnd_t);
- | ^~~~~~~~
-div_ext.c:72:24: warning: passing argument 1 of 'mpfr_set_zero' from incompatible pointer type [-Wincompatible-pointer-types]
- 72 | mpfr_set_zero( &(tmp1), -1);
- | ^~~~~~~
- | |
- | __mpfr_struct (*)[1]
-/usr/include/mpfr.h:475:37: note: expected 'mpfr_ptr' {aka '__mpfr_struct *'} but argument is of type '__mpfr_struct (*)[1]'
- 475 | __MPFR_DECLSPEC void mpfr_set_zero (mpfr_ptr, int);
- | ^~~~~~~~
-div_ext.c:89:25: warning: passing argument 1 of 'mpfr_div' from incompatible pointer type [-Wincompatible-pointer-types]
- 89 | tmp = mpfr_div (&(tmp1), &(op1->left), &(op2->left), MPFI_RNDU);
- | ^~~~~~~
- | |
- | __mpfr_struct (*)[1]
-/usr/include/mpfr.h:569:31: note: expected 'mpfr_ptr' {aka '__mpfr_struct *'} but argument is of type '__mpfr_struct (*)[1]'
- 569 | __MPFR_DECLSPEC int mpfr_div (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_rnd_t);
- | ^~~~~~~~
-div_ext.c:92:24: warning: passing argument 1 of 'mpfr_set_zero' from incompatible pointer type [-Wincompatible-pointer-types]
- 92 | mpfr_set_zero (&(tmp1), -1);
- | ^~~~~~~
- | |
- | __mpfr_struct (*)[1]
-/usr/include/mpfr.h:475:37: note: expected 'mpfr_ptr' {aka '__mpfr_struct *'} but argument is of type '__mpfr_struct (*)[1]'
- 475 | __MPFR_DECLSPEC void mpfr_set_zero (mpfr_ptr, int);
- | ^~~~~~~~
-div_ext.c:96:26: warning: passing argument 1 of 'mpfr_div' from incompatible pointer type [-Wincompatible-pointer-types]
- 96 | tmp = mpfr_div ( &(tmp2), &(op1->left), &(op2->right), MPFI_RNDD);
- | ^~~~~~~
- | |
- | __mpfr_struct (*)[1]
-/usr/include/mpfr.h:569:31: note: expected 'mpfr_ptr' {aka '__mpfr_struct *'} but argument is of type '__mpfr_struct (*)[1]'
- 569 | __MPFR_DECLSPEC int mpfr_div (mpfr_ptr, mpfr_srcptr, mpfr_srcptr, mpfr_rnd_t);
- | ^~~~~~~~
-div_ext.c:99:24: warning: passing argument 1 of 'mpfr_set_zero' from incompatible pointer type [-Wincompatible-pointer-types]
- 99 | mpfr_set_zero( &(tmp2), 1);
- | ^~~~~~~
- | |
- | __mpfr_struct (*)[1]
-/usr/include/mpfr.h:475:37: note: expected 'mpfr_ptr' {aka '__mpfr_struct *'} but argument is of type '__mpfr_struct (*)[1]'
- 475 | __MPFR_DECLSPEC void mpfr_set_zero (mpfr_ptr, int);
- | ^~~~~~~~
-div_ext.c:33:19: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
- 33 | int nb_res = 0, tmp;
- | ^~~
-
---- a/src/div_ext.c 2022-03-11 08:33:43.000000000 -0700
-+++ b/src/div_ext.c 2022-03-28 16:18:12.827629679 -0600
-@@ -59,17 +59,17 @@ mpfi_div_ext (mpfi_ptr res1, mpfi_ptr re
- mpfr_init2 (tmp1, mpfi_get_prec(res1));
- mpfr_init2 (tmp2, mpfi_get_prec(res2));
- if ( mpfr_number_p (&(op2->left)) ) {
-- tmp = mpfr_div (&(tmp2), &(op1->right), &(op2->left), MPFI_RNDD);
-+ tmp = mpfr_div (tmp2, &(op1->right), &(op2->left), MPFI_RNDD);
- }
- else { /* denominator has infinite left endpoint */
-- mpfr_set_zero (&(tmp2), 1);
-+ mpfr_set_zero (tmp2, 1);
- }
-
- if ( mpfr_number_p (&(op2->right)) ) {
-- tmp = mpfr_div ( &(tmp1), &(op1->right), &(op2->right), MPFI_RNDU);
-+ tmp = mpfr_div (tmp1, &(op1->right), &(op2->right), MPFI_RNDU);
- }
- else { /* denominator has infinite right endpoint */
-- mpfr_set_zero( &(tmp1), -1);
-+ mpfr_set_zero(tmp1, -1);
- }
-
- mpfr_set_inf (&(res1->left), -1);
-@@ -86,17 +86,17 @@ mpfi_div_ext (mpfi_ptr res1, mpfi_ptr re
- mpfr_init2 (tmp1, mpfi_get_prec(res1));
- mpfr_init2 (tmp2, mpfi_get_prec(res2));
- if ( mpfr_number_p (&(op2->left)) ) {
-- tmp = mpfr_div (&(tmp1), &(op1->left), &(op2->left), MPFI_RNDU);
-+ tmp = mpfr_div (tmp1, &(op1->left), &(op2->left), MPFI_RNDU);
- }
- else { /* denominator has infinite left endpoint */
-- mpfr_set_zero (&(tmp1), -1);
-+ mpfr_set_zero (tmp1, -1);
- }
-
- if ( mpfr_number_p (&(op2->right)) ) {
-- tmp = mpfr_div ( &(tmp2), &(op1->left), &(op2->right), MPFI_RNDD);
-+ tmp = mpfr_div (tmp2, &(op1->left), &(op2->right), MPFI_RNDD);
- }
- else { /* denominator has infinite right endpoint */
-- mpfr_set_zero( &(tmp2), 1);
-+ mpfr_set_zero(tmp2, 1);
- }
- mpfr_set_inf (&(res1->left), -1);
- mpfr_set (&(res1->right), tmp1, MPFI_RNDU);
diff --git a/mpfi-mismatched-type.patch b/mpfi-mismatched-type.patch
deleted file mode 100644
index d8668d8..0000000
--- a/mpfi-mismatched-type.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-Fixes these GCC warnings:
-
-init.c:30:19: warning: argument 1 of type '__mpfi_struct[1]' with mismatched bound [-Warray-parameter=]
- 30 | mpfi_init (mpfi_t x)
- | ~~~~~~~^
-In file included from mpfi-impl.h:29,
- from init.c:27:
-mpfi.h:62:26: note: previously declared as 'mpfi_ptr' {aka '__mpfi_struct *'}
- 62 | void mpfi_init (mpfi_ptr);
- | ^~~~~~~~
-
-init2.c:30:20: warning: argument 1 of type '__mpfi_struct[1]' with mismatched bound [-Warray-parameter=]
- 30 | mpfi_init2 (mpfi_t x, mpfr_prec_t p)
- | ~~~~~~~^
-In file included from mpfi-impl.h:29,
- from init2.c:27:
-mpfi.h:63:26: note: previously declared as 'mpfi_ptr' {aka '__mpfi_struct *'}
- 63 | void mpfi_init2 (mpfi_ptr, mpfr_prec_t);
- | ^~~~~~~~
-
---- a/src/init2.c 2022-03-11 08:33:43.000000000 -0700
-+++ b/src/init2.c 2022-03-28 16:23:26.635977528 -0600
-@@ -27,7 +27,7 @@ MA 02110-1301, USA. */
- #include "mpfi-impl.h"
-
- void
--mpfi_init2 (mpfi_t x, mpfr_prec_t p)
-+mpfi_init2 (mpfi_ptr x, mpfr_prec_t p)
- {
- mpfr_init2 (&(x->left),p);
- mpfr_init2 (&(x->right),p);
---- a/src/init.c 2022-03-11 08:33:43.000000000 -0700
-+++ b/src/init.c 2022-03-28 16:21:36.043854934 -0600
-@@ -27,7 +27,7 @@ MA 02110-1301, USA. */
- #include "mpfi-impl.h"
-
- void
--mpfi_init (mpfi_t x)
-+mpfi_init (mpfi_ptr x)
- {
- mpfr_init (&(x->left));
- mpfr_init (&(x->right));
diff --git a/mpfi-test.patch b/mpfi-test.patch
deleted file mode 100644
index 1c12e40..0000000
--- a/mpfi-test.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-Fixes these GCC errors:
-
-In file included from tabs.c:27:
-mpfi-tests.h:49:33: error: unknown type name 'intmax_t'
- 49 | typedef int (*JS_fun) (mpfi_t, intmax_t);
- | ^~~~~~~~
-mpfi-tests.h:50:33: error: unknown type name 'uintmax_t'
- 50 | typedef int (*JU_fun) (mpfi_t, uintmax_t);
- | ^~~~~~~~~
-mpfi-tests.h:96:3: error: unknown type name 'JS_fun'
- 96 | JS_fun JS; /* output: mpfi_t, input: intmax_t */
- | ^~~~~~
-mpfi-tests.h:97:3: error: unknown type name 'JU_fun'
- 97 | JU_fun JU; /* output: mpfi_t, input: uintmax_t */
- | ^~~~~~
-mpfi-tests.h:248:45: error: unknown type name 'JU_fun'; did you mean 'IU_fun'?
- 248 | void mpfi_fun_init_JU (mpfi_function_ptr, JU_fun, NULL_fun);
- | ^~~~~~
- | IU_fun
-mpfi-tests.h:249:45: error: unknown type name 'JS_fun'; did you mean 'IS_fun'?
- 249 | void mpfi_fun_init_JS (mpfi_function_ptr, JS_fun, NULL_fun);
- | ^~~~~~
- | IS_fun
-
---- a/tests/mpfi-tests.h 2022-03-14 10:38:11.000000000 -0600
-+++ b/tests/mpfi-tests.h 2022-03-28 16:29:25.756375645 -0600
-@@ -28,6 +28,7 @@ MA 02110-1301, USA. */
- #define __MPFI_TESTS_H__
-
- #include <stdlib.h>
-+#include <stdint.h>
-
- #include "mpfi_io.h"
- #include "mpfi-impl.h"
diff --git a/mpfi-uninit.patch b/mpfi-uninit.patch
deleted file mode 100644
index 09d5a18..0000000
--- a/mpfi-uninit.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-Fixes these GCC warnings:
-
-cos.c: In function 'mpfi_cos':
-cos.c:200:8: warning: 'inexact_right' may be used uninitialized [-Wmaybe-uninitialized]
- 200 | if (inexact_right) inexact += 2;
- | ^
-cos.c:31:21: note: 'inexact_right' was declared here
- 31 | int inexact_left, inexact_right, inexact=0;
- | ^~~~~~~~~~~~~
-cos.c:199:8: warning: 'inexact_left' may be used uninitialized [-Wmaybe-uninitialized]
- 199 | if (inexact_left) inexact = 1;
- | ^
-cos.c:31:7: note: 'inexact_left' was declared here
- 31 | int inexact_left, inexact_right, inexact=0;
- | ^~~~~~~~~~~~
-
-sin.c: In function 'mpfi_sin':
-sin.c:199:8: warning: 'inexact_right' may be used uninitialized [-Wmaybe-uninitialized]
- 199 | if (inexact_right) inexact += 2;
- | ^
-sin.c:31:21: note: 'inexact_right' was declared here
- 31 | int inexact_left, inexact_right, inexact = 0;
- | ^~~~~~~~~~~~~
-sin.c:198:8: warning: 'inexact_left' may be used uninitialized [-Wmaybe-uninitialized]
- 198 | if (inexact_left) inexact = 1;
- | ^
-sin.c:31:7: note: 'inexact_left' was declared here
- 31 | int inexact_left, inexact_right, inexact = 0;
- | ^~~~~~~~~~~~
-
---- a/src/cos.c 2022-03-11 08:33:43.000000000 -0700
-+++ b/src/cos.c 2022-03-28 16:14:58.691392501 -0600
-@@ -28,7 +28,7 @@ MA 02110-1301, USA. */
- int
- mpfi_cos (mpfi_ptr a, mpfi_srcptr b)
- {
-- int inexact_left, inexact_right, inexact=0;
-+ int inexact_left=0, inexact_right=0, inexact=0;
- mpfr_prec_t prec, prec_left, prec_right;
- mpfr_t tmp;
- mpz_t z, zmod4;
---- a/src/sin.c 2022-03-11 08:33:43.000000000 -0700
-+++ b/src/sin.c 2022-03-28 16:25:22.397105860 -0600
-@@ -28,7 +28,7 @@ MA 02110-1301, USA. */
- int
- mpfi_sin (mpfi_ptr a, mpfi_srcptr b)
- {
-- int inexact_left, inexact_right, inexact = 0;
-+ int inexact_left = 0, inexact_right = 0, inexact = 0;
- mpfr_prec_t prec, prec_left, prec_right;
- mpfr_t tmp;
- mpz_t z, zmod4;
diff --git a/mpfi.spec b/mpfi.spec
index b742a30..ab1ef13 100644
--- a/mpfi.spec
+++ b/mpfi.spec
@@ -1,5 +1,7 @@
+%global giturl https://gitlab.inria.fr/mpfi/mpfi
+
Name: mpfi
-Version: 1.5.4
+Version: 1.5.5
Release: %autorelease
Summary: An interval arithmetic library based on MPFR
@@ -9,21 +11,16 @@ Summary: An interval arithmetic library based on MPFR
# src/inits2.c: LGPL-3.0-or-later
License: LGPL-3.0-or-later AND LGPL-2.1-or-later
URL: https://perso.ens-lyon.fr/nathalie.revol/software.html
-VCS: git:https://gitlab.inria.fr/mpfi/mpfi.git
-Source: https://perso.ens-lyon.fr/nathalie.revol/softwares/%{name}-%{version}.tar.xz
-# Fix possible use of initialized variables
-Patch: %{name}-uninit.patch
-# Fix mismatched type declarations
-Patch: %{name}-mismatched-type.patch
-# Fix incorrect use of the address-of operator
-Patch: %{name}-bad-ref.patch
-# Fix a missing #include in a test file
-Patch: %{name}-test.patch
+VCS: git:%{giturl}.git
+Source: %{giturl}/-/archive/%{version}/%{name}-%{version}.tar.bz2
# See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
+BuildRequires: autoconf
+BuildRequires: automake
BuildRequires: gcc
+BuildRequires: libtool
BuildRequires: make
BuildRequires: mpfr-devel
BuildRequires: gmp-devel
@@ -58,16 +55,10 @@ applications that use %{name}.
%autosetup -p1
%conf
-# In the 1.5.4 release, these two tests try to call functions with mismatched
-# signatures, then segfault. It is not clear to me how to fix them.
-sed -i 's/ tdiv_ext\$(EXEEXT)//;s/ trec_sqrt\$(EXEEXT)//' tests/Makefile.in
-
-# In the 1.5.4 release, the data file needed by this test is missing.
-sed -i 's/texp10\$(EXEEXT) //' tests/Makefile.in
-
# Fix the pkgconfig file
sed -i 's/ -lmpfr -lgmp/\nLibs.private:&/' mpfi.pc.in
+autoreconf -fi
%configure --disable-static
%build
diff --git a/sources b/sources
index 4a54768..7665c08 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (mpfi-1.5.4.tar.xz) = f0ff65b6450bd5ea726a501ba053a8a72e7d8bee2c36e38f7fc35a229652f1536f40a82a13c6b6d499122f76f93eff0c760411c6297adc449b0fcc7306a9dd54
+SHA512 (mpfi-1.5.5.tar.bz2) = 86f7dd99336d1558a8bce4381bea7fe9f846b9562281508d3c358fccbe41c4dc04a493931b45694696b78c84bdb8ab24c980a3840dc5ea2a19bd50dd8aa3765b
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-01 22:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 22:42 [rpms/mpfi] rawhide: Version 1.5.5 Jerry James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox