[arch-commits] Commit in bbswitch/repos (4 files)
Date: Tuesday, December 15, 2020 @ 21:26:53 Author: heftig Revision: 776228 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 776222, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 776222, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 776223, 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 776222, 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 2020-12-15 21:26:53 UTC (rev 776228) @@ -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 776222, 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 2020-12-15 21:26:53 UTC (rev 776228) @@ -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 776223, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-12-15 21:26:53 UTC (rev 776228) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=371 +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)
Date: Saturday, December 12, 2020 @ 22:06:07 Author: heftig Revision: 773631 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 773625, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 773625, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 773625, 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 773625, 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 2020-12-12 22:06:07 UTC (rev 773631) @@ -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 773625, 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 2020-12-12 22:06:07 UTC (rev 773631) @@ -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 773625, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-12-12 22:06:07 UTC (rev 773631) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=370 +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)
Date: Tuesday, December 8, 2020 @ 13:14:29 Author: heftig Revision: 771791 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 771787, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 771787, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 771787, 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 771787, 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 2020-12-08 13:14:29 UTC (rev 771791) @@ -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 771787, 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 2020-12-08 13:14:29 UTC (rev 771791) @@ -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 771787, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-12-08 13:14:29 UTC (rev 771791) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=369 +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)
Date: Wednesday, December 2, 2020 @ 17:25:16 Author: heftig Revision: 769214 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 769208, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 769211, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 769213, 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 769208, 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 2020-12-02 17:25:16 UTC (rev 769214) @@ -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 769211, 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 2020-12-02 17:25:16 UTC (rev 769214) @@ -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 769213, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-12-02 17:25:16 UTC (rev 769214) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=368 +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)
Date: Tuesday, November 24, 2020 @ 16:29:31 Author: heftig Revision: 760977 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 760973, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 760974, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 760974, 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 760973, 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 2020-11-24 16:29:31 UTC (rev 760977) @@ -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 760974, 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 2020-11-24 16:29:31 UTC (rev 760977) @@ -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 760974, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-11-24 16:29:31 UTC (rev 760977) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=366 +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)
Date: Sunday, November 22, 2020 @ 15:28:36 Author: heftig Revision: 759203 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 759202, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 759202, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 759202, 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 759202, 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 2020-11-22 15:28:36 UTC (rev 759203) @@ -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 759202, 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 2020-11-22 15:28:36 UTC (rev 759203) @@ -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 759202, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-11-22 15:28:36 UTC (rev 759203) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=365 +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)
Date: Wednesday, November 18, 2020 @ 20:53:02 Author: heftig Revision: 757228 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 757224, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 757225, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 757226, 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 757224, 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 2020-11-18 20:53:02 UTC (rev 757228) @@ -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 757225, 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 2020-11-18 20:53:02 UTC (rev 757228) @@ -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 757226, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-11-18 20:53:02 UTC (rev 757228) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=364 +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)
Date: Tuesday, November 10, 2020 @ 15:19:33 Author: heftig Revision: 749576 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 749571, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 749573, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 749574, 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 749571, 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 2020-11-10 15:19:33 UTC (rev 749576) @@ -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 749573, 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 2020-11-10 15:19:33 UTC (rev 749576) @@ -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 749574, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-11-10 15:19:33 UTC (rev 749576) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=362 +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)
Date: Thursday, November 5, 2020 @ 16:26:40 Author: heftig Revision: 743272 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 743268, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 743268, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 743268, 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 743268, 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 2020-11-05 16:26:40 UTC (rev 743272) @@ -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 743268, 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 2020-11-05 16:26:40 UTC (rev 743272) @@ -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 743268, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-11-05 16:26:40 UTC (rev 743272) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=360 +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)
Date: Wednesday, November 4, 2020 @ 22:43:49 Author: heftig Revision: 742689 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 742684, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 742685, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 742687, 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 742684, 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 2020-11-04 22:43:49 UTC (rev 742689) @@ -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 742685, 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 2020-11-04 22:43:49 UTC (rev 742689) @@ -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 742687, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-11-04 22:43:49 UTC (rev 742689) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=359 +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)
Date: Sunday, November 1, 2020 @ 14:55:58 Author: heftig Revision: 738883 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 738879, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 738881, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 738881, 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 738879, 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 2020-11-01 14:55:58 UTC (rev 738883) @@ -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 738881, 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 2020-11-01 14:55:58 UTC (rev 738883) @@ -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 738881, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-11-01 14:55:58 UTC (rev 738883) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=358 +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)
Date: Thursday, October 29, 2020 @ 18:20:51 Author: heftig Revision: 736559 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 736556, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 736556, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 736556, 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 736556, 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 2020-10-29 18:20:51 UTC (rev 736559) @@ -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 736556, 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 2020-10-29 18:20:51 UTC (rev 736559) @@ -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 736556, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-10-29 18:20:51 UTC (rev 736559) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=357 +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)
Date: Monday, October 12, 2020 @ 21:40:52 Author: heftig Revision: 723756 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 723751, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 723751, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 723752, 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 723751, 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 2020-10-12 21:40:52 UTC (rev 723756) @@ -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 723751, 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 2020-10-12 21:40:52 UTC (rev 723756) @@ -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 723752, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-10-12 21:40:52 UTC (rev 723756) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=355 +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)
Date: Thursday, October 8, 2020 @ 00:49:50 Author: heftig Revision: 721670 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 721664, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 721665, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 721666, 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 721664, 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 2020-10-08 00:49:50 UTC (rev 721670) @@ -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 721665, 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 2020-10-08 00:49:50 UTC (rev 721670) @@ -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 721666, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-10-08 00:49:50 UTC (rev 721670) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=354 +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)
Date: Thursday, October 1, 2020 @ 22:43:45 Author: heftig Revision: 714543 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 714535, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 714536, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 714539, 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 714535, 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 2020-10-01 22:43:45 UTC (rev 714543) @@ -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 714536, 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 2020-10-01 22:43:45 UTC (rev 714543) @@ -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 714539, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-10-01 22:43:45 UTC (rev 714543) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=353 +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)
Date: Saturday, September 26, 2020 @ 23:48:17 Author: heftig Revision: 712565 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 712561, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 712562, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 712563, 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 712561, 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 2020-09-26 23:48:17 UTC (rev 712565) @@ -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 712562, 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 2020-09-26 23:48:17 UTC (rev 712565) @@ -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 712563, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-09-26 23:48:17 UTC (rev 712565) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=352 +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)
Date: Thursday, September 24, 2020 @ 17:39:58 Author: heftig Revision: 711857 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 711851, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 711852, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 711855, 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 711851, 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 2020-09-24 17:39:58 UTC (rev 711857) @@ -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 711852, 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 2020-09-24 17:39:58 UTC (rev 711857) @@ -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 711855, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-09-24 17:39:58 UTC (rev 711857) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=351 +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)
Date: Thursday, September 17, 2020 @ 19:06:01 Author: heftig Revision: 709098 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 709093, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 709096, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 709096, 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 709093, 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 2020-09-17 19:06:01 UTC (rev 709098) @@ -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 709096, 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 2020-09-17 19:06:01 UTC (rev 709098) @@ -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 709096, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-09-17 19:06:01 UTC (rev 709098) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=350 +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)
Date: Sunday, September 13, 2020 @ 23:41:49 Author: heftig Revision: 705915 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 705912, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 705912, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 705912, 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 705912, 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 2020-09-13 23:41:49 UTC (rev 705915) @@ -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 705912, 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 2020-09-13 23:41:49 UTC (rev 705915) @@ -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 705912, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-09-13 23:41:49 UTC (rev 705915) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=348 +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)
Date: Wednesday, September 9, 2020 @ 20:30:18 Author: heftig Revision: 701658 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 701654, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 701655, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 701655, 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 701654, 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 2020-09-09 20:30:18 UTC (rev 701658) @@ -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 701655, 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 2020-09-09 20:30:18 UTC (rev 701658) @@ -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 701655, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-09-09 20:30:18 UTC (rev 701658) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=347 +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)
Date: Saturday, September 5, 2020 @ 13:24:10 Author: heftig Revision: 699149 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 699145, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 699145, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 699145, 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 699145, 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 2020-09-05 13:24:10 UTC (rev 699149) @@ -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 699145, 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 2020-09-05 13:24:10 UTC (rev 699149) @@ -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 699145, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-09-05 13:24:10 UTC (rev 699149) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=346 +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)
Date: Thursday, September 3, 2020 @ 19:14:41 Author: heftig Revision: 697573 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 697565, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 697566, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 697567, 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 697565, 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 2020-09-03 19:14:41 UTC (rev 697573) @@ -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 697566, 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 2020-09-03 19:14:41 UTC (rev 697573) @@ -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 697567, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-09-03 19:14:41 UTC (rev 697573) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=345 +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)
Date: Thursday, August 27, 2020 @ 20:06:50 Author: heftig Revision: 689966 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 689961, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 689961, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 689962, 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 689961, 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 2020-08-27 20:06:50 UTC (rev 689966) @@ -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 689961, 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 2020-08-27 20:06:50 UTC (rev 689966) @@ -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 689962, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-08-27 20:06:50 UTC (rev 689966) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=344 +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)
Date: Wednesday, August 26, 2020 @ 19:46:54 Author: heftig Revision: 689077 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 689070, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 689072, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 689073, 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 689070, 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 2020-08-26 19:46:54 UTC (rev 689077) @@ -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 689072, 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 2020-08-26 19:46:54 UTC (rev 689077) @@ -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 689073, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-08-26 19:46:54 UTC (rev 689077) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=343 +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)
Date: Friday, August 21, 2020 @ 18:06:16 Author: heftig Revision: 686351 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 686348, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 686348, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 686350, 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 686348, 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 2020-08-21 18:06:16 UTC (rev 686351) @@ -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 686348, 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 2020-08-21 18:06:16 UTC (rev 686351) @@ -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 686350, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-08-21 18:06:16 UTC (rev 686351) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=342 +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)
Date: Sunday, August 16, 2020 @ 19:04:25 Author: heftig Revision: 681841 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 681836, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-staging-x86_64/0002-kernel-5.7.patch (from rev 681837, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-staging-x86_64/PKGBUILD (from rev 681837, 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 681836, 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 2020-08-16 19:04:25 UTC (rev 681841) @@ -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 681837, 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 2020-08-16 19:04:25 UTC (rev 681841) @@ -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 681837, bbswitch/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-08-16 19:04:25 UTC (rev 681841) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=340 +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)
Date: Monday, August 3, 2020 @ 20:26:36 Author: heftig Revision: 668493 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 668486, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 668486, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 668487, 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 668486, 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 2020-08-03 20:26:36 UTC (rev 668493) @@ -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 668486, 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 2020-08-03 20:26:36 UTC (rev 668493) @@ -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 668487, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-08-03 20:26:36 UTC (rev 668493) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=337 +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)
Date: Friday, July 31, 2020 @ 18:39:02 Author: heftig Revision: 666297 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 666293, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 666293, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 666293, 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 666293, 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 2020-07-31 18:39:02 UTC (rev 666297) @@ -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 666293, 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 2020-07-31 18:39:02 UTC (rev 666297) @@ -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 666293, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-07-31 18:39:02 UTC (rev 666297) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=336 +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)
Date: Wednesday, July 29, 2020 @ 22:39:10 Author: heftig Revision: 665833 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 665829, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 665829, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 665830, 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 665829, 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 2020-07-29 22:39:10 UTC (rev 665833) @@ -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 665829, 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 2020-07-29 22:39:10 UTC (rev 665833) @@ -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 665830, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-07-29 22:39:10 UTC (rev 665833) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=335 +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)
Date: Wednesday, July 22, 2020 @ 21:30:35 Author: heftig Revision: 664936 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 664930, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 664932, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 664933, 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 664930, 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 2020-07-22 21:30:35 UTC (rev 664936) @@ -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 664932, 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 2020-07-22 21:30:35 UTC (rev 664936) @@ -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 664933, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-07-22 21:30:35 UTC (rev 664936) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=334 +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)
Date: Thursday, July 16, 2020 @ 21:07:31 Author: heftig Revision: 664211 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 664207, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 664207, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 664207, 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 664207, 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 2020-07-16 21:07:31 UTC (rev 664211) @@ -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 664207, 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 2020-07-16 21:07:31 UTC (rev 664211) @@ -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 664207, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-07-16 21:07:31 UTC (rev 664211) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=333 +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)
Date: Thursday, July 9, 2020 @ 23:22:23 Author: heftig Revision: 663043 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 663040, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-staging-x86_64/0002-kernel-5.7.patch (from rev 663040, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-staging-x86_64/PKGBUILD (from rev 663040, 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 663040, 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 2020-07-09 23:22:23 UTC (rev 663043) @@ -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 663040, 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 2020-07-09 23:22:23 UTC (rev 663043) @@ -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 663040, bbswitch/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-07-09 23:22:23 UTC (rev 663043) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=332 +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)
Date: Wednesday, July 1, 2020 @ 17:43:54 Author: heftig Revision: 657395 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 657392, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 657392, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 657392, 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 657392, 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 2020-07-01 17:43:54 UTC (rev 657395) @@ -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 657392, 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 2020-07-01 17:43:54 UTC (rev 657395) @@ -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 657392, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-07-01 17:43:54 UTC (rev 657395) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=331 +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)
Date: Thursday, June 25, 2020 @ 01:14:06 Author: heftig Revision: 652680 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 652672, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 652672, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 652672, 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 652672, 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 2020-06-25 01:14:06 UTC (rev 652680) @@ -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 652672, 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 2020-06-25 01:14:06 UTC (rev 652680) @@ -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 652672, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-06-25 01:14:06 UTC (rev 652680) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=330 +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)
Date: Monday, June 22, 2020 @ 10:01:09 Author: heftig Revision: 650366 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 650360, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 650360, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 650360, 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 650360, 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 2020-06-22 10:01:09 UTC (rev 650366) @@ -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 650360, 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 2020-06-22 10:01:09 UTC (rev 650366) @@ -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 650360, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-06-22 10:01:09 UTC (rev 650366) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=329 +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)
Date: Thursday, June 18, 2020 @ 17:21:16 Author: heftig Revision: 647388 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 647381, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 647381, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 647382, 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 647381, 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 2020-06-18 17:21:16 UTC (rev 647388) @@ -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 647381, 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 2020-06-18 17:21:16 UTC (rev 647388) @@ -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 647382, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-06-18 17:21:16 UTC (rev 647388) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=328 +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)
Date: Wednesday, June 17, 2020 @ 23:04:57 Author: heftig Revision: 646723 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 646716, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 646716, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 646716, 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 646716, 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 2020-06-17 23:04:57 UTC (rev 646723) @@ -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 646716, 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 2020-06-17 23:04:57 UTC (rev 646723) @@ -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 646716, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-06-17 23:04:57 UTC (rev 646723) @@ -0,0 +1,50 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=327 +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)
Date: Tuesday, June 2, 2020 @ 01:26:50 Author: heftig Revision: 637943 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 637934, bbswitch/trunk/0001-proc_ops-struct.patch) bbswitch/repos/community-testing-x86_64/0002-kernel-5.7.patch (from rev 637934, bbswitch/trunk/0002-kernel-5.7.patch) bbswitch/repos/community-testing-x86_64/PKGBUILD (from rev 637934, bbswitch/trunk/PKGBUILD) + 0001-proc_ops-struct.patch | 36 +++ 0002-kernel-5.7.patch | 11 + PKGBUILD | 49 +++ 3 files changed, 96 insertions(+) Copied: bbswitch/repos/community-testing-x86_64/0001-proc_ops-struct.patch (from rev 637934, 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 2020-06-02 01:26:50 UTC (rev 637943) @@ -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 637934, 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 2020-06-02 01:26:50 UTC (rev 637943) @@ -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 637934, bbswitch/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2020-06-02 01:26:50 UTC (rev 637943) @@ -0,0 +1,49 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: M0Rf30 +# Contributor: Samsagax + +pkgbase=bbswitch +pkgname=(bbswitch bbswitch-dkms) +pkgver=0.8 +pkgrel=324 +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/$(