[packages/libpthread_workqueue] Up to 0.9.2
arekm
arekm at pld-linux.org
Sun Mar 15 15:17:49 CET 2026
commit 08ee1b35db775e3d0f1007ca8009da54ee9f5e1b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Mar 15 15:17:29 2026 +0100
Up to 0.9.2
libpthread_workqueue-debug-macros.patch | 19 +++++++++++++++++++
libpthread_workqueue-link.patch | 10 ----------
libpthread_workqueue.spec | 12 ++++++------
3 files changed, 25 insertions(+), 16 deletions(-)
---
diff --git a/libpthread_workqueue.spec b/libpthread_workqueue.spec
index 258312e..b16fc5e 100644
--- a/libpthread_workqueue.spec
+++ b/libpthread_workqueue.spec
@@ -1,14 +1,14 @@
Summary: Thread pool for libdispatch
Summary(pl.UTF-8): Pula wątkow dla libdispatch
Name: libpthread_workqueue
-Version: 0.9
+Version: 0.9.2
Release: 1
License: BSD
Group: Libraries
-Source0: http://downloads.sourceforge.net/libpwq/%{name}-%{version}.tar.gz
-# Source0-md5: 57910365f4741aaac533aa4344a21497
-Patch0: %{name}-link.patch
-URL: http://sourceforge.net/projects/libpwq/
+Source0: https://github.com/mheily/libpwq/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 8142bedd994a342f23941dd70f43c816
+Patch0: %{name}-debug-macros.patch
+URL: https://github.com/mheily/libpwq
BuildRequires: autoconf >= 2.50
BuildRequires: automake
BuildRequires: libtool >= 2:2
@@ -51,7 +51,7 @@ Static libpthread_workqueue library.
Statyczna biblioteka libpthread_workqueue.
%prep
-%setup -q
+%setup -q -n libpwq-%{version}
%patch -P0 -p1
%build
diff --git a/libpthread_workqueue-debug-macros.patch b/libpthread_workqueue-debug-macros.patch
new file mode 100644
index 0000000..53c8798
--- /dev/null
+++ b/libpthread_workqueue-debug-macros.patch
@@ -0,0 +1,19 @@
+--- a/src/debug.h.orig
++++ b/src/debug.h
+@@ -73,11 +73,11 @@
+ # endif
+
+ #else /* NDEBUG */
+-# define dbg_puts(str) ;
+-# define dbg_printf(fmt,...) ;
+-# define dbg_perror(str) ;
+-# define dbg_lasterror(str) ;
+-# define reset_errno() ;
++# define dbg_puts(str) do { } while (0)
++# define dbg_printf(fmt,...) do { } while (0)
++# define dbg_perror(str) do { } while (0)
++# define dbg_lasterror(str) do { } while (0)
++# define reset_errno() do { } while (0)
+ #endif
+
+ #endif /* ! _DEBUG_H */
diff --git a/libpthread_workqueue-link.patch b/libpthread_workqueue-link.patch
deleted file mode 100644
index d38b0d8..0000000
--- a/libpthread_workqueue-link.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- libpthread_workqueue-0.9/Makefile.am.orig 2013-10-10 08:43:06.000000000 +0200
-+++ libpthread_workqueue-0.9/Makefile.am 2013-10-21 17:16:14.862845814 +0200
-@@ -14,6 +14,7 @@
- ./src/debug.h
-
- libpthread_workqueue_la_CFLAGS = -I./include -I./src -Wall -Wextra -Werror -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ -D_GNU_SOURCE -std=c99
-+libpthread_workqueue_la_LIBADD = -lpthread
-
- check_PROGRAMS = test_api test_latency test_witem_cache
- TESTS = test_api test_latency test_witem_cache
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libpthread_workqueue.git/commitdiff/08ee1b35db775e3d0f1007ca8009da54ee9f5e1b
More information about the pld-cvs-commit
mailing list