Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package PTL for openSUSE:Factory checked in at 2022-01-20 00:12:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/PTL (Old) and /work/SRC/openSUSE:Factory/.PTL.new.1892 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "PTL" Thu Jan 20 00:12:36 2022 rev:4 rq:947560 version:2.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/PTL/PTL.changes 2021-12-07 00:00:50.380255137 +0100 +++ /work/SRC/openSUSE:Factory/.PTL.new.1892/PTL.changes 2022-01-20 00:13:36.886641183 +0100 @@ -1,0 +2,7 @@ +Sun Jan 16 14:11:36 UTC 2022 - Atri Bhattacharya <badshah...@gmail.com> + +- Update to version 2.3.1: + * Threading: Fix GetNumberOfPhysicalCpus, it should never return + zero [gh#jrmadsen/PTL#26]. + +------------------------------------------------------------------- Old: ---- PTL-2.3.0.tar.gz New: ---- PTL-2.3.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ PTL.spec ++++++ --- /var/tmp/diff_new_pack.COwGnj/_old 2022-01-20 00:13:37.246641473 +0100 +++ /var/tmp/diff_new_pack.COwGnj/_new 2022-01-20 00:13:37.250641477 +0100 @@ -1,7 +1,7 @@ # # spec file for package PTL # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %define sover 2 %define libname libptl%{sover} Name: PTL -Version: 2.3.0 +Version: 2.3.1 Release: 0 Summary: C++11 mutilthreading tasking system License: MIT ++++++ PTL-2.3.0.tar.gz -> PTL-2.3.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PTL-2.3.0/VERSION new/PTL-2.3.1/VERSION --- old/PTL-2.3.0/VERSION 2021-12-04 01:41:17.000000000 +0100 +++ new/PTL-2.3.1/VERSION 2021-12-16 17:05:24.000000000 +0100 @@ -1 +1 @@ -2.3.0 +2.3.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/PTL-2.3.0/source/Threading.cc new/PTL-2.3.1/source/Threading.cc --- old/PTL-2.3.0/source/Threading.cc 2021-12-04 01:41:17.000000000 +0100 +++ new/PTL-2.3.1/source/Threading.cc 2021-12-16 17:05:24.000000000 +0100 @@ -79,6 +79,7 @@ sysctlbyname("hw.physicalcpu", &count, &count_len, nullptr, 0); return static_cast<unsigned>(count); #elif defined(PTL_LINUX) + unsigned core_id_count = 0; std::ifstream ifs("/proc/cpuinfo"); if(ifs) { @@ -101,7 +102,9 @@ core_ids.insert(line); } } - return static_cast<unsigned>(core_ids.size()); + core_id_count = static_cast<unsigned>(core_ids.size()); + if(core_id_count > 0) + return core_id_count; } return GetNumberOfCores(); #else