From 1bde6096fe74556c5c977481d3ea0575765e13278022352d8c895ea1d405930b Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 3 Jul 2021 11:59:09 +0000 Subject: [PATCH 1/2] - Update to release 9.0.0 OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-headers?expand=0&rev=48 --- mingw-w64-v8.0.0.tar.bz2 | 3 --- mingw-w64-v9.0.0.tar.bz2 | 3 +++ mingw32-headers.changes | 8 ++++++++ mingw32-headers.spec | 11 ++++------- 4 files changed, 15 insertions(+), 10 deletions(-) delete mode 100644 mingw-w64-v8.0.0.tar.bz2 create mode 100644 mingw-w64-v9.0.0.tar.bz2 diff --git a/mingw-w64-v8.0.0.tar.bz2 b/mingw-w64-v8.0.0.tar.bz2 deleted file mode 100644 index 267233f..0000000 --- a/mingw-w64-v8.0.0.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:44c740ea6ab3924bc3aa169bad11ad3c5766c5c8459e3126d44eabb8735a5762 -size 9370799 diff --git a/mingw-w64-v9.0.0.tar.bz2 b/mingw-w64-v9.0.0.tar.bz2 new file mode 100644 index 0000000..f14476b --- /dev/null +++ b/mingw-w64-v9.0.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1929b94b402f5ff4d7d37a9fe88daa9cc55515a6134805c104d1794ae22a4181 +size 9537758 diff --git a/mingw32-headers.changes b/mingw32-headers.changes index 6783092..519561f 100644 --- a/mingw32-headers.changes +++ b/mingw32-headers.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Jul 2 12:34:00 UTC 2021 - Jan Engelhardt + +- Update to release 9.0.0 + * Various new and updated API headers + * at_quick_exit implementation + * dism API + ------------------------------------------------------------------- Thu Dec 3 12:18:00 UTC 2020 - Tobias Klausmann diff --git a/mingw32-headers.spec b/mingw32-headers.spec index 4c0b494..2d4d2a5 100644 --- a/mingw32-headers.spec +++ b/mingw32-headers.spec @@ -1,7 +1,7 @@ # # spec file for package mingw32-headers # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: mingw32-headers -Version: 8.0.0 +Version: 9.0.0 Release: 0 Summary: MinGW-w64 headers for Win32 and Win64 License: SUSE-Public-Domain @@ -29,7 +29,6 @@ BuildRequires: mingw32-filesystem BuildRequires: xz #!BuildIgnore: post-build-checks Requires: mingw32-unistd-pthread-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description @@ -50,24 +49,22 @@ and only exist to satisfy dependencies in MinGW's unistd.h until an actual pthread implementation (like winpthreads) is installed. %prep -%setup -q -n mingw-w64-v%{version}/mingw-w64-headers +%autosetup -n mingw-w64-v%version/mingw-w64-headers %build %_mingw32_configure \ --enable-sdk=all \ --enable-secure-api -make %{?_smp_mflags} +%make_build %install %make_install %files -%defattr(-,root,root) %_mingw32_includedir/ %exclude %_mingw32_includedir/pthread_*.h %files dummy-pthread -%defattr(-,root,root) %dir %_mingw32_includedir %_mingw32_includedir/pthread_*.h From c511126d07852aa7c5477a3d5ebe7ec284f661542eb9a00c2c66cdf7b7a69e77 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 8 Jul 2021 07:18:41 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-headers?expand=0&rev=49 --- mingw-w64-v9.0.0-strnlen_s.patch | 14 ++++++++++++++ mingw32-headers.changes | 9 +++++++++ mingw32-headers.spec | 3 ++- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 mingw-w64-v9.0.0-strnlen_s.patch diff --git a/mingw-w64-v9.0.0-strnlen_s.patch b/mingw-w64-v9.0.0-strnlen_s.patch new file mode 100644 index 0000000..01cdfca --- /dev/null +++ b/mingw-w64-v9.0.0-strnlen_s.patch @@ -0,0 +1,14 @@ +--- mingw-w64-v9.0.0/mingw-w64-headers/crt/sec_api/string_s.h 2021-05-22 14:34:25.000000000 +0200 ++++ mingw-w64-v9.0.0/mingw-w64-headers/crt/sec_api/string_s.h 2021-07-08 09:10:48.082143084 +0200 +@@ -43,9 +43,11 @@ + _CRTIMP errno_t __cdecl strcat_s(char *_Dst, rsize_t _SizeInBytes, const char * _Src); + __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1(errno_t, strcat_s, char, _Dest, const char *, _Source) + ++#ifdef _NEEDS_STRNLEN_S + __forceinline size_t __cdecl strnlen_s(const char * _src, size_t _count) { + return _src ? strnlen(_src, _count) : 0; + } ++#endif + + _SECIMP errno_t __cdecl memmove_s(void *_dest,size_t _numberOfElements,const void *_src,size_t _count); + #ifndef _WSTRING_S_DEFINED diff --git a/mingw32-headers.changes b/mingw32-headers.changes index 519561f..136e17e 100644 --- a/mingw32-headers.changes +++ b/mingw32-headers.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Jul 8 07:13:22 UTC 2021 - Fridrich Strba + +- Added patch: + * mingw-w64-v9.0.0-strnlen_s.patch + + work around the "multiple definition of `strnlen_s'" error + + the function still accessible by defining _NEEDS_STRNLEN_S + before inclusion of the header + ------------------------------------------------------------------- Fri Jul 2 12:34:00 UTC 2021 - Jan Engelhardt diff --git a/mingw32-headers.spec b/mingw32-headers.spec index 2d4d2a5..7abc7aa 100644 --- a/mingw32-headers.spec +++ b/mingw32-headers.spec @@ -25,6 +25,7 @@ Group: Development/Libraries/C and C++ URL: http://mingw-w64.sf.net/ Source: http://downloads.sf.net/mingw-w64/mingw-w64-v%{version}.tar.bz2 Source1000: %name-rpmlintrc +Patch0: mingw-w64-v9.0.0-strnlen_s.patch BuildRequires: mingw32-filesystem BuildRequires: xz #!BuildIgnore: post-build-checks @@ -49,7 +50,7 @@ and only exist to satisfy dependencies in MinGW's unistd.h until an actual pthread implementation (like winpthreads) is installed. %prep -%autosetup -n mingw-w64-v%version/mingw-w64-headers +%autosetup -n mingw-w64-v%version/mingw-w64-headers -p2 %build %_mingw32_configure \