commit 2d10ea89fd7371d0672dd5b1ec49cffed792374d
Author: Jan RÄ™korajski <[email protected]>
Date:   Mon Dec 18 09:13:44 2023 +0100

    - fix building userspace on recent glibc

 pthread.patch   | 40 ++++++++++++++++++++++++++++++++++++++++
 vpb-driver.spec |  2 ++
 2 files changed, 42 insertions(+)
---
diff --git a/vpb-driver.spec b/vpb-driver.spec
index d37cbe0..225a799 100644
--- a/vpb-driver.spec
+++ b/vpb-driver.spec
@@ -41,6 +41,7 @@ Patch5:               kernel-5.6.patch
 Patch6:                kernel-5.13.patch
 Patch7:                kernel-5.17.patch
 Patch8:                kernel-5.18.patch
+Patch9:                pthread.patch
 URL:           http://www.voicetronix.com.au/downloads.htm#linux
 BuildRequires: rpmbuild(macros) >= 1.701
 %{?with_kernel:%{expand:%buildrequires_kernel 
kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
@@ -157,6 +158,7 @@ p=`pwd`\
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
 
 %if %{without kernel}
 %{__sed} -i -e 's,subdirs += $(srcdir)/vtcore $(srcdir)/vpb,,' src/Makefile.in
diff --git a/pthread.patch b/pthread.patch
new file mode 100644
index 0000000..71c2c41
--- /dev/null
+++ b/pthread.patch
@@ -0,0 +1,40 @@
+--- vpb-driver-4.2.58/include/vt/tonegen.h~    2014-09-28 20:02:28.000000000 
+0200
++++ vpb-driver-4.2.58/include/vt/tonegen.h     2023-12-18 09:09:50.785031749 
+0100
+@@ -34,6 +34,7 @@
+ 
+ #include <vector>
+ #include <string>
++#include <pthread.h>
+ #include <stdint.h>
+ 
+ 
+--- vpb-driver-4.2.58/src/utils/tonegen.cpp~   2014-09-28 20:02:28.000000000 
+0200
++++ vpb-driver-4.2.58/src/utils/tonegen.cpp    2023-12-18 09:11:22.661007600 
+0100
+@@ -30,6 +30,7 @@
+ #include <cstdio>
+ #include <cstdlib>
+ #include <cstring>
++#include <pthread.h>
+ 
+ using std::string;
+ 
+--- vpb-driver-4.2.58/src/utils/vpbecho.cpp~   2014-09-28 20:02:28.000000000 
+0200
++++ vpb-driver-4.2.58/src/utils/vpbecho.cpp    2023-12-18 09:11:56.086565702 
+0100
+@@ -39,6 +39,7 @@
+ #include <cstdio>
+ #include <cstdlib>
+ #include <cstring>
++#include <pthread.h>
+ 
+ 
+ // This was used for testing line voltage issues with OpenLine cards,
+--- vpb-driver-4.2.58/src/utils/playwav.cpp~   2014-09-28 20:02:28.000000000 
+0200
++++ vpb-driver-4.2.58/src/utils/playwav.cpp    2023-12-18 09:12:22.241655326 
+0100
+@@ -30,6 +30,7 @@
+ #include <cstdio>
+ #include <cstdlib>
+ #include <cstring>
++#include <pthread.h>
+ 
+ 
+ static int arg_exists(int argc, char *argv[], const char *arg)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vpb-driver.git/commitdiff/2d10ea89fd7371d0672dd5b1ec49cffed792374d

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to