[packages/crossmingw32-gcc] - updated to 11.5.0

qboosh qboosh at pld-linux.org
Fri Aug 16 10:28:10 CEST 2024


commit c9299096af38d4e17d92d028dafbd46a320e9600
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Aug 16 09:21:04 2024 +0200

    - updated to 11.5.0

 crossmingw32-gcc.spec  |  7 ++++---
 gcc-mingw32.patch      | 19 +++++--------------
 gcc-pthreads-w32.patch | 37 ++++++++++++++++++++++++-------------
 3 files changed, 33 insertions(+), 30 deletions(-)
---
diff --git a/crossmingw32-gcc.spec b/crossmingw32-gcc.spec
index 172b049..cc4b1eb 100644
--- a/crossmingw32-gcc.spec
+++ b/crossmingw32-gcc.spec
@@ -17,13 +17,13 @@ Summary(pl.UTF-8):	Skrośne narzędzia programistyczne GNU dla MinGW32 - gcc
 Summary(pt_BR.UTF-8):	Utilitários para desenvolvimento de binários da GNU - MinGW32 gcc
 Summary(tr.UTF-8):	GNU geliştirme araçları - MinGW32 gcc
 Name:		crossmingw32-gcc
-Version:	10.5.0
+Version:	11.5.0
 Release:	1
 Epoch:		1
 License:	GPL v3+
 Group:		Development/Languages
 Source0:	https://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz
-# Source0-md5:	c7d1958570fbd1cd859b015774b9987a
+# Source0-md5:	03473f26c87e05e789a32208f1fe4491
 %define		w32api_ver	5.4.2
 #Source1Download: https://osdn.net/projects/mingw/releases/
 Source1:	https://osdn.net/projects/mingw/downloads/74926/w32api-%{w32api_ver}-mingw32-dev.tar.xz
@@ -40,7 +40,7 @@ Patch2:		%{name}-lfs.patch
 Patch3:		gcc-mingw32.patch
 Patch4:		gcc-build-libvtv.patch
 Patch5:		gcc-pthreads-w32.patch
-URL:		http://gcc.gnu.org/
+URL:		https://gcc.gnu.org/
 BuildRequires:	autoconf >= 2.64
 BuildRequires:	automake >= 1:1.11.1
 BuildRequires:	bison
@@ -730,6 +730,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{archbindir}/%{target}-c++
 %attr(755,root,root) %{archbindir}/%{target}-g++
 %attr(755,root,root) %{gcclibdir}/cc1plus
+%attr(755,root,root) %{gcclibdir}/g++-mapper-server
 %{archlibdir}/libstdc++.dll.a
 %{archlibdir}/libstdc++.la
 %{archlibdir}/libstdc++fs.a
diff --git a/gcc-mingw32.patch b/gcc-mingw32.patch
index af1de44..04d16cc 100644
--- a/gcc-mingw32.patch
+++ b/gcc-mingw32.patch
@@ -47,13 +47,15 @@
  // The sized deletes are defined in other files.
  #pragma GCC diagnostic ignored "-Wsized-deallocation"
  
---- gcc-10.4.0/libstdc++-v3/src/filesystem/ops-common.h.orig	2023-06-26 19:29:27.267246537 +0200
-+++ gcc-10.4.0/libstdc++-v3/src/filesystem/ops-common.h	2023-06-26 20:39:47.401050776 +0200
-@@ -115,7 +115,7 @@ namespace __gnu_posix
+--- gcc-11.5.0/libstdc++-v3/src/filesystem/ops-common.h.orig	2024-08-15 21:59:14.425694267 +0200
++++ gcc-11.5.0/libstdc++-v3/src/filesystem/ops-common.h	2024-08-15 22:02:27.797980013 +0200
+@@ -157,8 +157,8 @@ namespace __gnu_posix
      return -1;
    }
  
+-  using off_t = _off64_t;
 -  inline int truncate(const wchar_t* path, _off64_t length)
