pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/math/mpfi
Module Name: pkgsrc
Committed By: markd
Date: Sun Jun 16 11:36:58 UTC 2024
Modified Files:
pkgsrc/math/mpfi: distinfo
Added Files:
pkgsrc/math/mpfi/patches: patch-src_div__ext.c
Log Message:
mpfi: From Fedora - fixes build with gcc14
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/math/mpfi/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/math/mpfi/patches/patch-src_div__ext.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/math/mpfi/distinfo
diff -u pkgsrc/math/mpfi/distinfo:1.3 pkgsrc/math/mpfi/distinfo:1.4
--- pkgsrc/math/mpfi/distinfo:1.3 Tue Oct 26 10:55:49 2021
+++ pkgsrc/math/mpfi/distinfo Sun Jun 16 11:36:58 2024
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:55:49 nia Exp $
+$NetBSD: distinfo,v 1.4 2024/06/16 11:36:58 markd Exp $
BLAKE2s (mpfi-1.5.4.tgz) = a1c877b206301971e493e0d07f8501880def28422ef59f45c09f00699a175a73
SHA512 (mpfi-1.5.4.tgz) = 72ba7d8c950f4d4e2c7a3da8570cdcec08f75b73580cdf64c4cc3b24f8add23c46ccf78a6de2158e81bd77e6efabceebbae418988d536e7484356b8102e10ce1
Size (mpfi-1.5.4.tgz) = 261696 bytes
+SHA1 (patch-src_div__ext.c) = d34434cee7171afeb308b948fc008b257c0f2dc6
SHA1 (patch-tests_Makefile.am) = d0c41610b684c8d6e1862baed7157e40f551c469
Added files:
Index: pkgsrc/math/mpfi/patches/patch-src_div__ext.c
diff -u /dev/null pkgsrc/math/mpfi/patches/patch-src_div__ext.c:1.1
--- /dev/null Sun Jun 16 11:36:58 2024
+++ pkgsrc/math/mpfi/patches/patch-src_div__ext.c Sun Jun 16 11:36:58 2024
@@ -0,0 +1,50 @@
+$NetBSD: patch-src_div__ext.c,v 1.1 2024/06/16 11:36:58 markd Exp $
+
+From Fedora - fixes build with gcc14
+
+--- src/div_ext.c 2022-03-11 08:33:43.000000000 -0700
++++ 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);
Home |
Main Index |
Thread Index |
Old Index