From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:49191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPD4i-0002fa-2j for guix-patches@gnu.org; Fri, 10 May 2019 17:29:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPD4g-0004kb-UF for guix-patches@gnu.org; Fri, 10 May 2019 17:29:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53984) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hPD4g-0004kU-RD for guix-patches@gnu.org; Fri, 10 May 2019 17:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hPD4g-0003CX-Nj for guix-patches@gnu.org; Fri, 10 May 2019 17:29:02 -0400 Subject: [bug#35678] [PATCH 2/3] gnu: Add acpi-call-linux-module. Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:49111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPD4O-0002f7-Ne for guix-patches@gnu.org; Fri, 10 May 2019 17:28:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPD4N-0004Ws-H1 for guix-patches@gnu.org; Fri, 10 May 2019 17:28:44 -0400 Received: from tobias.gr ([2001:470:7405::1]:53610) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hPD4N-0004Un-68 for guix-patches@gnu.org; Fri, 10 May 2019 17:28:43 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 2298f3c9 for ; Fri, 10 May 2019 21:28:40 +0000 (UTC) Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 2513de9e (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Fri, 10 May 2019 21:28:39 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Fri, 10 May 2019 23:28:17 +0200 Message-Id: <20190510212818.7996-2-me@tobias.gr> In-Reply-To: <20190510212818.7996-1-me@tobias.gr> References: <35676@debbugs.gnu.org> <20190510212818.7996-1-me@tobias.gr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 35678@debbugs.gnu.org * gnu/packages/linux.scm (acpi-call-linux-module): New public variable. --- Prolly contains typos; I'm sleepy. gnu/packages/linux.scm | 47 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index a3a2615834..9689a89cc9 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -540,6 +540,53 @@ It has been modified to remove all non-free binary blobs.") ;;; Linux kernel modules. ;;; +(define-public acpi-call-linux-module + (package + (name "acpi-call-linux-module") + (version "3.17") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/teleshoes/acpi_call.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "04mbv4lasm3vv1j4ndxhnz4hvp5wg8f5fc9q6qxv0nhvwjynmsl3")))) + (build-system linux-module-build-system) + (arguments + `(#:tests? #f ; no tests + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-for-linux-4.12 + (lambda _ + (substitute* "acpi_call.c" + (("asm/uaccess\\.h") + "linux/uaccess.h")) + #t)) + (add-after 'install 'install-documentation + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (doc (string-append out "/share/doc/" ,name "-" ,version))) + (for-each (lambda (file) + (let ((target (string-append doc "/" file))) + (mkdir-p (dirname target)) + (copy-recursively file target))) + (list "README.md" "examples")) + #t)))))) + (home-page "https://github.com/teleshoes/acpi_call") + (synopsis "Linux kernel module to perform ACPI method calls") + (description + "This simple Linux kernel module allows calls from user space to any +@acronym{ACPI, Advanced Configuration and Power Interface} method provided by +your computer's firmware, by writing to @file{/proc/acpi/call}. You can pass +any number of parameters of types @code{ACPI_INTEGER}, @code{ACPI_STRING}, +and @code{ACPI_BUFFER}. + +It grants direct and undocumented access to your hardware that may cause damage +and should be used with caution, especially on untested models.") + (license license:gpl3+))) ; see README.md (no licence headers) + (define-public vhba-module (package (name "vhba-module") -- 2.21.0