Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bbswitch for openSUSE:Factory 
checked in at 2021-04-15 16:57:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bbswitch (Old)
 and      /work/SRC/openSUSE:Factory/.bbswitch.new.12324 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bbswitch"

Thu Apr 15 16:57:34 2021 rev:10 rq:885343 version:0.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/bbswitch/bbswitch.changes        2020-08-29 
20:44:23.509516310 +0200
+++ /work/SRC/openSUSE:Factory/.bbswitch.new.12324/bbswitch.changes     
2021-04-15 16:58:15.106753522 +0200
@@ -1,0 +2,8 @@
+Wed Mar 10 12:33:49 CET 2021 - [email protected]
+
+- Fix build with Leap 15.3 kernel due to the missing header
+  inclusion (boo#1183060):
+  bbswitch-fix-header-inclusion.patch
+- Refreshed 0001-Update-proc_create_call-for-5.6-kernel.patch
+
+-------------------------------------------------------------------

New:
----
  bbswitch-fix-header-inclusion.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ bbswitch.spec ++++++
--- /var/tmp/diff_new_pack.uVjosb/_old  2021-04-15 16:58:15.602754306 +0200
+++ /var/tmp/diff_new_pack.uVjosb/_new  2021-04-15 16:58:15.606754313 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package bbswitch
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,8 @@
 Group:          System/Kernel
 URL:            http://github.com/Bumblebee-Project/bbswitch
 Source0:        
https://github.com/Bumblebee-Project/bbswitch/archive/v%{version}.tar.gz
-Patch0:         0001-Update-proc_create_call-for-5.6-kernel.patch
+Patch0:         bbswitch-fix-header-inclusion.patch
+Patch1:         0001-Update-proc_create_call-for-5.6-kernel.patch
 BuildRequires:  %{kernel_module_package_buildreqs}
 BuildRequires:  libelf-devel
 BuildRequires:  pkgconfig(libsystemd)
@@ -44,8 +45,9 @@
 
 %prep
 %setup -q
-%if %{?pkg_vcmp:%{pkg_vcmp kernel-devel >= 5.6.0}}%{!?pkg_vcmp:0}
 %patch0 -p1
+%if %{?pkg_vcmp:%{pkg_vcmp kernel-devel >= 5.6.0}}%{!?pkg_vcmp:0}
+%patch1 -p1
 %endif
 set -- *
 mkdir source

++++++ 0001-Update-proc_create_call-for-5.6-kernel.patch ++++++
--- /var/tmp/diff_new_pack.uVjosb/_old  2021-04-15 16:58:15.622754338 +0200
+++ /var/tmp/diff_new_pack.uVjosb/_new  2021-04-15 16:58:15.622754338 +0200
@@ -10,26 +10,12 @@
 
 [1] 
https://github.com/awcurless/bbswitch/commit/314d223a1d1bab86370c2da3771b76bf8ac93e3b
 ---
- bbswitch.c | 17 +++++++++--------
- 1 file changed, 9 insertions(+), 8 deletions(-)
+ bbswitch.c |   14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
 
-diff --git a/bbswitch.c b/bbswitch.c
-index 341608f..2934b5a 100644
 --- a/bbswitch.c
 +++ b/bbswitch.c
-@@ -35,8 +35,9 @@
- #include <linux/suspend.h>
- #include <linux/seq_file.h>
- #include <linux/pm_runtime.h>
-+#include <linux/proc_fs.h>
- 
--#define BBSWITCH_VERSION "0.8"
-#+#define BBSWITCH_VERSION "0.9"
-+#define BBSWITCH_VERSION "0.8"
- 
- MODULE_LICENSE("GPL");
- MODULE_DESCRIPTION("Toggle the discrete graphics card");
-@@ -375,12 +376,12 @@ static int bbswitch_pm_handler(struct notifier_block 
*nbp,
+@@ -376,12 +376,12 @@ static int bbswitch_pm_handler(struct no
      return 0;
  }
  
@@ -48,7 +34,7 @@
  };
  
  static struct notifier_block nb = {
-@@ -457,7 +458,7 @@ static int __init bbswitch_init(void) {
+@@ -458,7 +458,7 @@ static int __init bbswitch_init(void) {
          }
      }
  

++++++ bbswitch-fix-header-inclusion.patch ++++++
From: Takashi Iwai <[email protected]>
Subject: Add missing inclusion of linux/proc_fs.h
References: boo#1183060

The recent kernels like Leap 15.3 and later need to include
linux/proc_fs.h explicitly, otherwise the procfs API won't be
available.

Signed-off-by: Takashi Iwai <[email protected]>

---
 bbswitch.c |    1 +
 1 file changed, 1 insertion(+)

--- a/bbswitch.c
+++ b/bbswitch.c
@@ -35,6 +35,7 @@
 #include <linux/suspend.h>
 #include <linux/seq_file.h>
 #include <linux/pm_runtime.h>
+#include <linux/proc_fs.h>
 
 #define BBSWITCH_VERSION "0.8"
 

Reply via email to