Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save patrickhanft/3af941f1769a6056e563abf84c0fcec3 to your computer and use it in GitHub Desktop.
Save patrickhanft/3af941f1769a6056e563abf84c0fcec3 to your computer and use it in GitHub Desktop.
this is a patch for the PKGBUILD repo for mumudvb
From b579ba32e4297f9813153708f108fc343463e7db Mon Sep 17 00:00:00 2001
From: Patrick Hanft <mail@patrick-hanft.de>
Date: Mon, 16 Jul 2018 18:39:32 +0200
Subject: [PATCH] Added patch to cope with kernels >4.14
See Github issue here: https://github.com/braice/MuMuDVB/issues/195
---
kernel-4.14+-workaround.patch | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 kernel-4.14+-workaround.patch
diff --git a/kernel-4.14+-workaround.patch b/kernel-4.14+-workaround.patch
new file mode 100644
index 0000000..a9e97e9
--- /dev/null
+++ b/kernel-4.14+-workaround.patch
@@ -0,0 +1,23 @@
+--- src/MuMuDVB-2.1.0/src/scam_common.h 2017-03-06 03:00:53.000000000 +0100
++++ /tmp/scam_common.h 2018-07-16 18:11:14.384012895 +0200
+@@ -59,6 +59,20 @@
+ #define DECSA_DEFAULT_DELAY 500000
+ #define SEND_DEFAULT_DELAY 1500000
+
++#define MAX_STATIC_KEYS 24
++
++//Quick hack around the removal of ca_pid_t and CA_GET_PID in recent kernels
++//https://github.com/torvalds/linux/commit/833ff5e7feda1a042b83e82208cef3d212ca0ef1
++#ifndef CA_SET_PID
++typedef struct ca_pid {
++ unsigned int pid;
++ int index; /* -1 == disable*/
++ } ca_pid_t;
++//We should not be able to get it so a number that is unlikely to happen
++#define CA_SET_PID 42424242
++#endif
++
++
+ /** @brief the parameters for the scam
+ * This structure contain the parameters needed for the SCAM
+ */
--
2.18.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment