From 97b0433a7b90d3c6631756d579b87f46b6e608dae8cd758207d96c70894519d8 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 28 Aug 2024 12:23:12 +0000 Subject: [PATCH] [info=9cf3f461f4f434535cc2754d17a3910c2d8532590fc18da9e2a4f2b8bb7ec0bc] OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-headers?expand=0&rev=56 --- .gitattributes | 23 +++ .gitignore | 1 + _scmsync.obsinfo | 4 + build.specials.obscpio | 3 + ...v11.0.1-fix-undefined-interface-type.patch | 14 ++ mingw-w64-v11.0.1.tar.bz2 | 3 + mingw-w64-v9.0.0-strnlen_s.patch | 14 ++ mingw32-headers-rpmlintrc | 2 + mingw32-headers.changes | 141 ++++++++++++++++++ mingw32-headers.spec | 73 +++++++++ 10 files changed, 278 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _scmsync.obsinfo create mode 100644 build.specials.obscpio create mode 100644 mingw-w64-v11.0.1-fix-undefined-interface-type.patch create mode 100644 mingw-w64-v11.0.1.tar.bz2 create mode 100644 mingw-w64-v9.0.0-strnlen_s.patch create mode 100644 mingw32-headers-rpmlintrc create mode 100644 mingw32-headers.changes create mode 100644 mingw32-headers.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..d10fc6b --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1699910305 +commit: 9cf3f461f4f434535cc2754d17a3910c2d8532590fc18da9e2a4f2b8bb7ec0bc +url: https://src.opensuse.org/mingw/mingw32-headers +revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..e163308 --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a28df3004357e4cda09f9cc81fd72ab577a6b4612415deed3eebb4af2897bf17 +size 256 diff --git a/mingw-w64-v11.0.1-fix-undefined-interface-type.patch b/mingw-w64-v11.0.1-fix-undefined-interface-type.patch new file mode 100644 index 0000000..c46a588 --- /dev/null +++ b/mingw-w64-v11.0.1-fix-undefined-interface-type.patch @@ -0,0 +1,14 @@ +diff -ur mingw-w64-v11.0.1.orig/mingw-w64-headers/include/msxml.h mingw-w64-v11.0.1/mingw-w64-headers/include/msxml.h +--- mingw-w64-v11.0.1.orig/mingw-w64-headers/include/msxml.h 2023-04-29 11:15:30.000000000 +0200 ++++ mingw-w64-v11.0.1/mingw-w64-headers/include/msxml.h 2023-11-11 15:16:47.191637105 +0100 +@@ -820,6 +820,10 @@ + END_INTERFACE + } IXMLDOMNodeVtbl; + ++#if defined(_WIN32) && !defined(interface) ++#define interface struct ++#endif ++ + interface IXMLDOMNode { + CONST_VTBL IXMLDOMNodeVtbl* lpVtbl; + }; diff --git a/mingw-w64-v11.0.1.tar.bz2 b/mingw-w64-v11.0.1.tar.bz2 new file mode 100644 index 0000000..db3662b --- /dev/null +++ b/mingw-w64-v11.0.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f66bce069ee8bed7439a1a13da7cb91a5e67ea6170f21317ac7f5794625ee10 +size 10057401 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-rpmlintrc b/mingw32-headers-rpmlintrc new file mode 100644 index 0000000..ac46eac --- /dev/null +++ b/mingw32-headers-rpmlintrc @@ -0,0 +1,2 @@ +addFilter("devel-file-in-non-devel-package") +addFilter("spurious-executable-perm") diff --git a/mingw32-headers.changes b/mingw32-headers.changes new file mode 100644 index 0000000..3719418 --- /dev/null +++ b/mingw32-headers.changes @@ -0,0 +1,141 @@ +------------------------------------------------------------------- +Sat Nov 11 14:18:28 UTC 2023 - Ralf Habacker + +- Added patch: + * mingw-w64-v11.0.1-fix-undefined-interface-type.patch + + fix build issue with gcc13: type 'interface' is undefined + +------------------------------------------------------------------- +Fri Nov 3 12:33:16 UTC 2023 - Jan Engelhardt + +- Update to release 11.0.1 + * New Hyper-V APIs + * Updates to DX12 headers and much more from Wine + * Many other new Win32 APIs + +------------------------------------------------------------------- +Mon Jun 27 16:37:24 UTC 2022 - Jan Engelhardt + +- Update to release 10 + * New msvcrt10, 20, 40, 70 and 71 import libraries. + * Updated wine imports + * Fix intrin.h compatibility with GCC-11 + +------------------------------------------------------------------- +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 + +- 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 + +- Update to new upstream release 8.0.0 + * New Hyper-V headers and libraries by Biswapriyo Nath + * Many headers updated from Wine by Jacek Caban. + * ARM math improvements by Martin Storsjö + * floating point fixes by Liu Hao + * many *printf compatibility fixes by Liu Hao and Martin Storsjö + * massive Windows App Store API updates by Steve Lhomme + * winstorecompat library updates by Martin Storsjö + * __USE_MINGW_ANSI_STDIO now automatically enabled in C99 and C11 mode when + not using UCRT by Pali Rohár + * wdm and ddk updates by Zebediah Figura + * UCRT for Windows Store Apps (-lucrtapp) by Martin Storsjö + * Audioclient and ActivateAudioInterfaceAsync API updates by Liu Hao + * DirectX SDKs are now always installed + +------------------------------------------------------------------- +Sat Nov 23 14:44:49 UTC 2019 - Ismail Dönmez + +- Update to new upstream release 7.0.0 + * _FORTIFY_SOURCE support thanks to Christian Franke. + * Lots of math fixes from Martin Storsjö. + * Many headers updated from Wine by Jacek Caban. + * UCRT support by Martin Storsjö. + +------------------------------------------------------------------- +Wed Oct 17 18:50:03 UTC 2018 - Jan Engelhardt + +- Update to new upstream release 6.0.0 + * C++ __cxa_atexit + * Massive additions to support UCRT + * Sync COM interface headers with Wine development + * WinRT additions + * ARM32 and ARM64 additions + * CRT library api-ms-win-core additions + * CRT library def file reorganization +- Removed popcnt.patch, 0001-Add-missing-D3D_CS_-variables.patch + (no longer needed; included upstream) + +------------------------------------------------------------------- +Wed Nov 22 09:46:44 UTC 2017 - idonmez@suse.com + +- Update to version 5.0.3 + +------------------------------------------------------------------- +Thu Apr 20 08:26:10 UTC 2017 - idonmez@suse.com + +- Add popcnt.patch + +------------------------------------------------------------------- +Tue Mar 28 11:40:03 UTC 2017 - idonmez@suse.com + +- Update to version 5.0.2 + * RegSetKeyValueW now has proper wide arguments. + * Fix pdh.h function calls to have proper stdcall decorators. + +------------------------------------------------------------------- +Sat Jan 14 20:48:05 UTC 2017 - idonmez@suse.com + +- Update to version 5.0.1 + +------------------------------------------------------------------- +Wed Mar 23 21:07:00 UTC 2016 - jengelh@inai.de + +- Update to new upstream release 5.0~rc1 +* Basic ARM support +* gcc-5 support + +------------------------------------------------------------------- +Fri Sep 4 11:50:23 UTC 2015 - idonmez@suse.com + +- Update to version 4.0.4 + * Fixes to tchar.h +- Remove order.diff, upstream + +------------------------------------------------------------------- +Tue Apr 21 09:00:58 UTC 2015 - jengelh@inai.de + +- Update to new upstream release 4.0.2 +* Fix PdhValidatePathExW declaration. +* Fix WAVE_FORMAT_POLYCOM_G729_A typo in mmreg.h. +* Fix missing newlines separating define macros in commctrl.h. + +------------------------------------------------------------------- +Thu Mar 26 10:19:04 UTC 2015 - jengelh@inai.de + +- Add order.diff to fix SHGetFolderPathW compile errors in code + using shlobj.h. + +------------------------------------------------------------------- +Wed Mar 25 10:48:30 UTC 2015 - jengelh@inai.de + +- Update to mingw-w64-4.0.1 +* 32-bit ARM thumb software math +* Improved DirectX 11, OpenGL 4.5/GLES 3.1 support +* added POSIX.1-2008 ftw.h +* more secure functions: qsort_s, gmtime64_s, time_s.h, ... +* added to stat.h: S_IRGRP, S_IRWXG, ... +* added to unistd.h: SHUT_* diff --git a/mingw32-headers.spec b/mingw32-headers.spec new file mode 100644 index 0000000..cea7cec --- /dev/null +++ b/mingw32-headers.spec @@ -0,0 +1,73 @@ +# +# spec file for package mingw32-headers +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: mingw32-headers +Version: 11.0.1 +Release: 0 +Summary: MinGW-w64 headers for Win32 and Win64 +License: SUSE-Public-Domain +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 +Patch1: mingw-w64-v11.0.1-fix-undefined-interface-type.patch +BuildRequires: mingw32-filesystem +BuildRequires: xz +#!BuildIgnore: post-build-checks +Requires: mingw32-unistd-pthread-devel +BuildArch: noarch + +%description +MinGW-w64 delivers runtime, headers and libs for developing both 64 +bit (x64) and 32 bit (x86) windows applications using GCC and other +free software compilers. + +This subpackage contains the header files. + +%package dummy-pthread +Summary: Stub pthread header files for MinGW +Group: Development/Libraries/C and C++ +Provides: mingw32-unistd-pthread-devel + +%description dummy-pthread +This subpackage contains stub pthread header files that are empty +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 -p2 + +%build +%_mingw32_configure \ + --enable-sdk=all \ + --enable-secure-api +%make_build + +%install +%make_install + +%files +%_mingw32_includedir/ +%exclude %_mingw32_includedir/pthread_*.h + +%files dummy-pthread +%dir %_mingw32_includedir +%_mingw32_includedir/pthread_*.h + +%changelog