Gentoo Archives: gentoo-commits

From: Christoph Junghans <junghans@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/acpi_call/, sys-power/acpi_call/files/
Date: Thu, 06 Jul 2017 15:53:29
Message-Id: 1499356394.efd2ddc8c87dc36f34aed8fa62ea06fe2dc44c5f.junghans@gentoo
1 commit: efd2ddc8c87dc36f34aed8fa62ea06fe2dc44c5f
2 Author: Christoph Junghans <junghans <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 6 15:52:41 2017 +0000
4 Commit: Christoph Junghans <junghans <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 6 15:53:14 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efd2ddc8
7
8 sys-power/acpi_call: add patch for linux-4.12 (bug #623740)
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11
12 sys-power/acpi_call/acpi_call-1.1.0-r2.ebuild | 37 ++++++++++++++++++++++
13 .../files/acpi_call-1.1.0-linux-4.12.patch | 10 ++++++
14 sys-power/acpi_call/metadata.xml | 4 ---
15 3 files changed, 47 insertions(+), 4 deletions(-)
16
17 diff --git a/sys-power/acpi_call/acpi_call-1.1.0-r2.ebuild b/sys-power/acpi_call/acpi_call-1.1.0-r2.ebuild
18 new file mode 100644
19 index 00000000000..0bbb196395e
20 --- /dev/null
21 +++ b/sys-power/acpi_call/acpi_call-1.1.0-r2.ebuild
22 @@ -0,0 +1,37 @@
23 +# Copyright 1999-2017 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +
28 +inherit linux-info linux-mod
29 +
30 +if [ "${PV}" = "9999" ]; then
31 + inherit git-2
32 + EGIT_REPO_URI="git://github.com/mkottman/acpi_call.git"
33 + KEYWORDS=""
34 +else
35 + inherit vcs-snapshot
36 + SRC_URI="https://github.com/mkottman/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
37 + KEYWORDS="~amd64"
38 +fi
39 +
40 +DESCRIPTION="A kernel module that enables you to call ACPI methods"
41 +HOMEPAGE="https://github.com/mkottman/acpi_call"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +IUSE=""
46 +
47 +CONFIG_CHECK="ACPI"
48 +MODULE_NAMES="acpi_call(misc:${S})"
49 +BUILD_TARGETS="default"
50 +
51 +PATCHES=(
52 + "${FILESDIR}/${P}-linux-3.17.patch"
53 + "${FILESDIR}/${P}-linux-4.12.patch"
54 +)
55 +
56 +src_compile(){
57 + BUILD_PARAMS="KDIR=${KV_OUT_DIR} M=${S}"
58 + linux-mod_src_compile
59 +}
60
61 diff --git a/sys-power/acpi_call/files/acpi_call-1.1.0-linux-4.12.patch b/sys-power/acpi_call/files/acpi_call-1.1.0-linux-4.12.patch
62 new file mode 100644
63 index 00000000000..ef9fde9f295
64 --- /dev/null
65 +++ b/sys-power/acpi_call/files/acpi_call-1.1.0-linux-4.12.patch
66 @@ -0,0 +1,10 @@
67 +--- acpi_call-1.1.0.orig/acpi_call.c 2017-07-03 22:44:38.111270788 +0200
68 ++++ acpi_call-1.1.0/acpi_call.c 2017-07-03 22:44:31.010270815 +0200
69 +@@ -6,6 +6,7 @@
70 + #include <linux/proc_fs.h>
71 + #include <linux/slab.h>
72 + #include <asm/uaccess.h>
73 ++#include <linux/uaccess.h>
74 + #include <linux/acpi.h>
75 +
76 + MODULE_LICENSE("GPL");
77
78 diff --git a/sys-power/acpi_call/metadata.xml b/sys-power/acpi_call/metadata.xml
79 index 4b39ce4f91f..3e6c789e783 100644
80 --- a/sys-power/acpi_call/metadata.xml
81 +++ b/sys-power/acpi_call/metadata.xml
82 @@ -4,10 +4,6 @@
83 <maintainer type="person">
84 <email>maksbotan@g.o</email>
85 </maintainer>
86 - <maintainer type="person">
87 - <email>junghans@g.o</email>
88 - <name>Christoph Junghans</name>
89 - </maintainer>
90 <upstream>
91 <remote-id type="github">mkottman/acpi_call</remote-id>
92 </upstream>