Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mingw64-mpfr for openSUSE:Factory 
checked in at 2026-09-10 17:41:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mingw64-mpfr (Old)
 and      /work/SRC/openSUSE:Factory/.mingw64-mpfr.new.1265 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mingw64-mpfr"

Thu Sep 10 17:41:16 2026 rev:3 rq:1376921 version:3.1.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/mingw64-mpfr/mingw64-mpfr.changes        
2021-03-29 18:21:44.502260039 +0200
+++ /work/SRC/openSUSE:Factory/.mingw64-mpfr.new.1265/mingw64-mpfr.changes      
2026-09-10 17:41:22.507659395 +0200
@@ -1,0 +2,6 @@
+Thu Sep 10 08:39:05 UTC 2026 - Bernhard Wiedemann <[email protected]>
+
+- Add mpfr-no-dllexport-memfuncs.patch: drop the dllexport from the
+  thread-local memory function pointers, which GCC 15+ rejects.
+
+-------------------------------------------------------------------

New:
----
  mpfr-no-dllexport-memfuncs.patch

----------(New B)----------
  New:
- Add mpfr-no-dllexport-memfuncs.patch: drop the dllexport from the
  thread-local memory function pointers, which GCC 15+ rejects.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mingw64-mpfr.spec ++++++
--- /var/tmp/diff_new_pack.UfUiLw/_old  2026-09-10 17:41:23.275691536 +0200
+++ /var/tmp/diff_new_pack.UfUiLw/_new  2026-09-10 17:41:23.276691578 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package mingw64-mpfr
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,7 @@
 # upstream removed the file unfortunately
 #Source:         http://mpfr.org/mpfr-current/mpfr-%{version}.tar.xz
 Source:         mpfr-%{version}.tar.xz
+Patch0:         mpfr-no-dllexport-memfuncs.patch
 #!BuildIgnore: post-build-checks
 BuildRequires:  mingw64-cross-gcc
 BuildRequires:  mingw64-gmp-devel

++++++ mpfr-no-dllexport-memfuncs.patch ++++++
Subject: Do not dllexport the thread-local memory function pointers

MPFR 3.1.3 made mpfr_allocate_func and friends thread-local, but left the
__MPFR_DECLSPEC on their declarations.  Windows cannot export a
thread-local variable and GCC 15 and later reject the combination:

  mpfr-gmp.h:273:50: error: thread-local variable 'mpfr_allocate_func'
  declared as dllexport

The 3.1.3 MPFR_WIN_THREAD_SAFE_DLL rework fixed the same problem for the
variables declared in mpfr-impl.h, but missed these three.  They are only
ever reached through MPFR_GET_MEMFUNC from within the library, so no
accessor is needed -- dropping the declspec is enough.

--- a/src/mpfr-gmp.h
+++ b/src/mpfr-gmp.h
@@ -270,9 +270,11 @@
 #define __gmp_allocate_func   (MPFR_GET_MEMFUNC, mpfr_allocate_func)
 #define __gmp_reallocate_func (MPFR_GET_MEMFUNC, mpfr_reallocate_func)
 #define __gmp_free_func       (MPFR_GET_MEMFUNC, mpfr_free_func)
-__MPFR_DECLSPEC extern MPFR_THREAD_ATTR void * (*mpfr_allocate_func)   
_MPFR_PROTO ((size_t));
-__MPFR_DECLSPEC extern MPFR_THREAD_ATTR void * (*mpfr_reallocate_func) 
_MPFR_PROTO ((void *, size_t, size_t));
-__MPFR_DECLSPEC extern MPFR_THREAD_ATTR void   (*mpfr_free_func)       
_MPFR_PROTO ((void *, size_t));
+/* Not exported: nothing outside the library uses these, and a thread-local
+   variable cannot be dllexport'ed. */
+extern MPFR_THREAD_ATTR void * (*mpfr_allocate_func)   _MPFR_PROTO ((size_t));
+extern MPFR_THREAD_ATTR void * (*mpfr_reallocate_func) _MPFR_PROTO ((void *, 
size_t, size_t));
+extern MPFR_THREAD_ATTR void   (*mpfr_free_func)       _MPFR_PROTO ((void *, 
size_t));
 
 #endif
 

Reply via email to