git.iko.soy/typeable/nixpkgs
on master help sign in
mwprocapture: 1.2.0.3269 -> 1.2.0.3589
deb50bcCray Elliott
pkgs/os-specific/linux/mwprocapture/default.nix+3−3
@@ -16,14 +16,14 @@ let
16in
16in
17stdenv.mkDerivation rec {
17stdenv.mkDerivation rec {
18 name = "mwprocapture-1.2.${version}-${kernel.version}";
18 name = "mwprocapture-1.2.${version}-${kernel.version}";
19− version = "3269";
19+ version = "3589";
20
20
21 src = fetchurl {
21 src = fetchurl {
22 url = "http://www.magewell.com/files/ProCaptureForLinux_${version}.tar.gz";
22 url = "http://www.magewell.com/files/ProCaptureForLinux_${version}.tar.gz";
23− sha256 = "0i1y50mf559flhxgaxy2gdpa7dvpp12ix9xfzgxa61rc135x0im4";
23+ sha256 = "1arwnwrq52rs8g9zfxw8saip40vc3201sf7qnbqd2p23h8vzwb8i";
24 };
24 };
25
25
26− patches = [ ./linux_4_11_include_fix.patch ];
26+ patches = [ ./linux_4_13_fix.patch ];
27
27
28 preConfigure =
28 preConfigure =
29 ''
29 ''
pkgs/os-specific/linux/mwprocapture/linux_4_11_include_fix.patchdeleted−30
@@ -1,30 +0,0 @@
1−diff -Naur ProCaptureForLinux_3269/src/sources/avstream/capture.c ProCaptureForLinux_3269_new/src/sources/avstream/capture.c
2−--- ProCaptureForLinux_3269/src/sources/avstream/capture.c 2016-12-12 17:17:18.000000000 -0800
3−+++ ProCaptureForLinux_3269_new/src/sources/avstream/capture.c 2017-05-02 23:58:28.270827491 -0700
4−@@ -154,7 +154,9 @@
5− if (IS_ERR_OR_NULL(fp))
6− return IS_ERR(fp) ? PTR_ERR(fp) : -1;
7−
8−-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0)
9−+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)
10−+ ret = vfs_getattr(&fp->f_path, &stat, STATX_BASIC_STATS, AT_STATX_SYNC_AS_STAT);
11−+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0)
12− ret = vfs_getattr(&fp->f_path, &stat);
13− #else
14− ret = vfs_getattr(fp->f_path.mnt, fp->f_path.dentry, &stat);
15−diff -Naur ProCaptureForLinux_3269/src/sources/ospi/ospi-linux.c ProCaptureForLinux_3269_new/src/sources/ospi/ospi-linux.c
16−--- ProCaptureForLinux_3269/src/sources/ospi/ospi-linux.c 2016-12-12 17:17:18.000000000 -0800
17−+++ ProCaptureForLinux_3269_new/src/sources/ospi/ospi-linux.c 2017-05-02 23:51:02.197633628 -0700
18−@@ -21,6 +21,12 @@
19− #include <linux/freezer.h>
20− #include <linux/pci.h>
21−
22−+// some functions were moved from linux/sched.h out to their own headers in 4.11.x
23−+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)
24−+#include <linux/sched/signal.h>
25−+#include <linux/sched/debug.h>
26−+#endif
27−+
28− unsigned int debug_level = 0;
29−
30− struct kmem_cache *g_spin_cache = NULL;
pkgs/os-specific/linux/mwprocapture/linux_4_13_fix.patchnew file+12
@@ -0,0 +1,12 @@
1+diff -Naur ProCaptureForLinux_3589/src/sources/ospi/ospi-linux.h ProCaptureForLinux_3589_new/src/sources/ospi/ospi-linux.h
2+--- ProCaptureForLinux_3589/src/sources/ospi/ospi-linux.h 2017-08-17 02:46:07.000000000 -0700
3++++ ProCaptureForLinux_3589_new/src/sources/ospi/ospi-linux.h 2017-09-03 18:13:31.843510536 -0700
4+@@ -172,7 +172,7 @@
5+ #else
6+ struct completion done;
7+ #endif
8+- wait_queue_t waitq; // for multi wait
9++ wait_queue_entry_t waitq; // for multi wait
10+ };
11+ typedef struct _os_event_t *os_event_t;
12+