[arch-commits] Commit in bbswitch/trunk (0001-proc_ops-struct.patch PKGBUILD)
Giancarlo Razzolini
grazzolini at archlinux.org
Wed Apr 1 14:38:06 UTC 2020
Date: Wednesday, April 1, 2020 @ 14:38:06
Author: grazzolini
Revision: 608912
upgpkg: bbswitch 0.8-303
Fix for building against 5.6
Added:
bbswitch/trunk/0001-proc_ops-struct.patch
Modified:
bbswitch/trunk/PKGBUILD
----------------------------+
0001-proc_ops-struct.patch | 22 ++++++++++++++++++++++
PKGBUILD | 13 ++++++++++---
2 files changed, 32 insertions(+), 3 deletions(-)
Added: 0001-proc_ops-struct.patch
===================================================================
--- 0001-proc_ops-struct.patch (rev 0)
+++ 0001-proc_ops-struct.patch 2020-04-01 14:38:06 UTC (rev 608912)
@@ -0,0 +1,22 @@
+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.000000000 -0200
++++ bbswitch-0.8.new/bbswitch.c 2020-04-01 11:28:02.910890888 -0300
+@@ -375,12 +375,12 @@
+ return 0;
+ }
+
+-static struct file_operations bbswitch_fops = {
+- .open = bbswitch_proc_open,
+- .read = seq_read,
+- .write = bbswitch_proc_write,
+- .llseek = seq_lseek,
+- .release= single_release
++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
+ };
+
+ static struct notifier_block nb = {
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-01 14:08:08 UTC (rev 608911)
+++ PKGBUILD 2020-04-01 14:38:06 UTC (rev 608912)
@@ -5,15 +5,22 @@
pkgbase=bbswitch
pkgname=(bbswitch bbswitch-dkms)
pkgver=0.8
-pkgrel=302
+pkgrel=303
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")
-md5sums=('5b116b31ace3604ddf9d1fc1f4bc5807')
+source=("${pkgbase}-${pkgver}.tar.gz::https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz"
+ "0001-proc_ops-struct.patch")
+sha512sums=('11ab163931feb6c0e202d04c4552b848e999fedea9990390c26b28abdb4a69081ccfb5a22d1e390cc274f1c0cfc9adedc719c5fece14738b17aaa93e28865b7c'
+ 'b4b7e5e2e0b531f30b10c3e92d8d1e7189a13d1fdea55dc9659553f9df54c305addce53c78ecc0dac2e68e002b7f655161b57698bdeaa87e1987c7f7ad6cb629')
+prepare() {
+ cd ${pkgbase}-${pkgver}
+ patch -Np1 < $srcdir/0001-proc_ops-struct.patch
+}
+
build() {
cd ${pkgbase}-${pkgver}
make KDIR=/usr/src/linux
More information about the arch-commits
mailing list