++  using off_t = __off64_t;
 +  inline int truncate(const wchar_t* path, __off64_t length)
    {
      const int fd = ::_wopen(path, _O_BINARY|_O_RDWR);
@@ -196,14 +198,3 @@
  		  p = "NONE";
  		  break;
  		case CC_UNSPECIFIED:
---- gcc-10.4.0/libstdc++-v3/src/filesystem/ops.cc.orig	2022-06-28 10:54:32.000000000 +0200
-+++ gcc-10.4.0/libstdc++-v3/src/filesystem/ops.cc	2023-06-27 19:57:41.412644984 +0200
-@@ -971,7 +971,7 @@ fs::permissions(const path& p, perms prm
-     err = errno;
- #else
-   if (nofollow && is_symlink(st))
--    ec = std::make_error_code(std::errc::operation_not_supported);
-+    ec = std::make_error_code(std::errc::function_not_supported);
-   else if (posix::chmod(p.c_str(), static_cast<mode_t>(prms)))
-     err = errno;
- #endif
diff --git a/gcc-pthreads-w32.patch b/gcc-pthreads-w32.patch
index e17da84..0d81453 100644
--- a/gcc-pthreads-w32.patch
+++ b/gcc-pthreads-w32.patch
@@ -18,18 +18,18 @@
    else
      return (objc_thread_t) 1;
  }
---- gcc-10.4.0/libstdc++-v3/include/std/thread.orig	2022-06-28 10:54:31.000000000 +0200
-+++ gcc-10.4.0/libstdc++-v3/include/std/thread	2023-06-26 20:52:28.956925074 +0200
-@@ -299,7 +299,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
-     // can't safely use __gthread_equal on default-constructed values (nor
-     // the non-zero value returned by this_thread::get_id() for
-     // single-threaded programs using GNU libc). Assume EqualityComparable.
--    return __x._M_thread == __y._M_thread;
-+    return __x._M_thread.p == __y._M_thread.p;
-   }
- 
+--- gcc-11.5.0/libstdc++-v3/include/std/thread.orig	2024-07-19 07:52:47.505554777 +0200
++++ gcc-11.5.0/libstdc++-v3/include/std/thread	2024-08-15 22:13:23.114429860 +0200
+@@ -60,7 +60,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
  #if __cpp_lib_three_way_comparison
-@@ -316,7 +316,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
+   inline strong_ordering
+   operator<=>(thread::id __x, thread::id __y) noexcept
+-  { return __x._M_thread <=> __y._M_thread; }
++  { return __x._M_thread.p <=> __y._M_thread.p; }
+ #else
+   inline bool
+   operator!=(thread::id __x, thread::id __y) noexcept
+@@ -71,7 +71,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
    {
      // Pthreads doesn't define any way to do this, so we just have to
      // assume native_handle_type is LessThanComparable.
@@ -38,7 +38,18 @@
    }
  
    inline bool
-@@ -340,7 +340,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
+--- gcc-11.5.0/libstdc++-v3/include/bits/std_thread.h.orig	2024-07-19 07:52:47.461554039 +0200
++++ gcc-11.5.0/libstdc++-v3/include/bits/std_thread.h	2024-08-16 07:28:49.547218422 +0200
+@@ -290,7 +290,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
+     // can't safely use __gthread_equal on default-constructed values (nor
+     // the non-zero value returned by this_thread::get_id() for
+     // single-threaded programs using GNU libc). Assume EqualityComparable.
+-    return __x._M_thread == __y._M_thread;
++    return __x._M_thread.p == __y._M_thread.p;
+   }
+ 
+   // N.B. other comparison operators are defined in <thread>
+@@ -303,7 +303,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
      {
        size_t
        operator()(const thread::id& __id) const noexcept
@@ -46,4 +57,4 @@
 +      { return std::_Hash_impl::hash(__id._M_thread.p); }
      };
  
-   template<class _CharT, class _Traits>
+   namespace this_thread
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/crossmingw32-gcc.git/commitdiff/c9299096af38d4e17d92d028dafbd46a320e9600



More information about the pld-cvs-commit mailing list