From 911604b38aa4629b9d93987b82f447d938aac337b54bcc09c6dd7c51bb174732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 22 Nov 2017 09:53:38 +0000 Subject: [PATCH] - Update to version 5.0.3 OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-winpthreads?expand=0&rev=25 --- gcc7.patch | 42 ------------------------------ mingw-w64-winpthreads-5.0.2.tar.xz | 3 --- mingw-w64-winpthreads-5.0.3.tar.xz | 3 +++ mingw32-winpthreads.changes | 5 ++++ mingw32-winpthreads.spec | 6 ++--- 5 files changed, 10 insertions(+), 49 deletions(-) delete mode 100644 gcc7.patch delete mode 100644 mingw-w64-winpthreads-5.0.2.tar.xz create mode 100644 mingw-w64-winpthreads-5.0.3.tar.xz diff --git a/gcc7.patch b/gcc7.patch deleted file mode 100644 index 3e56782..0000000 --- a/gcc7.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- winpthreads/src/libgcc/dll_math.c 2013-04-10 20:11:34.000000000 +0200 -+++ winpthreads/src/libgcc/dll_math.c 2017-05-31 13:02:25.869883546 +0200 -@@ -120,6 +120,7 @@ - u_quad_t __udivdi3(u_quad_t a, u_quad_t b); - u_quad_t __umoddi3(u_quad_t a, u_quad_t b); - int __ucmpdi2(u_quad_t a, u_quad_t b); -+quad_t __divmoddi4(quad_t a, quad_t b, quad_t *rem); - - #endif /* !_LIBKERN_QUAD_H_ */ - -@@ -546,6 +547,31 @@ - (void)__qdivrem(a, b, &r); - return (r); - } -+ -+/* -+ * Divide two signed quads. -+ * This function is new in GCC 7. -+ */ -+quad_t -+__divmoddi4(a, b, rem) -+ quad_t a, b, *rem; -+{ -+ u_quad_t ua, ub, uq, ur; -+ int negq, negr; -+ -+ if (a < 0) -+ ua = -(u_quad_t)a, negq = 1, negr = 1; -+ else -+ ua = a, negq = 0, negr = 0; -+ if (b < 0) -+ ub = -(u_quad_t)b, negq ^= 1; -+ else -+ ub = b; -+ uq = __qdivrem(ua, ub, &ur); -+ if (rem) -+ *rem = (negr ? -ur : ur); -+ return (negq ? -uq : uq); -+} - #else - static int __attribute__((unused)) dummy; - #endif /*deined (_X86_) && !defined (__x86_64__)*/ diff --git a/mingw-w64-winpthreads-5.0.2.tar.xz b/mingw-w64-winpthreads-5.0.2.tar.xz deleted file mode 100644 index a310781..0000000 --- a/mingw-w64-winpthreads-5.0.2.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e4d736360c10e5e040aba74e68b6c396ab3baf8d426cb12a3fe503a36aef08bf -size 374887 diff --git a/mingw-w64-winpthreads-5.0.3.tar.xz b/mingw-w64-winpthreads-5.0.3.tar.xz new file mode 100644 index 0000000..841fc50 --- /dev/null +++ b/mingw-w64-winpthreads-5.0.3.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47eb45d4861f0f56baa858710c86b9ddb162211b63a79daa188bda5723009f65 +size 315880 diff --git a/mingw32-winpthreads.changes b/mingw32-winpthreads.changes index 273f775..f671034 100644 --- a/mingw32-winpthreads.changes +++ b/mingw32-winpthreads.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 22 09:51:09 UTC 2017 - idonmez@suse.com + +- Update to version 5.0.3 + ------------------------------------------------------------------- Tue Mar 28 11:43:07 UTC 2017 - idonmez@suse.com diff --git a/mingw32-winpthreads.spec b/mingw32-winpthreads.spec index dc910cb..a360bf5 100644 --- a/mingw32-winpthreads.spec +++ b/mingw32-winpthreads.spec @@ -17,17 +17,16 @@ Name: mingw32-winpthreads -Version: 5.0.2 +Version: 5.0.3 Release: 0 Summary: A pthreads implementation for Windows License: MIT and BSD-3-Clause Group: Development/Libraries/C and C++ Url: http://mingw-w64.sf.net/ -#DL-URL: http://downloads.sf.net/mingw-w64/mingw-w64-v5.0-rc1.tar.bz2 +#DL-URL: http://downloads.sf.net/mingw-w64/mingw-w64-v5.0.3.tar.bz2 Source: mingw-w64-winpthreads-%version.tar.xz Source9: %name-rpmlintrc -Patch0: gcc7.patch BuildRequires: mingw32-cross-gcc-bootstrap BuildRequires: mingw32-cross-pkg-config BuildRequires: mingw32-filesystem @@ -64,7 +63,6 @@ mingw-w64's implementation of POSIX threads for Windows. %prep %setup -q -n winpthreads -%patch0 -p1 %build # The build is trying to link with libpthread.a but it has no need