From d24d56aea4af6b77847f9ba0cc0c399b1c46a819 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Thu, 5 Jun 2025 04:41:25 +0000 Subject: [PATCH] openlibm: update to 0.8.7 --- .../0002-fix-aarch64-build.patch | 42 ------------------- mingw-w64-openlibm/PKGBUILD | 15 +++---- 2 files changed, 6 insertions(+), 51 deletions(-) delete mode 100644 mingw-w64-openlibm/0002-fix-aarch64-build.patch diff --git a/mingw-w64-openlibm/0002-fix-aarch64-build.patch b/mingw-w64-openlibm/0002-fix-aarch64-build.patch deleted file mode 100644 index 29c3579066..0000000000 --- a/mingw-w64-openlibm/0002-fix-aarch64-build.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- openlibm-0.8.6/include/openlibm_fenv_aarch64.h.orig 2025-02-10 12:03:13.000000000 +0100 -+++ openlibm-0.8.6/include/openlibm_fenv_aarch64.h 2025-03-10 22:38:32.629771200 +0100 -@@ -36,8 +36,8 @@ - #endif - - /* The high 32 bits contain fpcr, low 32 contain fpsr. */ --typedef __uint64_t fenv_t; --typedef __uint64_t fexcept_t; -+typedef uint64_t fenv_t; -+typedef uint64_t fexcept_t; - - /* Exception flags */ - #define FE_INVALID 0x00000001 -@@ -158,8 +158,8 @@ - __fenv_static inline int - fegetenv(fenv_t *__envp) - { -- __uint64_t fpcr; -- __uint64_t fpsr; -+ uint64_t fpcr; -+ uint64_t fpsr; - - __mrs_fpcr(fpcr); - __mrs_fpsr(fpsr); -@@ -179,7 +179,7 @@ - __msr_fpcr(__r); - - __mrs_fpsr(__r); -- *__envp |= (__uint32_t)__r; -+ *__envp |= (uint32_t)__r; - __r &= ~(_ENABLE_MASK); - __msr_fpsr(__r); - return (0); -@@ -190,7 +190,7 @@ - { - - __msr_fpcr((*__envp) >> 32); -- __msr_fpsr((fenv_t)(__uint32_t)*__envp); -+ __msr_fpsr((fenv_t)(uint32_t)*__envp); - return (0); - } - diff --git a/mingw-w64-openlibm/PKGBUILD b/mingw-w64-openlibm/PKGBUILD index 79a8170917..85b65162c6 100644 --- a/mingw-w64-openlibm/PKGBUILD +++ b/mingw-w64-openlibm/PKGBUILD @@ -3,8 +3,8 @@ _realname=openlibm pkgbase=mingw-w64-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") -pkgver=0.8.6 -pkgrel=3 +pkgver=0.8.7 +pkgrel=1 pkgdesc="High quality system independent, portable, open source libm implementation (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') @@ -14,11 +14,9 @@ license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-cc-libs") makedepends=("${MINGW_PACKAGE_PREFIX}-cc") source=("https://github.com/JuliaMath/${_realname}/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz" - "0001-openlibm-fix-pkgconfig-file.patch" - "0002-fix-aarch64-build.patch") -sha256sums=('347998968cfeb2f9b91de6a8e85d2ba92dec0915d53500a4bc483e056f85b94c' - 'e3f2974f26d1ea5b548b153408959f3f53ab5d920dec6b94fb69e75654a635f7' - '4bf23668a2f5865fa2d2421f85f7df35bf096bb131427bca15fb4cf4ea162c75') + "0001-openlibm-fix-pkgconfig-file.patch") +sha256sums=('e328a1d59b94748b111e022bca6a9d2fc0481fb57d23c87d90f394b559d4f062' + 'e3f2974f26d1ea5b548b153408959f3f53ab5d920dec6b94fb69e75654a635f7') # Helper macros to help make tasks easier # apply_patch_with_msg() { @@ -43,8 +41,7 @@ prepare() { cd "${srcdir}"/${_realname}-${pkgver} apply_patch_with_msg \ - 0001-openlibm-fix-pkgconfig-file.patch \ - 0002-fix-aarch64-build.patch + 0001-openlibm-fix-pkgconfig-file.patch } build() {