From f049fa052d9362f70f31bb37b8b5c196510a3e35 Mon Sep 17 00:00:00 2001 From: Alexey Pavlov Date: Sun, 9 Oct 2016 19:03:54 +0300 Subject: [PATCH] Update mingw-w64 runtime to latest --- mingw-w64-crt-git/PKGBUILD | 2 +- .../0005-bessel_complex.patch | 27 +++++++++++++++++++ mingw-w64-headers-git/PKGBUILD | 9 ++++--- mingw-w64-winpthreads-git/PKGBUILD | 2 +- 4 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 mingw-w64-headers-git/0005-bessel_complex.patch diff --git a/mingw-w64-crt-git/PKGBUILD b/mingw-w64-crt-git/PKGBUILD index 7ed9058c94..03d335ed94 100644 --- a/mingw-w64-crt-git/PKGBUILD +++ b/mingw-w64-crt-git/PKGBUILD @@ -4,7 +4,7 @@ _realname=crt pkgbase=mingw-w64-${_realname}-git pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}-git" replaces=("${MINGW_PACKAGE_PREFIX}-${_realname}-svn") -pkgver=5.0.0.4735.9877f24 +pkgver=5.0.0.4742.28dfd0a pkgrel=1 pkgdesc='MinGW-w64 CRT for Windows' arch=('any') diff --git a/mingw-w64-headers-git/0005-bessel_complex.patch b/mingw-w64-headers-git/0005-bessel_complex.patch new file mode 100644 index 0000000000..58965ca5f3 --- /dev/null +++ b/mingw-w64-headers-git/0005-bessel_complex.patch @@ -0,0 +1,27 @@ +From 556ba2e45435717a4502e6c77b7af1e5daee8936 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B8=CC=86=20=D0=9F?= + =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= +Date: Sun, 9 Oct 2016 17:33:44 +0300 +Subject: [PATCH] Allow to use bessel and complex functions without undefining + __STRICT_ANSI__ + +--- + mingw-w64-headers/crt/math.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mingw-w64-headers/crt/math.h b/mingw-w64-headers/crt/math.h +index b06ca79..d3617d0 100644 +--- a/mingw-w64-headers/crt/math.h ++++ b/mingw-w64-headers/crt/math.h +@@ -263,7 +263,7 @@ extern "C" { + #define EDOM 33 + #define ERANGE 34 + +-#ifndef __STRICT_ANSI__ ++#if !defined(__STRICT_ANSI__) || defined(_POSIX_C_SOURCE) || defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) + + #ifndef _COMPLEX_DEFINED + #define _COMPLEX_DEFINED +-- +2.9.0 + diff --git a/mingw-w64-headers-git/PKGBUILD b/mingw-w64-headers-git/PKGBUILD index a244a3ec94..a9d04811d2 100644 --- a/mingw-w64-headers-git/PKGBUILD +++ b/mingw-w64-headers-git/PKGBUILD @@ -5,7 +5,7 @@ pkgbase=mingw-w64-${_realname}-git pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}-git" replaces=("${MINGW_PACKAGE_PREFIX}-${_realname}-svn") pkgdesc="MinGW-w64 headers for Windows" -pkgver=5.0.0.4735.9877f24 +pkgver=5.0.0.4743.8eeb5fa pkgrel=1 arch=('any') url="http://mingw-w64.sourceforge.net" @@ -17,10 +17,12 @@ conflicts=("${MINGW_PACKAGE_PREFIX}-${_realname}") options=('!strip' '!libtool' '!emptydirs') source=("mingw-w64"::"git://git.code.sf.net/p/mingw-w64/mingw-w64" "0003-dxgi-Add-missing-dxgi-1.2-structs-and-interfaces.patch" - "0004-d3d11-Add-missing-d3d11-1.1-structs-and-interfaces.patch") + "0004-d3d11-Add-missing-d3d11-1.1-structs-and-interfaces.patch" + "0005-bessel_complex.patch") sha256sums=('SKIP' '677642bbb0df3f1e0467f075f24c720657e9ed912a6e69cbf189352271fc09c1' - 'c6c996b273ee049a2c0b9570f007d2d76a95ff56abb3b147f156e6a221a561ef') + 'c6c996b273ee049a2c0b9570f007d2d76a95ff56abb3b147f156e6a221a561ef' + '1196f65f87f9f45adb18acab5076436ab7268ac3125f829d42899624f741cd6d') pkgver() { cd "${srcdir}/mingw-w64" @@ -35,6 +37,7 @@ prepare() { git am --committer-date-is-author-date "${srcdir}/"0003-dxgi-Add-missing-dxgi-1.2-structs-and-interfaces.patch git am --committer-date-is-author-date "${srcdir}/"0004-d3d11-Add-missing-d3d11-1.1-structs-and-interfaces.patch + git am --committer-date-is-author-date "${srcdir}/"0005-bessel_complex.patch cd ${srcdir}/mingw-w64/mingw-w64-headers touch include/windows.*.h include/wincrypt.h include/prsht.h diff --git a/mingw-w64-winpthreads-git/PKGBUILD b/mingw-w64-winpthreads-git/PKGBUILD index 3cd3327b4e..a249092d3e 100644 --- a/mingw-w64-winpthreads-git/PKGBUILD +++ b/mingw-w64-winpthreads-git/PKGBUILD @@ -5,7 +5,7 @@ _realname=winpthreads pkgbase=mingw-w64-${_realname}-git pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}-git" "${MINGW_PACKAGE_PREFIX}-libwinpthread-git") -pkgver=5.0.0.4733.ae160b2 +pkgver=5.0.0.4741.2c8939a pkgrel=1 pkgdesc="MinGW-w64 winpthreads library" url="http://mingw-w64.sourceforge.net"