[packages/crossmingw32-std-threads] - added include patch (mutex header needs <cstdio>)
qboosh
qboosh at pld-linux.org
Sat Jun 25 09:40:47 CEST 2016
commit 884f5cfe4b62c4bb2feb192f1212ef16e70e8b2e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jun 25 09:40:37 2016 +0200
- added include patch (mutex header needs <cstdio>)
crossmingw32-std-threads.spec | 4 ++++
mingw-std-threads-include.patch | 19 +++++++++++++++++++
2 files changed, 23 insertions(+)
---
diff --git a/crossmingw32-std-threads.spec b/crossmingw32-std-threads.spec
index f452ea9..48a3db9 100644
--- a/crossmingw32-std-threads.spec
+++ b/crossmingw32-std-threads.spec
@@ -9,8 +9,11 @@ License: BSD
Group: Development/Libraries
Source0: https://github.com/meganz/mingw-std-threads/archive/%{gitref}/mingw-std-threads-%{snap}.tar.gz
# Source0-md5: e5f0fcdb69d99ab493f45e65767f9346
+Patch0: mingw-std-threads-include.patch
URL: https://github.com/meganz/mingw-std-threads
Requires: crossmingw32-gcc-c++ >= 1:4.7
+Requires: crossmingw32-runtime
+Requires: crossmingw32-w32api
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define no_install_post_strip 1
@@ -33,6 +36,7 @@ brakujących w GCC dla MinGW.
%prep
%setup -q -n mingw-std-threads-%{gitref}
+%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/mingw-std-threads-include.patch b/mingw-std-threads-include.patch
new file mode 100644
index 0000000..ddbce84
--- /dev/null
+++ b/mingw-std-threads-include.patch
@@ -0,0 +1,19 @@
+--- mingw-std-threads-b7e670d91d33b7ce5836c6255d37e69f17eb3687/mingw.mutex.h.orig 2016-03-16 15:05:58.000000000 +0100
++++ mingw-std-threads-b7e670d91d33b7ce5836c6255d37e69f17eb3687/mingw.mutex.h 2016-06-25 09:17:48.884289745 +0200
+@@ -41,6 +41,7 @@
+
+ #include <windows.h>
+ #include <chrono>
++#include <cstdio>
+ #include <system_error>
+
+ #ifndef EPROTO
+@@ -105,7 +106,7 @@
+ DWORD self = GetCurrentThreadId();
+ if (mOwnerThread == self)
+ {
+- fprintf(stderr, "FATAL: Recursive locking or non-recursive mutex detected. Throwing sysetm exception\n");
++ fprintf(stderr, "FATAL: Recursive locking or non-recursive mutex detected. Throwing system exception\n");
+ fflush(stderr);
+ throw system_error(EDEADLK, generic_category());
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crossmingw32-std-threads.git/commitdiff/884f5cfe4b62c4bb2feb192f1212ef16e70e8b2e
More information about the pld-cvs-commit
mailing list