Date: Friday, November 25, 2022 @ 10:55:57
  Author: arojas
Revision: 462362

archrelease: copy trunk to testing-x86_64

Added:
  mpfr/repos/testing-x86_64/
  mpfr/repos/testing-x86_64/PKGBUILD
    (from rev 462361, mpfr/trunk/PKGBUILD)
  mpfr/repos/testing-x86_64/keys/
  mpfr/repos/testing-x86_64/patches.diff
    (from rev 462361, mpfr/trunk/patches.diff)

--------------+
 PKGBUILD     |   53 ++++++++++++++++++++++++++++++++++++
 patches.diff |   83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 136 insertions(+)

Copied: mpfr/repos/testing-x86_64/PKGBUILD (from rev 462361, 
mpfr/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2022-11-25 10:55:57 UTC (rev 462362)
@@ -0,0 +1,53 @@
+# Maintainer: David Runge <[email protected]>
+# Maintainer: Antonio Rojas <[email protected]>
+# Contributor: Allan McRae <[email protected]>
+# Contributor: damir <[email protected]>
+
+pkgname=mpfr
+_pkgver=4.1.1
+_patchver=1
+pkgrel=1
+pkgver=${_pkgver}.p${_patchver}
+#pkgver=$_pkgver
+pkgdesc='Multiple-precision floating-point library'
+arch=(x86_64)
+url='https://www.mpfr.org/'
+license=(GPL3 LGPL3)
+depends=(glibc gmp)
+source=(https://ftp.gnu.org/gnu/mpfr/mpfr-${_pkgver}.tar.xz{,.sig}
+        patches.diff) # wget https://www.mpfr.org/mpfr-4.1.1/allpatches -O 
patches.diff
+sha512sums=('be468749bd88870dec37be35e544983a8fb7bda638eb9414c37334b9d553099ea2aa067045f51ae2c8ab86d852ef833e18161d173e414af0928e9a438c9b91f1'
+            'SKIP'
+            
'aa98173d59a24d0f59acff0c2143db5623746db3f6445e300a018a124b35a6b57d631c357a9a890f23c748591f621a95d3a801bed7341b6c8b6ddcc86ecfb107')
+b2sums=('ce20baee2f060acb28b877ffe6fc40c5619cf6af231bd54ca6cfb3e42ef2d74a4ffbab96cf0b5dd6a162e558099a54701d42f34f5bf2256f256fe6f5ae2505d0'
+        'SKIP'
+        
'd6bed1d6fca2319db457096a81aca060c1bd934fcdf9c5f98ba44920a7e97c2a5e9c539ec554feb723fb98c84096e1cb615c0d973133c67f3c2097edc1c5b803')
+validpgpkeys=('07F3DBBECC1A39605078094D980C197698C3739D'
+              'A534BE3F83E241D918280AEB5831D11A0D4DB02A') # Vincent Lefevre 
<[email protected]>
+options=(debug)
+
+prepare() {
+  cd $pkgname-${_pkgver}
+
+  patch -p1 < "$srcdir"/patches.diff
+  autoreconf -fiv
+}
+
+build() {
+  cd $pkgname-${_pkgver}
+  ./configure --prefix=/usr \
+    --enable-thread-safe \
+    --enable-shared
+  make
+}
+
+check() {
+  cd $pkgname-${_pkgver}
+  make check
+  make check-exported-symbols
+}
+
+package() {
+  cd $pkgname-${_pkgver}
+  make DESTDIR="$pkgdir" install
+}

Copied: mpfr/repos/testing-x86_64/patches.diff (from rev 462361, 
mpfr/trunk/patches.diff)
===================================================================
--- testing-x86_64/patches.diff                         (rev 0)
+++ testing-x86_64/patches.diff 2022-11-25 10:55:57 UTC (rev 462362)
@@ -0,0 +1,83 @@
+diff -Naurd mpfr-4.1.1-a/PATCHES mpfr-4.1.1-b/PATCHES
+--- mpfr-4.1.1-a/PATCHES       2022-11-23 11:45:26.800476079 +0000
++++ mpfr-4.1.1-b/PATCHES       2022-11-23 11:45:26.844475966 +0000
+@@ -0,0 +1 @@
++mpfr_custom_get_kind
+diff -Naurd mpfr-4.1.1-a/VERSION mpfr-4.1.1-b/VERSION
+--- mpfr-4.1.1-a/VERSION       2022-11-17 13:28:44.000000000 +0000
++++ mpfr-4.1.1-b/VERSION       2022-11-23 11:45:26.844475966 +0000
+@@ -1 +1 @@
+-4.1.1
++4.1.1-p1
+diff -Naurd mpfr-4.1.1-a/src/mpfr.h mpfr-4.1.1-b/src/mpfr.h
+--- mpfr-4.1.1-a/src/mpfr.h    2022-11-17 13:28:44.000000000 +0000
++++ mpfr-4.1.1-b/src/mpfr.h    2022-11-23 11:45:26.840475978 +0000
+@@ -27,7 +27,7 @@
+ #define MPFR_VERSION_MAJOR 4
+ #define MPFR_VERSION_MINOR 1
+ #define MPFR_VERSION_PATCHLEVEL 1
+-#define MPFR_VERSION_STRING "4.1.1"
++#define MPFR_VERSION_STRING "4.1.1-p1"
+ 
+ /* User macros:
+    MPFR_USE_FILE:        Define it to make MPFR define functions dealing
+@@ -1027,7 +1027,7 @@
+ #if __GNUC__ > 2 || __GNUC_MINOR__ >= 95
+ #define mpfr_custom_get_kind(x)                                         \
+   __extension__ ({                                                      \
+-    mpfr_ptr _x = (x);                                                  \
++    mpfr_srcptr _x = (x);                                               \
+     _x->_mpfr_exp >  __MPFR_EXP_INF ?                                   \
+       (mpfr_int) MPFR_REGULAR_KIND * MPFR_SIGN (_x)                     \
+       : _x->_mpfr_exp == __MPFR_EXP_INF ?                               \
+diff -Naurd mpfr-4.1.1-a/src/version.c mpfr-4.1.1-b/src/version.c
+--- mpfr-4.1.1-a/src/version.c 2022-11-17 13:28:44.000000000 +0000
++++ mpfr-4.1.1-b/src/version.c 2022-11-23 11:45:26.844475966 +0000
+@@ -25,5 +25,5 @@
+ const char *
+ mpfr_get_version (void)
+ {
+-  return "4.1.1";
++  return "4.1.1-p1";
+ }
+diff -Naurd mpfr-4.1.1-a/tests/tstckintc.c mpfr-4.1.1-b/tests/tstckintc.c
+--- mpfr-4.1.1-a/tests/tstckintc.c     2022-05-06 13:47:17.000000000 +0000
++++ mpfr-4.1.1-b/tests/tstckintc.c     2022-11-23 11:45:26.836475987 +0000
+@@ -295,14 +295,16 @@
+ test_nan_inf_zero (void)
+ {
+   mpfr_ptr val;
++  mpfr_srcptr sval;  /* for compilation error checking */
+   int sign;
+   int kind;
+ 
+   reset_stack ();
+ 
+   val = new_mpfr (MPFR_PREC_MIN);
++  sval = val;
+   mpfr_set_nan (val);
+-  kind = (mpfr_custom_get_kind) (val);
++  kind = (mpfr_custom_get_kind) (sval);
+   if (kind != MPFR_NAN_KIND)
+     {
+       printf ("mpfr_custom_get_kind error: ");
+@@ -380,7 +382,8 @@
+ dummy_set_si (long si)
+ {
+   mpfr_t x;
+-  long * r = dummy_new ();
++  mpfr_srcptr px;  /* for compilation error checking */
++  long *r = dummy_new ();
+   int i1, i2, i3, i4, i5;
+ 
+   /* Check that the type "void *" can be used, like with the function.
+@@ -405,7 +408,8 @@
+   MPFR_ASSERTN (i5 == 1);
+ 
+   mpfr_set_si (x, si, MPFR_RNDN);
+-  r[0] = mpfr_custom_get_kind (x);
++  px = x;
++  r[0] = mpfr_custom_get_kind (px);
+ 
+   /* Check that the type "void *" can be used in C, like with the function
+      (forbidden in C++). Also check side effects. */

Reply via email to