mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
sys-power/acpi_call: add patch for linux-4.12 (bug #623740)
Package-Manager: Portage-2.3.6, Repoman-2.3.1
This commit is contained in:
37
sys-power/acpi_call/acpi_call-1.1.0-r2.ebuild
Normal file
37
sys-power/acpi_call/acpi_call-1.1.0-r2.ebuild
Normal file
@@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit linux-info linux-mod
|
||||
|
||||
if [ "${PV}" = "9999" ]; then
|
||||
inherit git-2
|
||||
EGIT_REPO_URI="git://github.com/mkottman/acpi_call.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
inherit vcs-snapshot
|
||||
SRC_URI="https://github.com/mkottman/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A kernel module that enables you to call ACPI methods"
|
||||
HOMEPAGE="https://github.com/mkottman/acpi_call"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
CONFIG_CHECK="ACPI"
|
||||
MODULE_NAMES="acpi_call(misc:${S})"
|
||||
BUILD_TARGETS="default"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-linux-3.17.patch"
|
||||
"${FILESDIR}/${P}-linux-4.12.patch"
|
||||
)
|
||||
|
||||
src_compile(){
|
||||
BUILD_PARAMS="KDIR=${KV_OUT_DIR} M=${S}"
|
||||
linux-mod_src_compile
|
||||
}
|
||||
10
sys-power/acpi_call/files/acpi_call-1.1.0-linux-4.12.patch
Normal file
10
sys-power/acpi_call/files/acpi_call-1.1.0-linux-4.12.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- acpi_call-1.1.0.orig/acpi_call.c 2017-07-03 22:44:38.111270788 +0200
|
||||
+++ acpi_call-1.1.0/acpi_call.c 2017-07-03 22:44:31.010270815 +0200
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <linux/proc_fs.h>
|
||||
#include <linux/slab.h>
|
||||
#include <asm/uaccess.h>
|
||||
+#include <linux/uaccess.h>
|
||||
#include <linux/acpi.h>
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
@@ -4,10 +4,6 @@
|
||||
<maintainer type="person">
|
||||
<email>maksbotan@gentoo.org</email>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>junghans@gentoo.org</email>
|
||||
<name>Christoph Junghans</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">mkottman/acpi_call</remote-id>
|
||||
</upstream>
|
||||
|
||||
Reference in New Issue
Block a user