2
0
Fridrich Strba 2017-05-31 18:49:16 +00:00 committed by Git OBS Bridge
parent f7852320a5
commit 5d1bbb8bc8
5 changed files with 15 additions and 25 deletions

View File

@ -1,16 +0,0 @@
Index: winpthreads/src/thread.c
===================================================================
--- winpthreads.orig/src/thread.c
+++ winpthreads/src/thread.c
@@ -295,8 +295,10 @@ push_pthread_mem (_pthread_v *sv)
memset (sv, 0, sizeof(struct _pthread_v));
if (pthr_last == NULL)
pthr_root = pthr_last = sv;
- else
+ else {
pthr_last->next = sv;
+ pthr_last = sv;
+ }
pthread_mutex_unlock (&mtx_pthr_locked);
}

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ab4facffeeff18eee30446816a53830c1795fc9db9ae4ca8ed0d3f4ffe5449fb
size 315696

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e4d736360c10e5e040aba74e68b6c396ab3baf8d426cb12a3fe503a36aef08bf
size 374887

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Mar 28 11:43:07 UTC 2017 - idonmez@suse.com
- Update to version 5.0.2
* Fix some crashes in due to misaligned memory access when
used with some SSE instructions.
- Drop memleak.patch, fixed upstream.
-------------------------------------------------------------------
Sat Jan 14 20:40:09 UTC 2017 - idonmez@suse.com

View File

@ -17,18 +17,17 @@
Name: mingw32-winpthreads
Version: 5.0.1
Version: 5.0.2
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://download.sf.net/mingw-w64/mingw-w64-v5.0-rc1.tar.bz2
#DL-URL: http://downloads.sf.net/mingw-w64/mingw-w64-v5.0-rc1.tar.bz2
Source: mingw-w64-winpthreads-%version.tar.xz
Source9: %name-rpmlintrc
Patch1: memleak.patch
Patch2: gcc7.patch
Patch0: gcc7.patch
BuildRequires: mingw32-cross-gcc-bootstrap
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
@ -65,8 +64,7 @@ mingw-w64's implementation of POSIX threads for Windows.
%prep
%setup -q -n winpthreads
%patch1 -p1
%patch2 -p1
%patch0 -p1
%build
# The build is trying to link with libpthread.a but it has no need