[arch-commits] Commit in bbswitch/repos (4 files)

2022-05-18 Thread Jan Steffens via arch-commits
Date: Wednesday, May 18, 2022 @ 21:55:05
  Author: heftig
Revision: 1209185

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1209182, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1209182, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1209182, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1209182, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-05-18 21:55:05 UTC 
(rev 1209185)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1209182, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-05-18 21:55:05 UTC 
(rev 1209185)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1209182, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-05-18 21:55:05 UTC (rev 1209185)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=507
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-05-16 Thread Jan Steffens via arch-commits
Date: Monday, May 16, 2022 @ 21:42:55
  Author: heftig
Revision: 1207645

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1207642, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1207642, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1207642, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1207642, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-05-16 21:42:55 UTC 
(rev 1207645)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1207642, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-05-16 21:42:55 UTC 
(rev 1207645)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1207642, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-05-16 21:42:55 UTC (rev 1207645)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=506
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-05-15 Thread Frederik Schwan via arch-commits
Date: Sunday, May 15, 2022 @ 06:12:18
  Author: freswa
Revision: 1207041

archrelease: copy trunk to community-staging-x86_64

Added:
  bbswitch/repos/community-staging-x86_64/
  bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch
(from rev 1207040, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-staging-x86_64/0002-kernel-5.7.patch
(from rev 1207040, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-staging-x86_64/PKGBUILD
(from rev 1207040, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch 
(from rev 1207040, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-staging-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-staging-x86_64/0001-proc_ops-struct.patch 2022-05-15 06:12:18 UTC 
(rev 1207041)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-staging-x86_64/0002-kernel-5.7.patch (from rev 
1207040, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-staging-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-staging-x86_64/0002-kernel-5.7.patch  2022-05-15 06:12:18 UTC 
(rev 1207041)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-staging-x86_64/PKGBUILD (from rev 1207040, 
bbswitch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-05-15 06:12:18 UTC (rev 1207041)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=505
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-05-12 Thread Jan Steffens via arch-commits
Date: Thursday, May 12, 2022 @ 19:39:57
  Author: heftig
Revision: 1199802

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1199799, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1199799, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1199799, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1199799, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-05-12 19:39:57 UTC 
(rev 1199802)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1199799, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-05-12 19:39:57 UTC 
(rev 1199802)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1199799, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-05-12 19:39:57 UTC (rev 1199802)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=504
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-05-10 Thread Jan Steffens via arch-commits
Date: Tuesday, May 10, 2022 @ 23:32:32
  Author: heftig
Revision: 1198267

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1198264, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1198265, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1198265, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1198264, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-05-10 23:32:32 UTC 
(rev 1198267)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1198265, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-05-10 23:32:32 UTC 
(rev 1198267)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1198265, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-05-10 23:32:32 UTC (rev 1198267)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=503
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-05-06 Thread Frederik Schwan via arch-commits
Date: Friday, May 6, 2022 @ 21:00:53
  Author: freswa
Revision: 1196045

archrelease: copy trunk to community-staging-x86_64

Added:
  bbswitch/repos/community-staging-x86_64/
  bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch
(from rev 1196044, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-staging-x86_64/0002-kernel-5.7.patch
(from rev 1196044, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-staging-x86_64/PKGBUILD
(from rev 1196044, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch 
(from rev 1196044, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-staging-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-staging-x86_64/0001-proc_ops-struct.patch 2022-05-06 21:00:53 UTC 
(rev 1196045)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-staging-x86_64/0002-kernel-5.7.patch (from rev 
1196044, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-staging-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-staging-x86_64/0002-kernel-5.7.patch  2022-05-06 21:00:53 UTC 
(rev 1196045)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-staging-x86_64/PKGBUILD (from rev 1196044, 
bbswitch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-05-06 21:00:53 UTC (rev 1196045)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=502
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-04-27 Thread Jan Steffens via arch-commits
Date: Wednesday, April 27, 2022 @ 22:01:12
  Author: heftig
Revision: 1191346

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1191342, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1191342, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1191342, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1191342, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-04-27 22:01:12 UTC 
(rev 1191346)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1191342, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-04-27 22:01:12 UTC 
(rev 1191346)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1191342, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-04-27 22:01:12 UTC (rev 1191346)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=501
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-04-20 Thread Jan Steffens via arch-commits
Date: Wednesday, April 20, 2022 @ 19:25:06
  Author: heftig
Revision: 1187169

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1187166, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1187166, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1187166, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1187166, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-04-20 19:25:06 UTC 
(rev 1187169)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1187166, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-04-20 19:25:06 UTC 
(rev 1187169)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1187166, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-04-20 19:25:06 UTC (rev 1187169)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=500
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-04-14 Thread Jan Steffens via arch-commits
Date: Thursday, April 14, 2022 @ 12:28:56
  Author: heftig
Revision: 1186217

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1186212, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1186212, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1186212, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1186212, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-04-14 12:28:56 UTC 
(rev 1186217)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1186212, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-04-14 12:28:56 UTC 
(rev 1186217)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1186212, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-04-14 12:28:56 UTC (rev 1186217)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=499
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-04-08 Thread Jan Steffens via arch-commits
Date: Friday, April 8, 2022 @ 18:33:48
  Author: heftig
Revision: 1183031

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1183028, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1183028, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1183028, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1183028, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-04-08 18:33:48 UTC 
(rev 1183031)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1183028, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-04-08 18:33:48 UTC 
(rev 1183031)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1183028, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-04-08 18:33:48 UTC (rev 1183031)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=496
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-03-22 Thread Jan Steffens via arch-commits
Date: Wednesday, March 23, 2022 @ 00:49:08
  Author: heftig
Revision: 1171179

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1171171, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1171171, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1171171, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1171171, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-03-23 00:49:08 UTC 
(rev 1171179)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1171171, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-03-23 00:49:08 UTC 
(rev 1171179)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1171171, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-03-23 00:49:08 UTC (rev 1171179)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=494
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-03-22 Thread Jan Steffens via arch-commits
Date: Monday, March 21, 2022 @ 23:46:19
  Author: heftig
Revision: 1168864

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1168856, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1168856, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1168856, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1168856, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-03-21 23:46:19 UTC 
(rev 1168864)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1168856, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-03-21 23:46:19 UTC 
(rev 1168864)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1168856, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-03-21 23:46:19 UTC (rev 1168864)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=493
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-03-16 Thread Jan Steffens via arch-commits
Date: Thursday, March 17, 2022 @ 00:59:37
  Author: heftig
Revision: 1156240

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1156235, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1156235, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1156235, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1156235, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-03-17 00:59:37 UTC 
(rev 1156240)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1156235, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-03-17 00:59:37 UTC 
(rev 1156240)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1156235, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-03-17 00:59:37 UTC (rev 1156240)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=492
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-03-11 Thread Jan Steffens via arch-commits
Date: Friday, March 11, 2022 @ 18:30:11
  Author: heftig
Revision: 1148536

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1148532, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1148532, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1148533, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1148532, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-03-11 18:30:11 UTC 
(rev 1148536)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1148532, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-03-11 18:30:11 UTC 
(rev 1148536)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1148533, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-03-11 18:30:11 UTC (rev 1148536)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=491
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-03-08 Thread Jan Steffens via arch-commits
Date: Tuesday, March 8, 2022 @ 20:37:56
  Author: heftig
Revision: 1145544

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1145539, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1145540, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1145540, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1145539, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-03-08 20:37:56 UTC 
(rev 1145544)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1145540, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-03-08 20:37:56 UTC 
(rev 1145544)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1145540, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-03-08 20:37:56 UTC (rev 1145544)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=490
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-03-02 Thread Jan Steffens via arch-commits
Date: Wednesday, March 2, 2022 @ 13:35:22
  Author: heftig
Revision: 1139597

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1139594, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1139594, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1139594, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1139594, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-03-02 13:35:22 UTC 
(rev 1139597)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1139594, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-03-02 13:35:22 UTC 
(rev 1139597)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1139594, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-03-02 13:35:22 UTC (rev 1139597)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=489
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-02-28 Thread Jan Steffens via arch-commits
Date: Monday, February 28, 2022 @ 11:50:38
  Author: heftig
Revision: 1138404

archrelease: copy trunk to community-staging-x86_64

Added:
  bbswitch/repos/community-staging-x86_64/
  bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch
(from rev 1138399, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-staging-x86_64/0002-kernel-5.7.patch
(from rev 1138399, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-staging-x86_64/PKGBUILD
(from rev 1138400, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch 
(from rev 1138399, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-staging-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-staging-x86_64/0001-proc_ops-struct.patch 2022-02-28 11:50:38 UTC 
(rev 1138404)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-staging-x86_64/0002-kernel-5.7.patch (from rev 
1138399, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-staging-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-staging-x86_64/0002-kernel-5.7.patch  2022-02-28 11:50:38 UTC 
(rev 1138404)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-staging-x86_64/PKGBUILD (from rev 1138400, 
bbswitch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-02-28 11:50:38 UTC (rev 1138404)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=488
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-02-23 Thread Jan Steffens via arch-commits
Date: Thursday, February 24, 2022 @ 07:20:51
  Author: heftig
Revision: 1136353

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1136349, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1136349, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1136350, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1136349, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-02-24 07:20:51 UTC 
(rev 1136353)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1136349, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-02-24 07:20:51 UTC 
(rev 1136353)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1136350, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-02-24 07:20:51 UTC (rev 1136353)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=487
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-02-16 Thread Jan Steffens via arch-commits
Date: Wednesday, February 16, 2022 @ 20:17:00
  Author: heftig
Revision: 1133525

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1133520, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1133521, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1133521, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1133520, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-02-16 20:17:00 UTC 
(rev 1133525)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1133521, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-02-16 20:17:00 UTC 
(rev 1133525)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1133521, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-02-16 20:17:00 UTC (rev 1133525)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=486
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-02-09 Thread Jan Steffens via arch-commits
Date: Wednesday, February 9, 2022 @ 20:05:55
  Author: heftig
Revision: 1129917

archrelease: copy trunk to community-staging-x86_64

Added:
  bbswitch/repos/community-staging-x86_64/
  bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch
(from rev 1129911, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-staging-x86_64/0002-kernel-5.7.patch
(from rev 1129911, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-staging-x86_64/PKGBUILD
(from rev 1129911, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch 
(from rev 1129911, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-staging-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-staging-x86_64/0001-proc_ops-struct.patch 2022-02-09 20:05:55 UTC 
(rev 1129917)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-staging-x86_64/0002-kernel-5.7.patch (from rev 
1129911, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-staging-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-staging-x86_64/0002-kernel-5.7.patch  2022-02-09 20:05:55 UTC 
(rev 1129917)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-staging-x86_64/PKGBUILD (from rev 1129911, 
bbswitch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-02-09 20:05:55 UTC (rev 1129917)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=484
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-02-08 Thread Jan Steffens via arch-commits
Date: Tuesday, February 8, 2022 @ 21:59:03
  Author: heftig
Revision: 1129397

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1129392, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1129392, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1129392, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1129392, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-02-08 21:59:03 UTC 
(rev 1129397)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1129392, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-02-08 21:59:03 UTC 
(rev 1129397)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1129392, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-02-08 21:59:03 UTC (rev 1129397)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=483
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-02-06 Thread Jan Steffens via arch-commits
Date: Sunday, February 6, 2022 @ 18:10:07
  Author: heftig
Revision: 1127234

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1127230, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1127230, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1127231, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1127230, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-02-06 18:10:07 UTC 
(rev 1127234)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1127230, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-02-06 18:10:07 UTC 
(rev 1127234)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1127231, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-02-06 18:10:07 UTC (rev 1127234)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=482
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-02-01 Thread Jan Steffens via arch-commits
Date: Tuesday, February 1, 2022 @ 23:46:10
  Author: heftig
Revision: 1122236

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1122231, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1122231, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1122231, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1122231, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-02-01 23:46:10 UTC 
(rev 1122236)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1122231, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-02-01 23:46:10 UTC 
(rev 1122236)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1122231, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-02-01 23:46:10 UTC (rev 1122236)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=481
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-01-29 Thread Jan Steffens via arch-commits
Date: Sunday, January 30, 2022 @ 04:15:13
  Author: heftig
Revision: 1120190

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1120188, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1120188, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1120188, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1120188, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-01-30 04:15:13 UTC 
(rev 1120190)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1120188, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-01-30 04:15:13 UTC 
(rev 1120190)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1120188, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-01-30 04:15:13 UTC (rev 1120190)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=480
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-01-27 Thread Jan Steffens via arch-commits
Date: Thursday, January 27, 2022 @ 17:16:28
  Author: heftig
Revision: 1117197

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1117193, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1117193, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1117194, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1117193, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-01-27 17:16:28 UTC 
(rev 1117197)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1117193, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-01-27 17:16:28 UTC 
(rev 1117197)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1117194, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-01-27 17:16:28 UTC (rev 1117197)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=479
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-01-20 Thread Jan Steffens via arch-commits
Date: Thursday, January 20, 2022 @ 17:54:46
  Author: heftig
Revision: 527

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 523, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 523, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 523, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 523, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-01-20 17:54:46 UTC 
(rev 527)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
523, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-01-20 17:54:46 UTC 
(rev 527)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 523, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-01-20 17:54:46 UTC (rev 527)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=478
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-01-16 Thread Jan Steffens via arch-commits
Date: Sunday, January 16, 2022 @ 12:15:31
  Author: heftig
Revision: 1106225

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1106220, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1106220, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1106220, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1106220, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-01-16 12:15:31 UTC 
(rev 1106225)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1106220, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-01-16 12:15:31 UTC 
(rev 1106225)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1106220, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-01-16 12:15:31 UTC (rev 1106225)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=477
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-01-10 Thread Jan Steffens via arch-commits
Date: Monday, January 10, 2022 @ 21:26:16
  Author: heftig
Revision: 1100045

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1100040, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1100040, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1100041, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1100040, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-01-10 21:26:16 UTC 
(rev 1100045)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1100040, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-01-10 21:26:16 UTC 
(rev 1100045)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1100041, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-01-10 21:26:16 UTC (rev 1100045)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=476
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2022-01-05 Thread Jan Steffens via arch-commits
Date: Wednesday, January 5, 2022 @ 18:00:16
  Author: heftig
Revision: 1093315

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1093312, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1093312, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1093312, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1093312, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2022-01-05 18:00:16 UTC 
(rev 1093315)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1093312, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2022-01-05 18:00:16 UTC 
(rev 1093315)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1093312, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-01-05 18:00:16 UTC (rev 1093315)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=475
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-12-29 Thread Jan Steffens via arch-commits
Date: Wednesday, December 29, 2021 @ 13:07:06
  Author: heftig
Revision: 1087151

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1087148, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1087148, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1087148, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1087148, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-12-29 13:07:06 UTC 
(rev 1087151)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1087148, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-12-29 13:07:06 UTC 
(rev 1087151)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1087148, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-12-29 13:07:06 UTC (rev 1087151)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=474
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-12-22 Thread Jan Steffens via arch-commits
Date: Wednesday, December 22, 2021 @ 17:38:08
  Author: heftig
Revision: 1082868

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1082863, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1082864, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1082865, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1082863, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-12-22 17:38:08 UTC 
(rev 1082868)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1082864, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-12-22 17:38:08 UTC 
(rev 1082868)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1082865, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-12-22 17:38:08 UTC (rev 1082868)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=473
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-12-16 Thread Jan Steffens via arch-commits
Date: Friday, December 17, 2021 @ 00:18:29
  Author: heftig
Revision: 1075631

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1075626, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1075626, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1075626, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1075626, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-12-17 00:18:29 UTC 
(rev 1075631)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1075626, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-12-17 00:18:29 UTC 
(rev 1075631)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1075626, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-12-17 00:18:29 UTC (rev 1075631)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=471
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-12-14 Thread Jan Steffens via arch-commits
Date: Wednesday, December 15, 2021 @ 00:00:39
  Author: heftig
Revision: 1072887

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1072881, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1072881, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1072881, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1072881, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-12-15 00:00:39 UTC 
(rev 1072887)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1072881, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-12-15 00:00:39 UTC 
(rev 1072887)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1072881, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-12-15 00:00:39 UTC (rev 1072887)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=470
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-12-08 Thread Jan Steffens via arch-commits
Date: Wednesday, December 8, 2021 @ 17:34:08
  Author: heftig
Revision: 1065679

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1065675, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1065675, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1065675, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1065675, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-12-08 17:34:08 UTC 
(rev 1065679)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1065675, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-12-08 17:34:08 UTC 
(rev 1065679)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1065675, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-12-08 17:34:08 UTC (rev 1065679)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=469
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-12-02 Thread Jan Steffens via arch-commits
Date: Thursday, December 2, 2021 @ 17:16:21
  Author: heftig
Revision: 1062117

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1062114, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1062114, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1062114, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1062114, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-12-02 17:16:21 UTC 
(rev 1062117)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1062114, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-12-02 17:16:21 UTC 
(rev 1062117)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1062114, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-12-02 17:16:21 UTC (rev 1062117)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=468
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-11-25 Thread Jan Steffens via arch-commits
Date: Thursday, November 25, 2021 @ 23:01:24
  Author: heftig
Revision: 1054819

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1054814, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1054815, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1054815, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1054814, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-11-25 23:01:24 UTC 
(rev 1054819)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1054815, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-11-25 23:01:24 UTC 
(rev 1054819)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1054815, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-11-25 23:01:24 UTC (rev 1054819)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=467
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-11-21 Thread Jan Steffens via arch-commits
Date: Sunday, November 21, 2021 @ 22:12:56
  Author: heftig
Revision: 1054073

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1054065, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1054065, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1054065, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1054065, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-11-21 22:12:56 UTC 
(rev 1054073)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1054065, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-11-21 22:12:56 UTC 
(rev 1054073)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1054065, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-11-21 22:12:56 UTC (rev 1054073)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=466
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-11-18 Thread Jan Steffens via arch-commits
Date: Thursday, November 18, 2021 @ 23:22:11
  Author: heftig
Revision: 1052736

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1052733, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1052733, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1052733, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1052733, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-11-18 23:22:11 UTC 
(rev 1052736)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1052733, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-11-18 23:22:11 UTC 
(rev 1052736)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1052733, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-11-18 23:22:11 UTC (rev 1052736)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=465
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-11-03 Thread Jan Steffens via arch-commits
Date: Wednesday, November 3, 2021 @ 23:33:41
  Author: heftig
Revision: 1035792

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1035787, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1035787, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1035787, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1035787, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-11-03 23:33:41 UTC 
(rev 1035792)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1035787, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-11-03 23:33:41 UTC 
(rev 1035792)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1035787, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-11-03 23:33:41 UTC (rev 1035792)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=461
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-11-02 Thread Jan Steffens via arch-commits
Date: Tuesday, November 2, 2021 @ 22:58:42
  Author: heftig
Revision: 1035472

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1035467, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1035467, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1035467, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1035467, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-11-02 22:58:42 UTC 
(rev 1035472)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1035467, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-11-02 22:58:42 UTC 
(rev 1035472)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1035467, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-11-02 22:58:42 UTC (rev 1035472)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=460
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-10-27 Thread Jan Steffens via arch-commits
Date: Thursday, October 28, 2021 @ 02:47:27
  Author: heftig
Revision: 1034831

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1034827, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1034827, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1034827, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1034827, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-10-28 02:47:27 UTC 
(rev 1034831)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1034827, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-10-28 02:47:27 UTC 
(rev 1034831)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1034827, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-10-28 02:47:27 UTC (rev 1034831)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=459
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-10-20 Thread Jan Steffens via arch-commits
Date: Wednesday, October 20, 2021 @ 23:11:14
  Author: heftig
Revision: 1031612

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1031607, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1031607, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1031607, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1031607, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-10-20 23:11:14 UTC 
(rev 1031612)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1031607, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-10-20 23:11:14 UTC 
(rev 1031612)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1031607, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-10-20 23:11:14 UTC (rev 1031612)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=458
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-10-17 Thread Jan Steffens via arch-commits
Date: Sunday, October 17, 2021 @ 13:23:15
  Author: heftig
Revision: 1030725

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1030722, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1030722, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1030722, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1030722, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-10-17 13:23:15 UTC 
(rev 1030725)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1030722, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-10-17 13:23:15 UTC 
(rev 1030725)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1030722, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-10-17 13:23:15 UTC (rev 1030725)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=457
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-10-13 Thread Jan Steffens via arch-commits
Date: Wednesday, October 13, 2021 @ 17:43:05
  Author: heftig
Revision: 1030050

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1030043, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1030043, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1030043, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1030043, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-10-13 17:43:05 UTC 
(rev 1030050)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1030043, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-10-13 17:43:05 UTC 
(rev 1030050)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1030043, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-10-13 17:43:05 UTC (rev 1030050)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=456
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-10-10 Thread Jan Steffens via arch-commits
Date: Sunday, October 10, 2021 @ 08:10:40
  Author: heftig
Revision: 1029222

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1029219, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1029219, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1029219, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1029219, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-10-10 08:10:40 UTC 
(rev 1029222)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1029219, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-10-10 08:10:40 UTC 
(rev 1029222)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1029219, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-10-10 08:10:40 UTC (rev 1029222)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=455
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-10-07 Thread Jan Steffens via arch-commits
Date: Thursday, October 7, 2021 @ 20:33:55
  Author: heftig
Revision: 1027985

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1027980, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1027980, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1027980, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1027980, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-10-07 20:33:55 UTC 
(rev 1027985)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1027980, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-10-07 20:33:55 UTC 
(rev 1027985)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1027980, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-10-07 20:33:55 UTC (rev 1027985)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=454
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-09-30 Thread Jan Steffens via arch-commits
Date: Thursday, September 30, 2021 @ 19:56:25
  Author: heftig
Revision: 1026245

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1026241, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1026242, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1026242, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1026241, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-09-30 19:56:25 UTC 
(rev 1026245)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1026242, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-09-30 19:56:25 UTC 
(rev 1026245)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1026242, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-09-30 19:56:25 UTC (rev 1026245)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=452
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-09-26 Thread Jan Steffens via arch-commits
Date: Sunday, September 26, 2021 @ 20:24:25
  Author: heftig
Revision: 1025716

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1025712, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1025712, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1025712, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1025712, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-09-26 20:24:25 UTC 
(rev 1025716)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1025712, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-09-26 20:24:25 UTC 
(rev 1025716)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1025712, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-09-26 20:24:25 UTC (rev 1025716)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=451
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-09-22 Thread Jan Steffens via arch-commits
Date: Wednesday, September 22, 2021 @ 23:02:32
  Author: heftig
Revision: 1021715

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1021711, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1021711, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1021711, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1021711, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-09-22 23:02:32 UTC 
(rev 1021715)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1021711, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-09-22 23:02:32 UTC 
(rev 1021715)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1021711, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-09-22 23:02:32 UTC (rev 1021715)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=450
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-09-18 Thread Jan Steffens via arch-commits
Date: Sunday, September 19, 2021 @ 01:01:31
  Author: heftig
Revision: 1017122

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1017118, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1017118, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1017118, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1017118, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-09-19 01:01:31 UTC 
(rev 1017122)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1017118, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-09-19 01:01:31 UTC 
(rev 1017122)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1017118, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-09-19 01:01:31 UTC (rev 1017122)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=449
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-09-15 Thread Jan Steffens via arch-commits
Date: Wednesday, September 15, 2021 @ 22:27:45
  Author: heftig
Revision: 1016121

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1016118, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1016118, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1016119, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1016118, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-09-15 22:27:45 UTC 
(rev 1016121)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1016118, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-09-15 22:27:45 UTC 
(rev 1016121)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1016119, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-09-15 22:27:45 UTC (rev 1016121)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=446
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-09-12 Thread Jan Steffens via arch-commits
Date: Sunday, September 12, 2021 @ 21:34:45
  Author: heftig
Revision: 1014613

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1014610, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1014610, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1014610, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1014610, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-09-12 21:34:45 UTC 
(rev 1014613)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1014610, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-09-12 21:34:45 UTC 
(rev 1014613)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1014610, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-09-12 21:34:45 UTC (rev 1014613)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=445
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-09-03 Thread Jan Steffens via arch-commits
Date: Friday, September 3, 2021 @ 21:08:17
  Author: heftig
Revision: 1010738

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1010736, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1010737, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1010737, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1010736, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-09-03 21:08:17 UTC 
(rev 1010738)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1010737, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-09-03 21:08:17 UTC 
(rev 1010738)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1010737, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-09-03 21:08:17 UTC (rev 1010738)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=442
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-08-26 Thread Jan Steffens via arch-commits
Date: Thursday, August 26, 2021 @ 19:52:53
  Author: heftig
Revision: 1006523

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1006518, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1006518, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1006519, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1006518, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-08-26 19:52:53 UTC 
(rev 1006523)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1006518, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-08-26 19:52:53 UTC 
(rev 1006523)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1006519, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-08-26 19:52:53 UTC (rev 1006523)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=441
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-08-18 Thread Jan Steffens via arch-commits
Date: Wednesday, August 18, 2021 @ 21:49:48
  Author: heftig
Revision: 1003707

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 1003704, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 1003704, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 1003705, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 1003704, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-08-18 21:49:48 UTC 
(rev 1003707)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
1003704, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-08-18 21:49:48 UTC 
(rev 1003707)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 1003705, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-08-18 21:49:48 UTC (rev 1003707)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=440
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-08-12 Thread Jan Steffens via arch-commits
Date: Thursday, August 12, 2021 @ 22:41:08
  Author: heftig
Revision: 997821

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 997816, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 997817, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 997817, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 997816, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-08-12 22:41:08 UTC 
(rev 997821)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
997817, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-08-12 22:41:08 UTC 
(rev 997821)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 997817, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-08-12 22:41:08 UTC (rev 997821)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=439
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-08-08 Thread Jan Steffens via arch-commits
Date: Sunday, August 8, 2021 @ 13:34:01
  Author: heftig
Revision: 994941

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 994940, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 994940, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 994940, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 994940, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-08-08 13:34:01 UTC 
(rev 994941)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
994940, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-08-08 13:34:01 UTC 
(rev 994941)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 994940, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-08-08 13:34:01 UTC (rev 994941)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=438
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-08-04 Thread Jan Steffens via arch-commits
Date: Wednesday, August 4, 2021 @ 19:07:17
  Author: heftig
Revision: 993753

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 993747, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 993747, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 993748, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 993747, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-08-04 19:07:17 UTC 
(rev 993753)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
993747, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-08-04 19:07:17 UTC 
(rev 993753)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 993748, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-08-04 19:07:17 UTC (rev 993753)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=437
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-07-31 Thread Jan Steffens via arch-commits
Date: Saturday, July 31, 2021 @ 23:13:46
  Author: heftig
Revision: 991573

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 991570, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 991570, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 991570, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 991570, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-07-31 23:13:46 UTC 
(rev 991573)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
991570, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-07-31 23:13:46 UTC 
(rev 991573)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 991570, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-07-31 23:13:46 UTC (rev 991573)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=436
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-07-28 Thread Jan Steffens via arch-commits
Date: Thursday, July 29, 2021 @ 00:52:42
  Author: heftig
Revision: 989720

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 989717, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 989717, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 989718, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 989717, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-07-29 00:52:42 UTC 
(rev 989720)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
989717, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-07-29 00:52:42 UTC 
(rev 989720)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 989718, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-07-29 00:52:42 UTC (rev 989720)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=435
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-07-25 Thread Jan Steffens via arch-commits
Date: Monday, July 26, 2021 @ 01:56:32
  Author: heftig
Revision: 985021

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 985017, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 985017, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 985017, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 985017, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-07-26 01:56:32 UTC 
(rev 985021)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
985017, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-07-26 01:56:32 UTC 
(rev 985021)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 985017, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-07-26 01:56:32 UTC (rev 985021)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=434
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-07-22 Thread Jan Steffens via arch-commits
Date: Thursday, July 22, 2021 @ 21:32:58
  Author: heftig
Revision: 984073

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 984066, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 984066, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 984066, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 984066, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-07-22 21:32:58 UTC 
(rev 984073)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
984066, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-07-22 21:32:58 UTC 
(rev 984073)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 984066, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-07-22 21:32:58 UTC (rev 984073)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=433
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-07-09 Thread Jan Steffens via arch-commits
Date: Saturday, July 10, 2021 @ 00:25:06
  Author: heftig
Revision: 976336

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 976327, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 976327, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 976327, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 976327, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-07-10 00:25:06 UTC 
(rev 976336)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
976327, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-07-10 00:25:06 UTC 
(rev 976336)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 976327, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-07-10 00:25:06 UTC (rev 976336)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=431
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-07-08 Thread Jan Steffens via arch-commits
Date: Thursday, July 8, 2021 @ 06:54:32
  Author: heftig
Revision: 975750

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 975744, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 975744, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 975744, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 975744, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-07-08 06:54:32 UTC 
(rev 975750)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
975744, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-07-08 06:54:32 UTC 
(rev 975750)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 975744, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-07-08 06:54:32 UTC (rev 975750)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=430
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-07-01 Thread Jan Steffens via arch-commits
Date: Thursday, July 1, 2021 @ 07:58:54
  Author: heftig
Revision: 969162

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 969157, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 969157, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 969158, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 969157, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-07-01 07:58:54 UTC 
(rev 969162)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
969157, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-07-01 07:58:54 UTC 
(rev 969162)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 969158, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-07-01 07:58:54 UTC (rev 969162)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=429
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-06-25 Thread Jan Steffens via arch-commits
Date: Friday, June 25, 2021 @ 23:49:40
  Author: heftig
Revision: 967502

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 967500, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 967501, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 967501, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 967500, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-06-25 23:49:40 UTC 
(rev 967502)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
967501, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-06-25 23:49:40 UTC 
(rev 967502)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 967501, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-06-25 23:49:40 UTC (rev 967502)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=428
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-06-23 Thread Jan Steffens via arch-commits
Date: Wednesday, June 23, 2021 @ 17:16:18
  Author: heftig
Revision: 967100

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 967097, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 967097, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 967097, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 967097, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-06-23 17:16:18 UTC 
(rev 967100)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
967097, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-06-23 17:16:18 UTC 
(rev 967100)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 967097, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-06-23 17:16:18 UTC (rev 967100)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=427
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-06-18 Thread Jan Steffens via arch-commits
Date: Friday, June 18, 2021 @ 23:19:39
  Author: heftig
Revision: 965206

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 965201, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 965201, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 965201, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 965201, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-06-18 23:19:39 UTC 
(rev 965206)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
965201, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-06-18 23:19:39 UTC 
(rev 965206)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 965201, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-06-18 23:19:39 UTC (rev 965206)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=426
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-06-16 Thread Jan Steffens via arch-commits
Date: Wednesday, June 16, 2021 @ 22:14:40
  Author: heftig
Revision: 964365

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 964361, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 964361, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 964361, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 964361, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-06-16 22:14:40 UTC 
(rev 964365)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
964361, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-06-16 22:14:40 UTC 
(rev 964365)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 964361, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-06-16 22:14:40 UTC (rev 964365)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=425
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-06-10 Thread Jan Steffens via arch-commits
Date: Thursday, June 10, 2021 @ 17:35:19
  Author: heftig
Revision: 961530

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 961527, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 961527, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 961527, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 961527, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-06-10 17:35:19 UTC 
(rev 961530)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
961527, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-06-10 17:35:19 UTC 
(rev 961530)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 961527, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-06-10 17:35:19 UTC (rev 961530)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=424
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-06-03 Thread Jan Steffens via arch-commits
Date: Thursday, June 3, 2021 @ 12:41:31
  Author: heftig
Revision: 955666

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 955662, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 955662, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 955662, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 955662, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-06-03 12:41:31 UTC 
(rev 955666)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
955662, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-06-03 12:41:31 UTC 
(rev 955666)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 955662, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-06-03 12:41:31 UTC (rev 955666)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=423
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-05-28 Thread Jan Steffens via arch-commits
Date: Friday, May 28, 2021 @ 21:45:51
  Author: heftig
Revision: 950072

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 950066, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 950066, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 950066, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 950066, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-05-28 21:45:51 UTC 
(rev 950072)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
950066, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-05-28 21:45:51 UTC 
(rev 950072)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 950066, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-05-28 21:45:51 UTC (rev 950072)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=422
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-05-26 Thread Jan Steffens via arch-commits
Date: Wednesday, May 26, 2021 @ 22:46:43
  Author: heftig
Revision: 947252

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 947249, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 947249, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 947249, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 947249, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-05-26 22:46:43 UTC 
(rev 947252)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
947249, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-05-26 22:46:43 UTC 
(rev 947252)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 947249, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-05-26 22:46:43 UTC (rev 947252)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=421
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-05-22 Thread Jan Steffens via arch-commits
Date: Sunday, May 23, 2021 @ 02:07:23
  Author: heftig
Revision: 942555

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 942552, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 942552, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 942552, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 942552, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-05-23 02:07:23 UTC 
(rev 942555)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
942552, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-05-23 02:07:23 UTC 
(rev 942555)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 942552, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-05-23 02:07:23 UTC (rev 942555)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=420
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-05-18 Thread Jan Steffens via arch-commits
Date: Tuesday, May 18, 2021 @ 22:46:28
  Author: heftig
Revision: 936345

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 936338, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 936338, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 936338, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 936338, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-05-18 22:46:28 UTC 
(rev 936345)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
936338, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-05-18 22:46:28 UTC 
(rev 936345)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 936338, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-05-18 22:46:28 UTC (rev 936345)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=418
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-05-12 Thread Jan Steffens via arch-commits
Date: Thursday, May 13, 2021 @ 00:05:38
  Author: heftig
Revision: 932893

archrelease: copy trunk to community-staging-x86_64

Added:
  bbswitch/repos/community-staging-x86_64/
  bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch
(from rev 932889, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-staging-x86_64/0002-kernel-5.7.patch
(from rev 932889, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-staging-x86_64/PKGBUILD
(from rev 932889, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-staging-x86_64/0001-proc_ops-struct.patch 
(from rev 932889, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-staging-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-staging-x86_64/0001-proc_ops-struct.patch 2021-05-13 00:05:38 UTC 
(rev 932893)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-staging-x86_64/0002-kernel-5.7.patch (from rev 
932889, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-staging-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-staging-x86_64/0002-kernel-5.7.patch  2021-05-13 00:05:38 UTC 
(rev 932893)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-staging-x86_64/PKGBUILD (from rev 932889, 
bbswitch/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2021-05-13 00:05:38 UTC (rev 932893)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=414
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-05-12 Thread Jan Steffens via arch-commits
Date: Wednesday, May 12, 2021 @ 19:02:23
  Author: heftig
Revision: 932611

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 932607, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 932607, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 932607, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 932607, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-05-12 19:02:23 UTC 
(rev 932611)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
932607, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-05-12 19:02:23 UTC 
(rev 932611)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 932607, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-05-12 19:02:23 UTC (rev 932611)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=413
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-05-07 Thread Jan Steffens via arch-commits
Date: Friday, May 7, 2021 @ 16:09:40
  Author: heftig
Revision: 928626

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 928622, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 928622, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 928623, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 928622, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-05-07 16:09:40 UTC 
(rev 928626)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
928622, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-05-07 16:09:40 UTC 
(rev 928626)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 928623, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-05-07 16:09:40 UTC (rev 928626)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=412
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-04-26 Thread Jan Steffens via arch-commits
Date: Monday, April 26, 2021 @ 21:37:05
  Author: heftig
Revision: 924576

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 924574, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 924574, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 924574, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 924574, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-04-26 21:37:05 UTC 
(rev 924576)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
924574, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-04-26 21:37:05 UTC 
(rev 924576)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 924574, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-04-26 21:37:05 UTC (rev 924576)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=410
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-04-21 Thread Jan Steffens via arch-commits
Date: Wednesday, April 21, 2021 @ 21:02:43
  Author: heftig
Revision: 920706

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 920700, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 920700, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 920700, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 920700, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-04-21 21:02:43 UTC 
(rev 920706)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
920700, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-04-21 21:02:43 UTC 
(rev 920706)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 920700, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-04-21 21:02:43 UTC (rev 920706)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=409
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-04-16 Thread Jan Steffens via arch-commits
Date: Friday, April 16, 2021 @ 13:14:01
  Author: heftig
Revision: 919405

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 919398, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 919398, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 919398, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 919398, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-04-16 13:14:01 UTC 
(rev 919405)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
919398, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-04-16 13:14:01 UTC 
(rev 919405)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 919398, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-04-16 13:14:01 UTC (rev 919405)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=407
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-04-11 Thread Jan Steffens via arch-commits
Date: Monday, April 12, 2021 @ 00:58:45
  Author: heftig
Revision: 915839

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 915833, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 915833, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 915833, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 915833, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-04-12 00:58:45 UTC 
(rev 915839)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
915833, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-04-12 00:58:45 UTC 
(rev 915839)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 915833, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-04-12 00:58:45 UTC (rev 915839)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=404
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-04-10 Thread Jan Steffens via arch-commits
Date: Saturday, April 10, 2021 @ 21:37:17
  Author: heftig
Revision: 915694

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 915689, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 915689, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 915689, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 915689, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-04-10 21:37:17 UTC 
(rev 915694)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
915689, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-04-10 21:37:17 UTC 
(rev 915694)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 915689, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-04-10 21:37:17 UTC (rev 915694)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=403
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-04-07 Thread Jan Steffens via arch-commits
Date: Wednesday, April 7, 2021 @ 23:06:11
  Author: heftig
Revision: 912997

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 912993, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 912993, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 912993, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 912993, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-04-07 23:06:11 UTC 
(rev 912997)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
912993, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-04-07 23:06:11 UTC 
(rev 912997)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 912993, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-04-07 23:06:11 UTC (rev 912997)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=402
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-03-30 Thread Jan Steffens via arch-commits
Date: Tuesday, March 30, 2021 @ 14:55:52
  Author: heftig
Revision: 910502

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 910496, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 910496, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 910497, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 910496, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-03-30 14:55:52 UTC 
(rev 910502)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
910496, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-03-30 14:55:52 UTC 
(rev 910502)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 910497, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-03-30 14:55:52 UTC (rev 910502)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=401
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-03-25 Thread Jan Steffens via arch-commits
Date: Friday, March 26, 2021 @ 00:58:23
  Author: heftig
Revision: 904304

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 904299, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 904299, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 904299, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 904299, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-03-26 00:58:23 UTC 
(rev 904304)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
904299, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-03-26 00:58:23 UTC 
(rev 904304)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 904299, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-03-26 00:58:23 UTC (rev 904304)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=400
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-03-24 Thread Jan Steffens via arch-commits
Date: Wednesday, March 24, 2021 @ 19:33:57
  Author: heftig
Revision: 901752

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 901749, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 901750, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 901750, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 901749, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-03-24 19:33:57 UTC 
(rev 901752)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
901750, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-03-24 19:33:57 UTC 
(rev 901752)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 901750, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-03-24 19:33:57 UTC (rev 901752)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=399
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-03-20 Thread Jan Steffens via arch-commits
Date: Sunday, March 21, 2021 @ 02:32:12
  Author: heftig
Revision: 896624

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 896617, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 896617, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 896617, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 896617, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-03-21 02:32:12 UTC 
(rev 896624)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
896617, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-03-21 02:32:12 UTC 
(rev 896624)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 896617, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-03-21 02:32:12 UTC (rev 896624)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=398
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-03-17 Thread Jan Steffens via arch-commits
Date: Wednesday, March 17, 2021 @ 17:36:53
  Author: heftig
Revision: 894132

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 894126, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 894126, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 894126, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 894126, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-03-17 17:36:53 UTC 
(rev 894132)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
894126, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-03-17 17:36:53 UTC 
(rev 894132)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 894126, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-03-17 17:36:53 UTC (rev 894132)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=397
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-03-11 Thread Jan Steffens via arch-commits
Date: Thursday, March 11, 2021 @ 15:07:22
  Author: heftig
Revision: 887540

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 887535, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 887535, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 887535, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 887535, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-03-11 15:07:22 UTC 
(rev 887540)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
887535, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-03-11 15:07:22 UTC 
(rev 887540)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 887535, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-03-11 15:07:22 UTC (rev 887540)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=396
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-03-09 Thread Jan Steffens via arch-commits
Date: Tuesday, March 9, 2021 @ 20:08:09
  Author: heftig
Revision: 887126

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 887117, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 887117, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 887117, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 887117, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-03-09 20:08:09 UTC 
(rev 887126)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
887117, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-03-09 20:08:09 UTC 
(rev 887126)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 887117, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-03-09 20:08:09 UTC (rev 887126)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=395
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-03-04 Thread Jan Steffens via arch-commits
Date: Thursday, March 4, 2021 @ 22:32:24
  Author: heftig
Revision: 880807

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 880804, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 880805, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 880805, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 880804, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-03-04 22:32:24 UTC 
(rev 880807)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
880805, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-03-04 22:32:24 UTC 
(rev 880807)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 880805, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-03-04 22:32:24 UTC (rev 880807)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=393
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-02-26 Thread Jan Steffens via arch-commits
Date: Friday, February 26, 2021 @ 22:55:29
  Author: heftig
Revision: 874462

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 874459, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 874459, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 874459, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 874459, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-02-26 22:55:29 UTC 
(rev 874462)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
874459, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-02-26 22:55:29 UTC 
(rev 874462)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 874459, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-02-26 22:55:29 UTC (rev 874462)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=392
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-02-15 Thread Jan Steffens via arch-commits
Date: Monday, February 15, 2021 @ 23:58:09
  Author: heftig
Revision: 862221

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 862216, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 862218, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 862219, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 862216, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-02-15 23:58:09 UTC 
(rev 862221)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
862218, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-02-15 23:58:09 UTC 
(rev 862221)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 862219, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-02-15 23:58:09 UTC (rev 862221)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=389
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers' 'pahole')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-02-13 Thread Jan Steffens via arch-commits
Date: Saturday, February 13, 2021 @ 21:22:06
  Author: heftig
Revision: 859703

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 859698, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 859700, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 859701, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 859698, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-02-13 21:22:06 UTC 
(rev 859703)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
859700, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-02-13 21:22:06 UTC 
(rev 859703)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 859701, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-02-13 21:22:06 UTC (rev 859703)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=388
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-02-10 Thread Jan Steffens via arch-commits
Date: Wednesday, February 10, 2021 @ 19:10:56
  Author: heftig
Revision: 853986

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 853979, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 853981, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 853981, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 853979, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-02-10 19:10:56 UTC 
(rev 853986)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
853981, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-02-10 19:10:56 UTC 
(rev 853986)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 853981, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-02-10 19:10:56 UTC (rev 853986)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=387
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-02-07 Thread Jan Steffens via arch-commits
Date: Sunday, February 7, 2021 @ 23:20:42
  Author: heftig
Revision: 848541

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 848533, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 848533, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 848533, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 848533, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-02-07 23:20:42 UTC 
(rev 848541)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
848533, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-02-07 23:20:42 UTC 
(rev 848541)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 848533, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-02-07 23:20:42 UTC (rev 848541)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=386
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-02-06 Thread Jan Steffens via arch-commits
Date: Saturday, February 6, 2021 @ 11:51:57
  Author: heftig
Revision: 846544

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 846539, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 846539, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 846539, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 846539, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-02-06 11:51:57 UTC 
(rev 846544)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
846539, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-02-06 11:51:57 UTC 
(rev 846544)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 846539, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-02-06 11:51:57 UTC (rev 846544)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=385
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-02-03 Thread Jan Steffens via arch-commits
Date: Thursday, February 4, 2021 @ 00:27:18
  Author: heftig
Revision: 843941

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 843937, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 843937, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 843937, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 843937, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-02-04 00:27:18 UTC 
(rev 843941)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
843937, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-02-04 00:27:18 UTC 
(rev 843941)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 843937, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-02-04 00:27:18 UTC (rev 843941)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=384
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

[arch-commits] Commit in bbswitch/repos (4 files)

2021-01-30 Thread Jan Steffens via arch-commits
Date: Sunday, January 31, 2021 @ 02:18:47
  Author: heftig
Revision: 836939

archrelease: copy trunk to community-testing-x86_64

Added:
  bbswitch/repos/community-testing-x86_64/
  bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch
(from rev 836934, bbswitch/trunk/0001-proc_ops-struct.patch)
  bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch
(from rev 836935, bbswitch/trunk/0002-kernel-5.7.patch)
  bbswitch/repos/community-testing-x86_64/PKGBUILD
(from rev 836936, bbswitch/trunk/PKGBUILD)

+
 0001-proc_ops-struct.patch |   36 ++
 0002-kernel-5.7.patch  |   11 +
 PKGBUILD   |   50 +++
 3 files changed, 97 insertions(+)

Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch 
(from rev 836934, bbswitch/trunk/0001-proc_ops-struct.patch)
===
--- community-testing-x86_64/0001-proc_ops-struct.patch 
(rev 0)
+++ community-testing-x86_64/0001-proc_ops-struct.patch 2021-01-31 02:18:47 UTC 
(rev 836939)
@@ -0,0 +1,36 @@
+diff --unified --recursive --text bbswitch-0.8.orig/bbswitch.c 
bbswitch-0.8.new/bbswitch.c
+--- bbswitch-0.8.orig/bbswitch.c   2013-12-04 21:22:06.0 -0200
 bbswitch-0.8.new/bbswitch.c2020-04-01 12:02:35.518754892 -0300
+@@ -35,6 +35,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define BBSWITCH_VERSION "0.8"
+ 
+@@ -375,13 +376,23 @@
+ return 0;
+ }
+ 
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0)
++static struct proc_ops bbswitch_fops = {
++.proc_open   = bbswitch_proc_open,
++.proc_read   = seq_read,
++.proc_write  = bbswitch_proc_write,
++.proc_lseek = seq_lseek,
++.proc_release= single_release
++};
++#else
+ static struct file_operations bbswitch_fops = {
+ .open   = bbswitch_proc_open,
+ .read   = seq_read,
+ .write  = bbswitch_proc_write,
+ .llseek = seq_lseek,
+ .release= single_release
+-};
++ };
++#endif
+ 
+ static struct notifier_block nb = {
+ .notifier_call = _pm_handler

Copied: bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 
836935, bbswitch/trunk/0002-kernel-5.7.patch)
===
--- community-testing-x86_64/0002-kernel-5.7.patch  
(rev 0)
+++ community-testing-x86_64/0002-kernel-5.7.patch  2021-01-31 02:18:47 UTC 
(rev 836939)
@@ -0,0 +1,11 @@
+diff -u -r bbswitch-0.8/bbswitch.c bbswitch-0.8-5.7/bbswitch.c
+--- bbswitch-0.8/bbswitch.c2020-06-02 00:34:20.370571802 +
 bbswitch-0.8-5.7/bbswitch.c2020-06-02 00:35:18.161403639 +
+@@ -29,6 +29,7 @@
+ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

Copied: bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 836936, 
bbswitch/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2021-01-31 02:18:47 UTC (rev 836939)
@@ -0,0 +1,50 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: M0Rf30
+# Contributor: Samsagax 
+
+pkgbase=bbswitch
+pkgname=(bbswitch bbswitch-dkms)
+pkgver=0.8
+pkgrel=383
+pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus 
laptops"
+arch=('x86_64')
+url="http://github.com/Bumblebee-Project/bbswitch;
+license=('GPL')
+makedepends=('linux-headers')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz;
+0001-proc_ops-struct.patch 0002-kernel-5.7.patch)
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+
'993a2895c37ea213c105be668f794af54838d8015d6f561ee6bc7ce65583425515931c83c2487ab97c14454105f233f089e8bdc90ea5ed9576be767335f57ad1'
+
'2eeae463b2f83e7744ff1a769cb6186389e026fc78668e836525dfd16a56abfae01cfb150c9bb46af74ec42e87ebea91636118fe0c773e7eaa7ea671b25d2e04')
+
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  patch -Np1 < ../0001-proc_ops-struct.patch
+  patch -Np1 < ../0002-kernel-5.7.patch
+}
+
+build() {
+  cd ${pkgbase}-${pkgver}
+  make KDIR=/usr/src/linux
+}
+
+package_bbswitch() {
+  depends=('linux')
+
+  cd ${pkgbase}-${pkgver}
+  _extradir="/usr/lib/modules/$(

  1   2   >