Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bbswitch.16064 for 
openSUSE:Leap:15.2:Update checked in at 2021-04-11 16:02:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2:Update/bbswitch.16064 (Old)
 and      /work/SRC/openSUSE:Leap:15.2:Update/.bbswitch.16064.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bbswitch.16064"

Sun Apr 11 16:02:07 2021 rev:1 rq:884435 version:0.8

Changes:
--------
New Changes file:

--- /dev/null   2021-03-11 01:47:46.020784395 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2:Update/.bbswitch.16064.new.2401/bbswitch.changes   
    2021-04-11 16:02:08.194289088 +0200
@@ -0,0 +1,73 @@
+-------------------------------------------------------------------
+Fri Apr  3 08:25:12 UTC 2020 - Antonio Larrosa <[email protected]>
+
+- Add patch to build with kernel 5.6
+  * 0001-Update-proc_create_call-for-5.6-kernel.patch
+
+-------------------------------------------------------------------
+Thu Dec 19 14:45:14 UTC 2019 - Dominique Leuenberger <[email protected]>
+
+- BuildRequire pkgconfig(libsystemd) instead of systemd-devel:
+  allow OBS to shortcut through the -mini flavors.
+
+-------------------------------------------------------------------
+Tue Jun 19 12:09:23 UTC 2018 - [email protected]
+
+- Use %{?linux_make_arch} when building kernel modules (boo#1098050).
+
+-------------------------------------------------------------------
+Sun Nov 12 07:47:10 UTC 2017 - [email protected]
+
+- Depend on libelf to build correctly on tumbleweed
+
+-------------------------------------------------------------------
+Sat Oct 10 17:56:15 UTC 2015 - [email protected]
+
+- Add %dir for %{_libexecdir}/modules_load.d as it is owned by systemd
+  and there is no reason to have that in deps
+
+-------------------------------------------------------------------
+Thu Aug 21 14:07:26 UTC 2014 - [email protected]
+
+- Make architecture exclusive to x86 platform 
+
+-------------------------------------------------------------------
+Tue Jul  1 07:43:24 UTC 2014 - [email protected]
+
+- Install copying file
+
+-------------------------------------------------------------------
+Wed Jun  4 13:05:55 UTC 2014 - [email protected]
+
+- Name the modprobe.d file like the others.
+
+-------------------------------------------------------------------
+Wed Jun  4 12:35:05 UTC 2014 - [email protected]
+
+- Say goodbye to bbswitch-dkms and use just the direct bbswitch.
+
+-------------------------------------------------------------------
+Wed Jun  4 12:19:07 UTC 2014 - [email protected]
+
+- Provide bbswitch-dkms for time being to allow migration.
+
+-------------------------------------------------------------------
+Wed Jun  4 11:56:34 UTC 2014 - [email protected]
+
+- Add the modules autoloading for the package.
+
+-------------------------------------------------------------------
+Sun Feb  9 11:05:00 UTC 2014 - [email protected]
+
+- Add kernel word to the description
+
+-------------------------------------------------------------------
+Tue Jan 14 18:54:37 UTC 2014 - [email protected]
+
+- Cleanup the spec to adhere official formatting rules.
+
+-------------------------------------------------------------------
+Tue Jan 14 18:50:45 UTC 2014 - [email protected]
+
+- Create proper changelog with osc vc
+

New:
----
  0001-Update-proc_create_call-for-5.6-kernel.patch
  bbswitch.changes
  bbswitch.spec
  v0.8.tar.gz

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

Other differences:
------------------
++++++ bbswitch.spec ++++++
#
# spec file for package bbswitch
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           bbswitch
Version:        0.8
Release:        0
Summary:        Bumblebee ACPI kernel module
License:        GPL-2.0-or-later
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
BuildRequires:  %{kernel_module_package_buildreqs}
BuildRequires:  libelf-devel
BuildRequires:  pkgconfig(libsystemd)
Requires:       bbswitch-kmp
# DKMSing this module has no point for us so obsolete the package
# Remove this after 13.2 release
Provides:       bbswitch-dkms = %{version}
Obsoletes:      bbswitch-dkms < %{version}
Provides:       dkms-bbswitch = %{version}
Obsoletes:      dkms-bbswitch < %{version}
ExclusiveArch:  %{ix86} x86_64
%kernel_module_package

%description
bbswitch is a kernel module which automatically detects the required
ACPI calls for two kinds of Optimus laptops.

%prep
%setup -q
%if %{?pkg_vcmp:%{pkg_vcmp kernel-devel >= 5.6.0}}%{!?pkg_vcmp:0}
%patch0 -p1
%endif
set -- *
mkdir source
mv "$@" source/
mkdir obj

%build
for flavor in %{flavors_to_build}; do
        rm -rf obj/$flavor
        cp -r source obj/$flavor
        make %{?_smp_mflags} -C %{kernel_source $flavor} %{?linux_make_arch} 
modules M=$PWD/obj/$flavor
done

%install
export INSTALL_MOD_PATH=%{buildroot}
export INSTALL_MOD_DIR=updates
for flavor in %{flavors_to_build}; do
        make -C %{kernel_source $flavor} %{?linux_make_arch} modules_install 
M=$PWD/obj/$flavor
done
install -dm755 %{buildroot}%{_libexecdir}/modules-load.d
echo "bbswitch" >> %{buildroot}%{_libexecdir}/modules-load.d/bbswitch.conf
install -dm755 %{buildroot}%{_sysconfdir}/modprobe.d/
echo "options bbswitch load_state=0 unload_state=1" >> 
%{buildroot}%{_sysconfdir}/modprobe.d/50-bbswitch.conf

%files
%doc source/COPYING source/README.md source/NEWS
%dir %{_libexecdir}//modules-load.d
%config %{_libexecdir}/modules-load.d/bbswitch.conf
%config %{_sysconfdir}/modprobe.d/50-bbswitch.conf

%changelog
++++++ 0001-Update-proc_create_call-for-5.6-kernel.patch ++++++
>From 314d223a1d1bab86370c2da3771b76bf8ac93e3b Mon Sep 17 00:00:00 2001
From: Adrian Curless <[email protected]>
Date: Tue, 31 Mar 2020 22:43:28 -0400
Subject: [PATCH] Update proc_create call to pass proc_ops instead of
 file_operations, a change made in 5.6

Modified by Antonio Larrosa <[email protected]> to not bump the version number
since the patch was done by a fork of the upstream project [1] and the only
change it does is to fix it to build with the new kernel.

[1] 
https://github.com/awcurless/bbswitch/commit/314d223a1d1bab86370c2da3771b76bf8ac93e3b
---
 bbswitch.c | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 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,
     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_ops = {
+    .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 = {
@@ -457,7 +458,7 @@ static int __init bbswitch_init(void) {
         }
     }
 
-    acpi_entry = proc_create("bbswitch", 0664, acpi_root_dir, &bbswitch_fops);
+    acpi_entry = proc_create("bbswitch", 0664, acpi_root_dir, &bbswitch_ops);
     if (acpi_entry == NULL) {
         pr_err("Couldn't create proc entry\n");
         return -ENOMEM;

Reply via email to