[neon/backports-noble/pthreadpool-noble/Neon/unstable] debian: backport pthreadpool for xnnpack for onnxruntime for pipewire for kwin

Carlos De Maine null at kde.org
Sat Sep 26 09:44:21 BST 2026


Git commit 059abf9d89e412a923b6878c911519ae025838ad by Carlos De Maine.
Committed on 26/09/2026 at 08:43.
Pushed by carlosdem into branch 'Neon/unstable'.

backport pthreadpool for xnnpack for onnxruntime for pipewire for kwin

A  +89   -0    debian/changelog
A  +37   -0    debian/control
A  +34   -0    debian/copyright
A  +2    -0    debian/libpthreadpool-dev.install
A  +1    -0    debian/libpthreadpool0.install
A  +39   -0    debian/libpthreadpool0.symbols
A  +7    -0    debian/not-installed
A  +65   -0    debian/patches/disable-download-and-add-soversion.patch
A  +1    -0    debian/patches/series
A  +9    -0    debian/rules
A  +1    -0    debian/source/format
A  +6    -0    debian/watch

https://invent.kde.org/neon/backports-noble/pthreadpool-noble/-/commit/059abf9d89e412a923b6878c911519ae025838ad

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..1f71d94
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,89 @@
+pthreadpool (0.0~git20240616.560c60d-1) unstable; urgency=medium
+
+  * Team upload.
+  * d/patches: refresh, rename and add DEP3 header
+  * d/control: bump std-ver to 4.7.0.1 (no changes required)
+  * d/rules: enable all hardening
+
+ -- Shengqi Chen <harry-chen at outlook.com>  Wed, 04 Sep 2024 19:45:20 +0800
+
+pthreadpool (0.0~git20240616.560c60d-1~exp1) experimental; urgency=medium
+
+  * New upstream version 0.0~git20240616.560c60d
+    + This snapshot should be fine for PyTorch/v2.3.X
+  * Refresh symbols control file.
+  * Make short description different for packages.
+  * Upload to experimental
+  * Upload to experimental
+
+ -- Mo Zhou <harry-chen at outlook.com>  Wed, 04 Sep 2024 19:37:32 +0800
+
+pthreadpool (0.0~git20210507.1787867-2) unstable; urgency=medium
+
+  [ Debian Janitor ]
+  * Apply multi-arch hints. + libpthreadpool0: Add Multi-Arch: same.
+
+  [ Mo Zhou ]
+  * Bump Standards-Version to 4.6.2 (no change).
+
+ -- Mo Zhou <lumin at debian.org>  Fri, 01 Sep 2023 21:41:04 -0400
+
+pthreadpool (0.0~git20210507.1787867-1) unstable; urgency=medium
+
+  * Upload to unstable.
+
+ -- Mo Zhou <lumin at debian.org>  Sat, 25 Jun 2022 20:05:43 -0700
+
+pthreadpool (0.0~git20210507.1787867-1~exp1) experimental; urgency=medium
+
+  * New upstream version 0.0~git20210507.1787867
+    This snapshot should be fine for PyTorch/v1.12.X
+  * Upload to experimental.
+
+ -- Mo Zhou <lumin at debian.org>  Thu, 23 Jun 2022 22:44:16 -0700
+
+pthreadpool (0.0~git20201005.fa75e65-2) unstable; urgency=medium
+
+  * Upload to unstable.
+
+ -- Mo Zhou <lumin at debian.org>  Thu, 02 Sep 2021 02:07:37 +0000
+
+pthreadpool (0.0~git20201005.fa75e65-1) experimental; urgency=medium
+
+  * New upstream version 0.0~git20201005.fa75e65
+    Please pin to this snapshot for PyTorch/v1.8.1
+  * Refresh existint patches.
+  * Refresh symbols control file.
+
+ -- Mo Zhou <lumin at debian.org>  Thu, 20 May 2021 11:43:45 +0800
+
+pthreadpool (0.0~git20200615.029c886-2) unstable; urgency=medium
+
+  * Change maintainer into Deep Learning Team <debian-ai at l.d.o>.
+  * Please pin to this upstream snapshot for PyTorch 1.7.0.
+
+ -- Mo Zhou <lumin at debian.org>  Mon, 02 Nov 2020 11:03:57 +0800
+
+pthreadpool (0.0~git20200615.029c886-1) unstable; urgency=medium
+
+  * New upstream version 0.0~git20200615.029c886
+  * Refresh symbols control file (+ several new symbols).
+  * Bump debhelper compat level to 13.
+  * Add d/not-installed.
+
+ -- Mo Zhou <lumin at debian.org>  Wed, 02 Sep 2020 13:44:18 +0800
+
+pthreadpool (0.0~git20200423.6acde9c-2) unstable; urgency=medium
+
+  * Add the missing build dependencies.
+  * Apply wrap-and-sort.
+  * Add symbols control file for libpthreadpool0.
+  * Upload to unstable.
+
+ -- Mo Zhou <lumin at debian.org>  Wed, 29 Apr 2020 08:54:40 +0800
+
+pthreadpool (0.0~git20200423.6acde9c-1) experimental; urgency=medium
+
+  * Initial release. (Closes: #958655)
+
+ -- Mo Zhou <lumin at debian.org>  Fri, 24 Apr 2020 16:02:29 +0800
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..31d42e7
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,37 @@
+Source: pthreadpool
+Section: libdevel
+Homepage: https://github.com/Maratyszcza/pthreadpool
+Priority: optional
+Standards-Version: 4.7.0.1
+Vcs-Git: https://salsa.debian.org/deeplearning-team/pthreadpool.git
+Vcs-Browser: https://salsa.debian.org/deeplearning-team/pthreadpool
+Maintainer: Debian Deep Learning Team <debian-ai at lists.debian.org>
+Uploaders: Mo Zhou <lumin at debian.org>
+Build-Depends: cmake,
+               debhelper-compat (= 13),
+               googletest,
+               libbenchmark-dev,
+               libcpuinfo-dev,
+               libfxdiv-dev
+Rules-Requires-Root: no
+
+Package: libpthreadpool-dev
+Architecture: any
+Depends: libpthreadpool0 (= ${binary:Version}), ${misc:Depends}
+Description: pthread-based thread pool for C/C++ (development)
+ pthreadpool is a portable and efficient thread pool implementation. It provides
+ similar functionality to #pragma omp parallel for, but with additional
+ features.
+ .
+ This package contains the development files.
+
+Package: libpthreadpool0
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Multi-Arch: same
+Description: pthread-based thread pool for C/C++ (shared object)
+ pthreadpool is a portable and efficient thread pool implementation. It provides
+ similar functionality to #pragma omp parallel for, but with additional
+ features.
+ .
+ This package contains the shared object.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a77cac0
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Source: https://github.com/Maratyszcza/pthreadpool
+
+Files: *
+Copyright: 2015-2017, Georgia Institute of Technology
+  2017, Facebook Inc.
+  2019, Google LLC
+License: BSD-2-Clause
+
+Files: debian/*
+Copyright: 2020, Mo Zhou <lumin at debian.org>
+License: BSD-2-Clause
+
+License: BSD-2-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE HOLDERS OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/libpthreadpool-dev.install b/debian/libpthreadpool-dev.install
new file mode 100644
index 0000000..f981249
--- /dev/null
+++ b/debian/libpthreadpool-dev.install
@@ -0,0 +1,2 @@
+usr/include/pthreadpool.h
+usr/lib/*/libpthreadpool.so
diff --git a/debian/libpthreadpool0.install b/debian/libpthreadpool0.install
new file mode 100644
index 0000000..9ecdd39
--- /dev/null
+++ b/debian/libpthreadpool0.install
@@ -0,0 +1 @@
+usr/lib/*/libpthreadpool.so.*
diff --git a/debian/libpthreadpool0.symbols b/debian/libpthreadpool0.symbols
new file mode 100644
index 0000000..531765b
--- /dev/null
+++ b/debian/libpthreadpool0.symbols
@@ -0,0 +1,39 @@
+libpthreadpool.so.0 libpthreadpool0 #MINVER#
+* Build-Depends-Package: libpthreadpool-dev
+ pthreadpool_compute_1d at Base 0.0~git20200423.6acde9c
+ pthreadpool_compute_1d_tiled at Base 0.0~git20200423.6acde9c
+ pthreadpool_compute_2d at Base 0.0~git20200423.6acde9c
+ pthreadpool_compute_2d_tiled at Base 0.0~git20200423.6acde9c
+ pthreadpool_compute_3d_tiled at Base 0.0~git20200423.6acde9c
+ pthreadpool_compute_4d_tiled at Base 0.0~git20200423.6acde9c
+ pthreadpool_create at Base 0.0~git20200423.6acde9c
+ pthreadpool_destroy at Base 0.0~git20200423.6acde9c
+ pthreadpool_get_threads_count at Base 0.0~git20200423.6acde9c
+ pthreadpool_parallelize_1d at Base 0.0~git20200423.6acde9c
+ pthreadpool_parallelize_1d_tile_1d at Base 0.0~git20200423.6acde9c
+ pthreadpool_parallelize_1d_with_thread at Base 0.0~git20240616.560c60d
+ pthreadpool_parallelize_1d_with_uarch at Base 0.0~git20200423.6acde9c
+ pthreadpool_parallelize_2d at Base 0.0~git20200423.6acde9c
+ pthreadpool_parallelize_2d_tile_1d at Base 0.0~git20200423.6acde9c
+ pthreadpool_parallelize_2d_tile_1d_with_uarch at Base 0.0~git20240616.560c60d
+ pthreadpool_parallelize_2d_tile_1d_with_uarch_with_thread at Base 0.0~git20240616.560c60d
+ pthreadpool_parallelize_2d_tile_2d at Base 0.0~git20200423.6acde9c
+ pthreadpool_parallelize_2d_tile_2d_with_uarch at Base 0.0~git20200423.6acde9c
+ pthreadpool_parallelize_2d_with_thread at Base 0.0~git20240616.560c60d
+ pthreadpool_parallelize_3d at Base 0.0~git20200615.029c886
+ pthreadpool_parallelize_3d_tile_1d at Base 0.0~git20200615.029c886
+ pthreadpool_parallelize_3d_tile_1d_with_thread at Base 0.0~git20240616.560c60d
+ pthreadpool_parallelize_3d_tile_1d_with_uarch at Base 0.0~git20240616.560c60d
+ pthreadpool_parallelize_3d_tile_1d_with_uarch_with_thread at Base 0.0~git20240616.560c60d
+ pthreadpool_parallelize_3d_tile_2d at Base 0.0~git20200423.6acde9c
+ pthreadpool_parallelize_3d_tile_2d_with_uarch at Base 0.0~git20200423.6acde9c
+ pthreadpool_parallelize_4d at Base 0.0~git20200615.029c886
+ pthreadpool_parallelize_4d_tile_1d at Base 0.0~git20200615.029c886
+ pthreadpool_parallelize_4d_tile_2d at Base 0.0~git20200423.6acde9c
+ pthreadpool_parallelize_4d_tile_2d_with_uarch at Base 0.0~git20200423.6acde9c
+ pthreadpool_parallelize_5d at Base 0.0~git20200615.029c886
+ pthreadpool_parallelize_5d_tile_1d at Base 0.0~git20200615.029c886
+ pthreadpool_parallelize_5d_tile_2d at Base 0.0~git20200423.6acde9c
+ pthreadpool_parallelize_6d at Base 0.0~git20201005.fa75e65
+ pthreadpool_parallelize_6d_tile_1d at Base 0.0~git20201005.fa75e65
+ pthreadpool_parallelize_6d_tile_2d at Base 0.0~git20200423.6acde9c
diff --git a/debian/not-installed b/debian/not-installed
new file mode 100644
index 0000000..7dff130
--- /dev/null
+++ b/debian/not-installed
@@ -0,0 +1,7 @@
+usr/include/gmock
+usr/include/gtest
+usr/lib/*/libgmock*
+usr/lib/*/libgtest*
+usr/lib/*/cmake/GTest
+usr/lib/*/pkgconfig/gmock*
+usr/lib/*/pkgconfig/gtest*
diff --git a/debian/patches/disable-download-and-add-soversion.patch b/debian/patches/disable-download-and-add-soversion.patch
new file mode 100644
index 0000000..0046fd6
--- /dev/null
+++ b/debian/patches/disable-download-and-add-soversion.patch
@@ -0,0 +1,65 @@
+Description: Disable downloading in CMakeLists.txt and add soversion
+Author: Mo Zhou <lumin at debian.org>
+Forwarded: not-needed
+Last-Update: 2024-09-04
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -41,13 +41,7 @@
+ 
+ # ---[ Download deps
+ IF(NOT DEFINED FXDIV_SOURCE_DIR)
+-  MESSAGE(STATUS "Downloading FXdiv to ${CMAKE_BINARY_DIR}/FXdiv-source (define FXDIV_SOURCE_DIR to avoid it)")
+-  CONFIGURE_FILE(cmake/DownloadFXdiv.cmake "${CMAKE_BINARY_DIR}/FXdiv-download/CMakeLists.txt")
+-  EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
+-    WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/FXdiv-download")
+-  EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build .
+-    WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/FXdiv-download")
+-  SET(FXDIV_SOURCE_DIR "${CMAKE_BINARY_DIR}/FXdiv-source" CACHE STRING "FXdiv source directory")
++	message("skip downloading fxdiv")
+ ENDIF()
+ 
+ IF(PTHREADPOOL_BUILD_TESTS AND NOT DEFINED GOOGLETEST_SOURCE_DIR)
+@@ -61,13 +55,9 @@
+ ENDIF()
+ 
+ IF(PTHREADPOOL_BUILD_BENCHMARKS AND NOT DEFINED GOOGLEBENCHMARK_SOURCE_DIR)
+-  MESSAGE(STATUS "Downloading Google Benchmark to ${CMAKE_BINARY_DIR}/googlebenchmark-source (define GOOGLEBENCHMARK_SOURCE_DIR to avoid it)")
+-  CONFIGURE_FILE(cmake/DownloadGoogleBenchmark.cmake "${CMAKE_BINARY_DIR}/googlebenchmark-download/CMakeLists.txt")
+-  EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
+-    WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googlebenchmark-download")
+-  EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build .
+-    WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googlebenchmark-download")
+-  SET(GOOGLEBENCHMARK_SOURCE_DIR "${CMAKE_BINARY_DIR}/googlebenchmark-source" CACHE STRING "Google Benchmark source directory")
++	add_library(benchmark SHARED IMPORTED)
++	find_library(BENCHMARK_LIBRARY benchmark)
++	set_target_properties(benchmark PROPERTIES IMPORTED_LOCATION "${BENCHMARK_LIBRARY}")
+ ENDIF()
+ 
+ # ---[ pthreadpool library
+@@ -135,6 +125,7 @@
+ SET_TARGET_PROPERTIES(pthreadpool PROPERTIES
+   C_STANDARD 11
+   C_EXTENSIONS NO)
++set_target_properties(pthreadpool PROPERTIES VERSION 0 SOVERSION 0)
+ TARGET_LINK_LIBRARIES(pthreadpool PUBLIC pthreadpool_interface)
+ TARGET_INCLUDE_DIRECTORIES(pthreadpool PRIVATE src)
+ IF(NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
+@@ -153,16 +144,6 @@
+   TARGET_COMPILE_DEFINITIONS(pthreadpool PRIVATE _GNU_SOURCE=1)
+ ENDIF()
+ 
+-# ---[ Configure FXdiv
+-IF(NOT TARGET fxdiv)
+-  SET(FXDIV_BUILD_TESTS OFF CACHE BOOL "")
+-  SET(FXDIV_BUILD_BENCHMARKS OFF CACHE BOOL "")
+-  ADD_SUBDIRECTORY(
+-    "${FXDIV_SOURCE_DIR}"
+-    "${CMAKE_BINARY_DIR}/FXdiv")
+-ENDIF()
+-TARGET_LINK_LIBRARIES(pthreadpool PRIVATE fxdiv)
+-
+ INSTALL(TARGETS pthreadpool
+   LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+   ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..854a3b9
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+disable-download-and-add-soversion.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..eb1fb07
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+%:
+	dh $@ -Scmake
+
+override_dh_auto_configure:
+	dh_auto_configure -- -DGOOGLETEST_SOURCE_DIR=/usr/src/googletest -DPTHREADPOOL_LIBRARY_TYPE=shared
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..1159dcb
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,6 @@
+version=4
+opts="mode=git, pgpmode=none" \
+https://github.com/Maratyszcza/pthreadpool \
+HEAD debian uupdate
+
+# overrides tarball download https://archive.ubuntu.com/ubuntu/pool/universe/p/pthreadpool/pthreadpool_0.0~git20240616.560c60d.orig.tar.xz


More information about the Neon-commits mailing list