[packages/acpi_call] patch to fix build with recent kernels

atler atler at pld-linux.org
Sun Dec 29 00:19:01 CET 2019


commit 16da86e829fa5d09d7c3c0fac90453417272bcde
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Dec 28 23:56:28 2019 +0100

    patch to fix build with recent kernels

 acpi_call-build.patch | 13 +++++++++++++
 acpi_call.spec        |  2 ++
 2 files changed, 15 insertions(+)
---
diff --git a/acpi_call.spec b/acpi_call.spec
index e81c3c5..17918aa 100644
--- a/acpi_call.spec
+++ b/acpi_call.spec
@@ -18,6 +18,7 @@ License:	GPL v2
 Group:		Base/Kernel
 Source0:	https://github.com/mkottman/acpi_call/archive/v%{version}/%{pname}-%{version}.tar.gz
 # Source0-md5:	f69d40e130b0e5ed17ce8adb19e6dda1
+Patch0:		%{pname}-build.patch
 URL:		https://github.com/mkottman/acpi_call
 %if %{with kernel}
 %if %{with dist_kernel}
@@ -48,6 +49,7 @@ A linux kernel module that enables calls to ACPI methods through
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %if %{with kernel}
diff --git a/acpi_call-build.patch b/acpi_call-build.patch
new file mode 100644
index 0000000..cfb9bee
--- /dev/null
+++ b/acpi_call-build.patch
@@ -0,0 +1,13 @@
+diff -urN acpi_call-1.1.0.orig/acpi_call.c acpi_call-1.1.0/acpi_call.c
+--- acpi_call-1.1.0.orig/acpi_call.c	2013-07-05 18:06:13.000000000 +0200
++++ acpi_call-1.1.0/acpi_call.c	2019-12-28 23:52:40.624217110 +0100
+@@ -6,7 +6,8 @@
+ #include <linux/proc_fs.h>
+ #include <linux/slab.h>
+ #include <asm/uaccess.h>
+-#include <acpi/acpi.h>
++#include <linux/acpi.h>
++#include <linux/uaccess.h>
+ 
+ MODULE_LICENSE("GPL");
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/acpi_call.git/commitdiff/64154a1f07805923a6fa508f75348e64e496a5b1



More information about the pld-cvs-commit mailing list