From d9e9b1bdc9d8ca7d0511eb3754c04462cf38dd053dbbdbac03056d52aa79f618 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 28 Aug 2024 12:23:45 +0000 Subject: [PATCH] [info=7ebb83d8ceaedf201b5074812286555b6e0edd8406610adcc2358c61ce651e7c] OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-winpthreads?expand=0&rev=41 --- .gitattributes | 23 +++++++ .gitignore | 1 + _scmsync.obsinfo | 4 ++ build.specials.obscpio | 3 + mingw-w64-v11.0.1.tar.bz2 | 3 + mingw32-winpthreads-rpmlintrc | 3 + mingw32-winpthreads.changes | 120 ++++++++++++++++++++++++++++++++++ mingw32-winpthreads.spec | 92 ++++++++++++++++++++++++++ 8 files changed, 249 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.tar.bz2 create mode 100644 mingw32-winpthreads-rpmlintrc create mode 100644 mingw32-winpthreads.changes create mode 100644 mingw32-winpthreads.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..3aed0fb --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1699910303 +commit: 7ebb83d8ceaedf201b5074812286555b6e0edd8406610adcc2358c61ce651e7c +url: https://src.opensuse.org/mingw/mingw32-winpthreads +revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..53bc5d1 --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07d3ad372e5ac70cafc67e49c7eb952222499ef7cd73ca69b8b7cbb9158fb8e2 +size 256 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/mingw32-winpthreads-rpmlintrc b/mingw32-winpthreads-rpmlintrc new file mode 100644 index 0000000..905d3e2 --- /dev/null +++ b/mingw32-winpthreads-rpmlintrc @@ -0,0 +1,3 @@ +addFilter("arch-independent-package-contains-binary-or-object") +addFilter("devel-file-in-non-devel-package") +addFilter("spurious-executable-perm") diff --git a/mingw32-winpthreads.changes b/mingw32-winpthreads.changes new file mode 100644 index 0000000..9dddb1e --- /dev/null +++ b/mingw32-winpthreads.changes @@ -0,0 +1,120 @@ +------------------------------------------------------------------- +Fri Nov 3 12:37:48 UTC 2023 - Jan Engelhardt + +- Update to release 11.0.1 + * crt: Fix .seh_handler directives for ARM + +------------------------------------------------------------------- +Mon Jun 27 16:37:24 UTC 2022 - Jan Engelhardt + +- Update to release 10 + * New msvcrt10, 20, 40, 70 and 71 import libraries. + +------------------------------------------------------------------- +Wed Sep 22 07:54:22 UTC 2021 - Jan Engelhardt + +- Add arch-independent-package-contains-binary-or-object + to rpmlintrc + +------------------------------------------------------------------- +Sat Jul 3 10:32:57 UTC 2021 - Jan Engelhardt + +- Update to release 9.0.0 + * unspecified winpthreads fixes + +------------------------------------------------------------------- +Wed Mar 17 15:52:33 UTC 2021 - Jeff Kowalczyk + +- Update to new upstream release 8.0.0 + * Always define `__USE_MINGW_ANSI_STDIO` to zero + * Remove unused dwFlags variable in sched.c + * Don't call SetThreadContext in winstore builds + * Do not call GetHandleInformation in winstore build + * Simplify the handle validity in pthread_check() + * Always return 0 in pthread_check() if the thread ended is 0 + * Do not use the XXXExceptionHandler API in winstore builds + * Simplify the USE_VEH_FOR_MSC_SETTHREADNAME check + +------------------------------------------------------------------- +Mon Nov 25 17:31:02 UTC 2019 - Ralf Habacker + +- Use macro _mingw32_ldflags_bootstrap from mingw32-filesystem package + for setting LDFLAGS to keep common settings in one place +- Revert to use mingw32-cross-gcc-bootstrap again + +------------------------------------------------------------------- +Mon Nov 25 09:23:14 UTC 2019 - Ralf Habacker + +- Use mingw32-cross-gcc to fix a compile error caused by + mingw32-cross-gcc-bootstrap-9.2 does not provide ssp library + +------------------------------------------------------------------- +Sat Nov 23 14:48:55 UTC 2019 - Ismail Dönmez + +- Update to new upstream release 7.0.0 + * No changelog entries specific to winphtreads found. + +------------------------------------------------------------------- +Wed Oct 17 19:02:09 UTC 2018 - Jan Engelhardt + +- Update to new upstream release 6.0.0 + * No changelog entries specific to winpthreads found. + +------------------------------------------------------------------- +Wed Nov 22 09:51:09 UTC 2017 - idonmez@suse.com + +- Update to version 5.0.3 + +------------------------------------------------------------------- +Tue Mar 28 11:43:07 UTC 2017 - idonmez@suse.com + +- Update to version 5.0.2 + * Fix some crashes in due to misaligned memory access when + used with some SSE instructions. +- Drop memleak.patch, fixed upstream. + +------------------------------------------------------------------- +Sat Jan 14 20:40:09 UTC 2017 - idonmez@suse.com + +- Update to version 5.0.1 + +------------------------------------------------------------------- +Wed Mar 23 21:33:34 UTC 2016 - jengelh@inai.de + +- Update to new upstream release 5.0~rc1 +* Winpthreads performance improvements +* ARM, gcc-5 support + +------------------------------------------------------------------- +Fri Sep 4 11:58:16 UTC 2015 - idonmez@suse.com + +- Update to version 4.0.4 + * Major speed improvements to mutex & spinlock implementation + +------------------------------------------------------------------- +Fri May 29 09:27:48 UTC 2015 - idonmez@suse.com + +- Enable static libraries + +------------------------------------------------------------------- +Wed Mar 25 10:38:10 UTC 2015 - jengelh@inai.de + +- Update to winpthreads from mingw-w64-4.0.1 +* Reentrant time functions localtime_r, gmtime_r, etc. are removed + from pthread.h and are now available through time.h ONLY. + +------------------------------------------------------------------- +Mon Jul 14 10:47:35 UTC 2014 - jengelh@inai.de + +- Implement shlib package naming guidelines + +------------------------------------------------------------------- +Thu Jun 19 12:24:42 UTC 2014 - jw@owncloud.com + +- BuildRequires: mingw32-runtime + Linker fails miserably without. + +------------------------------------------------------------------- +Mon Feb 3 12:07:45 UTC 2014 - jengelh@inai.de + +- Initial package (version 3.1.0) for build.opensuse.org diff --git a/mingw32-winpthreads.spec b/mingw32-winpthreads.spec new file mode 100644 index 0000000..acf9651 --- /dev/null +++ b/mingw32-winpthreads.spec @@ -0,0 +1,92 @@ +# +# spec file for package mingw32-winpthreads +# +# 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-winpthreads +Version: 11.0.1 +Release: 0 +Summary: A pthreads implementation for Windows +License: BSD-3-Clause AND MIT +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 +Source9: %name-rpmlintrc +BuildRequires: mingw32-cross-gcc-bootstrap +BuildRequires: mingw32-cross-pkg-config +BuildRequires: mingw32-filesystem +BuildRequires: mingw32-runtime +BuildRequires: xz +%_mingw32_package_header_debug +BuildArch: noarch +#!BuildIgnore: post-build-checks + +%description +mingw-w64's implementation of POSIX threads for Windows. + +%package -n mingw32-libwinpthread1 +Summary: A pthreads implementation for Windows +Group: System/Libraries +Obsoletes: mingw32-winpthreads + +%description -n mingw32-libwinpthread1 +mingw-w64's implementation of POSIX threads for Windows. + +%package devel +Summary: Development files for mingw32-winpthreads +Group: Development/Libraries/C and C++ +Requires: mingw32-libwinpthread1 = %version +Provides: mingw32-unistd-pthread-devel +Obsoletes: mingw32-headers-dummy-pthread +Conflicts: mingw32-headers-dummy-pthread +Conflicts: otherproviders(mingw32-unistd-pthread-devel) + +%description devel +mingw-w64's implementation of POSIX threads for Windows. + +%_mingw32_debug_package + +%prep +%autosetup -p1 -n mingw-w64-v%version/mingw-w64-libraries/winpthreads + +%build +# The build is trying to link with libpthread.a but it has no need +# of any symbol from there, so just create a fake library and use it. +mkdir fakelib +pushd fakelib +touch empty.c +%_mingw32_cc -c empty.c +%_mingw32_ar rsc libpthread.a empty.o +popd +# No ssp support in gcc-cross-bootstrap +# Hence we use dedicated LDFLAGS (without -fstack-protector) +%_mingw32_configure \ + --enable-static \ + --enable-shared \ + LDFLAGS="%{_mingw32_ldflags_bootstrap}" +%make_build + +%install +%make_install + +%files -n mingw32-libwinpthread1 +%_mingw32_bindir/libwinpthread-1.dll + +%files devel +%_mingw32_includedir/ +%_mingw32_libdir/ + +%changelog