From 1ac8eca58476339d70583d42634a67f9dcf94076 Mon Sep 17 00:00:00 2001 From: dirkmueller <> Date: Dec 03 2021 19:45:55 +0000 Subject: Update PTL to version 2.2.0 / rev 2 via SR 935306 https://build.opensuse.org/request/show/935306 by user dirkmueller + dimstar_suse --- diff --git a/.files b/.files index 5f8b2b8..f129867 100644 Binary files a/.files and b/.files differ diff --git a/.rev b/.rev index 42f01a2..b7fdb89 100644 --- a/.rev +++ b/.rev @@ -8,4 +8,12 @@ </comment> <requestid>872015</requestid> </revision> + <revision rev="2" vrev="1"> + <srcmd5>6761f4ac509d87f308a107c21c97c53a</srcmd5> + <version>2.2.0</version> + <time>1638560134</time> + <user>dimstar_suse</user> + <comment></comment> + <requestid>935306</requestid> + </revision> </revisionlist> diff --git a/PTL-1.0.2.tar.gz b/PTL-1.0.2.tar.gz deleted file mode 120000 index ee00d18..0000000 --- a/PTL-1.0.2.tar.gz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafybeigmbz6mnysnodv5bvce6flykkyiztn6xh4lniwno3qcd5lbwbpwoe \ No newline at end of file diff --git a/PTL-2.2.0.tar.gz b/PTL-2.2.0.tar.gz new file mode 120000 index 0000000..9c9cbdc --- /dev/null +++ b/PTL-2.2.0.tar.gz @@ -0,0 +1 @@ +/ipfs/bafybeic5mpmoecpdf7jwq4z2suptfrelmv4ngbnnxmivuabmvsbmevuzfi \ No newline at end of file diff --git a/PTL-incorrect-pthread-requires-in-pkgconfig.patch b/PTL-incorrect-pthread-requires-in-pkgconfig.patch new file mode 100644 index 0000000..503efd9 --- /dev/null +++ b/PTL-incorrect-pthread-requires-in-pkgconfig.patch @@ -0,0 +1,12 @@ +Index: PTL-2.2.0/cmake/Templates/ptl.pc.in +=================================================================== +--- PTL-2.2.0.orig/cmake/Templates/ptl.pc.in ++++ PTL-2.2.0/cmake/Templates/ptl.pc.in +@@ -6,6 +6,6 @@ Name: PTL + Description: Parallel Tasking Library for C++ + Version: @PTL_VERSION_STRING@ + Requires: @PTL_PC_TBB_REQUIREMENT@ +-Requires.private: -pthread + Libs: -L${libdir} -lptl ++Libs.private: -pthread + CFlags: -std=c++@CMAKE_CXX_STANDARD@ -pthread -I${includedir} diff --git a/PTL.changes b/PTL.changes index fab7568..305dbb9 100644 --- a/PTL.changes +++ b/PTL.changes @@ -1,4 +1,39 @@ ------------------------------------------------------------------- +Thu Dec 2 13:37:16 UTC 2021 - Atri Bhattacharya <badshah400@gmail.com> + +- Update to version 2.2.0: + * New/improved support for initialization and finalization + routines in ThreadPool. +- Changes from version 2.1.0: + * Fix C++20 warnings from GCC 11.2.0. + * Removed timemory. + * Springclean CMake scripts and developer/client build/use + interfaces. +- Changes from version 2.0.0: + * Fixed memory leak issues in VUserTaskQueue. + * removed VTaskGroup. + * merged TaskGroup and TBBTaskGroup: + - TBBTaskGroup is just an alias now. + - TaskGroup will handle determine whether ThreadPool is TBB + and submit tasks accordingly. + * use tbb::task_arena in order to enable master/worker paradigm: + full support for ThreadPool::execute_on_all_threads, + ThreadPool::execute_on_specific_threads in TBB mode. + * renamed many functions/fields to "main" instead of "master". + * VTask no longer holds a pointer to task group: this was + causing a data-race issue. + * cmake option PTL_USE_LOCKS to enable mutex locking in + scheduler instead of lock-free scheme. + * removed unused numActThreads. + * wait() member function for tasks. +- Add PTL-incorrect-pthread-requires-in-pkgconfig.patch to drop + an incorrect Requires on pthread in the pkgconfig file that + causes pkgconfig to automatically add unresolvable Requires to + the %{name}-devel rpm package [gh#jrmadsen/PTL#21]. +- Update location of packaged cmake and pkgconfig files in keeping + with upstream fixes. + +------------------------------------------------------------------- Sat Feb 13 18:51:57 UTC 2021 - Jan Engelhardt <jengelh@inai.de> - Ensure neutrality of description; mention base thread library diff --git a/PTL.spec b/PTL.spec index 0937f51..f97ca28 100644 --- a/PTL.spec +++ b/PTL.spec @@ -16,17 +16,20 @@ # -%define sover 1 +%define sover 2 %define libname libptl%{sover} Name: PTL -Version: 1.0.2 +Version: 2.2.0 Release: 0 Summary: C++11 mutilthreading tasking system License: MIT URL: https://github.com/jrmadsen/PTL Source: https://github.com/jrmadsen/PTL/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM PTL-incorrect-pthread-requires-in-pkgconfig.patch gh#jrmadsen/PTL#21 badshah400@gmail.com -- Add PTL-incorrect-pthread-requires-in-pkgconfig.patch to drop an incorrect Requires on pthread in the pkgconfig file that causes pkgconfig to automatically add unresolvable Requires to the devel rpm package. +Patch0: PTL-incorrect-pthread-requires-in-pkgconfig.patch BuildRequires: cmake BuildRequires: gcc-c++ +BuildRequires: pkg-config BuildRequires: tbb-devel %description @@ -73,10 +76,12 @@ This package provides the headers and sources for developing against %{name}. %license LICENSE %doc README.md %{_includedir}/PTL/ -%{_libdir}/PTL/ %{_libdir}/*.so +%{_libdir}/cmake/ +%{_libdir}/pkgconfig/*.pc %files -n %{libname} %license LICENSE %{_libdir}/*.so.* + %changelog