[packages/tsdecrypt] - patch to add missing includes

qboosh qboosh at pld-linux.org
Sat Mar 22 13:24:16 CET 2025


commit 580eb8d65117965cc6573bcb11970fc51bc97c83
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Mar 22 12:34:13 2025 +0100

    - patch to add missing includes

 tsdecrypt-includes.patch | 30 ++++++++++++++++++++++++++++++
 tsdecrypt.spec           |  3 +++
 2 files changed, 33 insertions(+)
---
diff --git a/tsdecrypt.spec b/tsdecrypt.spec
index 2da95bb..75bb16e 100644
--- a/tsdecrypt.spec
+++ b/tsdecrypt.spec
@@ -8,6 +8,7 @@ Group:		Applications/Networking
 Source0:	https://georgi.unixsol.org/programs/tsdecrypt/%{name}-%{version}.tar.bz2
 # Source0-md5:	a90391fce090e3e8075cd1f2dce1061b
 Patch0:		make.patch
+Patch1:		%{name}-includes.patch
 URL:		https://georgi.unixsol.org/programs/tsdecrypt/
 BuildRequires:	libdvbcsa-devel
 BuildRequires:	openssl-devel
@@ -28,9 +29,11 @@ protokołu cam36 po TCP, znanego także jako cs378x.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %{__make} \
+	CC="%{__cc}" \
 	OPTFLAGS="%{rpmcflags}" \
 	Q=
 
diff --git a/tsdecrypt-includes.patch b/tsdecrypt-includes.patch
new file mode 100644
index 0000000..86593be
--- /dev/null
+++ b/tsdecrypt-includes.patch
@@ -0,0 +1,30 @@
+--- tsdecrypt-10.0/filter.c.orig	2013-09-12 12:53:16.000000000 +0200
++++ tsdecrypt-10.0/filter.c	2025-03-22 12:26:03.160067004 +0100
+@@ -13,6 +13,7 @@
+  *
+  */
+ #include <ctype.h>
++#include <stdlib.h>
+ #include <string.h>
+ 
+ #include "data.h"
+--- tsdecrypt-10.0/camd-newcamd.c.orig	2013-09-12 12:53:16.000000000 +0200
++++ tsdecrypt-10.0/camd-newcamd.c	2025-03-22 12:28:09.847276656 +0100
+@@ -15,6 +15,7 @@
+ 
+ #define _XOPEN_SOURCE 700 // Needed to pull crypt() from unistd.h
+ 
++#include <crypt.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
+--- tsdecrypt-10.0/process.c.orig	2013-09-12 12:53:16.000000000 +0200
++++ tsdecrypt-10.0/process.c	2025-03-22 12:28:30.757366277 +0100
+@@ -13,6 +13,7 @@
+  *
+  */
+ #include <unistd.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <sys/uio.h>
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tsdecrypt.git/commitdiff/580eb8d65117965cc6573bcb11970fc51bc97c83



More information about the pld-cvs-commit mailing list