pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/parallel/threadingbuildingblocks



Module Name:    pkgsrc
Committed By:   nros
Date:           Wed Nov 13 08:58:55 UTC 2024

Modified Files:
        pkgsrc/parallel/threadingbuildingblocks: distinfo
Added Files:
        pkgsrc/parallel/threadingbuildingblocks/patches:
            patch-test_tbb_test__eh__thread.cpp

Log Message:
threadingbuildingblocks: Fix build on NetBSD 9, that is missing PTHREAD_STACK_MIN


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/parallel/threadingbuildingblocks/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/parallel/threadingbuildingblocks/patches/patch-test_tbb_test__eh__thread.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/parallel/threadingbuildingblocks/distinfo
diff -u pkgsrc/parallel/threadingbuildingblocks/distinfo:1.14 pkgsrc/parallel/threadingbuildingblocks/distinfo:1.15
--- pkgsrc/parallel/threadingbuildingblocks/distinfo:1.14       Sat Nov  9 18:43:12 2024
+++ pkgsrc/parallel/threadingbuildingblocks/distinfo    Wed Nov 13 08:58:55 2024
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.14 2024/11/09 18:43:12 prlw1 Exp $
+$NetBSD: distinfo,v 1.15 2024/11/13 08:58:55 nros Exp $
 
 BLAKE2s (oneTBB-2022.0.0.tar.gz) = 9019a4d91edd8f52994f3f2e72484dd6919fa6d73eb442603eb897f0c7ca8705
 SHA512 (oneTBB-2022.0.0.tar.gz) = c87b84964b2c323f61895a532968dfa6413a774c177cffbf6e798a07e74e8da5d449144875771df0a1b02657eeb2a7ae4d41c6c432dbf7ea50e3d5a9ea9f8cd3
 Size (oneTBB-2022.0.0.tar.gz) = 2654343 bytes
 SHA1 (patch-test_tbb_test__composite__node.cpp) = 1c48644e8cbee6622e2cf4a91901db217cee2ff3
+SHA1 (patch-test_tbb_test__eh__thread.cpp) = 50c2bbcbdf00cb3ef5fe206a952d30672a5e73c6

Added files:

Index: pkgsrc/parallel/threadingbuildingblocks/patches/patch-test_tbb_test__eh__thread.cpp
diff -u /dev/null pkgsrc/parallel/threadingbuildingblocks/patches/patch-test_tbb_test__eh__thread.cpp:1.1
--- /dev/null   Wed Nov 13 08:58:55 2024
+++ pkgsrc/parallel/threadingbuildingblocks/patches/patch-test_tbb_test__eh__thread.cpp Wed Nov 13 08:58:55 2024
@@ -0,0 +1,19 @@
+$NetBSD: patch-test_tbb_test__eh__thread.cpp,v 1.1 2024/11/13 08:58:55 nros Exp $
+
+* NetBSD 9 does not have PTHREAD_STACK_MIN,
+  so only use it if it is defined
+
+--- test/tbb/test_eh_thread.cpp.orig   2024-11-13 08:50:17.676722493 +0000
++++ test/tbb/test_eh_thread.cpp
+@@ -75,7 +75,11 @@ public:
+         mValid = false;
+         pthread_attr_t attr;
+         // Limit the stack size not to consume all virtual memory on 32 bit platforms.
++#ifdef PTHREAD_STACK_MIN
+         std::size_t stacksize = utils::max(std::size_t(128*1024), std::size_t(PTHREAD_STACK_MIN));
++#else
++        std::size_t stacksize = std::size_t(128*1024);
++#endif
+         if (pthread_attr_init(&attr) == 0 && pthread_attr_setstacksize(&attr, stacksize) == 0) {
+             mValid = pthread_create(&mHandle, &attr, thread_routine, /* arg = */ nullptr) == 0;
+         }



Home | Main Index | Thread Index | Old Index