From patchwork Fri May 10 21:28:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Geerinckx-Rice X-Patchwork-Id: 13949 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 967C716F8E; Fri, 10 May 2019 22:29:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 7BD1116F5C for ; Fri, 10 May 2019 22:29:07 +0100 (BST) Received: from localhost ([127.0.0.1]:50252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPD4k-0002fr-6X for patchwork@mira.cbaines.net; Fri, 10 May 2019 17:29:06 -0400 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 X-Loop: help-debbugs@gnu.org Subject: [bug#35678] [PATCH 2/3] gnu: Add acpi-call-linux-module. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 10 May 2019 21:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35678 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35678@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155752373612270 (code B ref -1); Fri, 10 May 2019 21:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 May 2019 21:28:56 +0000 Received: from localhost ([127.0.0.1]:39291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPD4Z-0003Bl-MO for submit@debbugs.gnu.org; Fri, 10 May 2019 17:28:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPD4V-0003BI-4K for submit@debbugs.gnu.org; Fri, 10 May 2019 17:28:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:50098) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hPD4Q-0004Z0-0N for submit@debbugs.gnu.org; Fri, 10 May 2019 17:28:46 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=2018; i=me@tobias.gr; bh=v3X2ky6el 5aXRSBEpDYRkVHzzK1pRuZy9n2XPEK99T8=; b=kosRyAEQE9Ri8fEudInxZ9Lqi 9m2CQw8+v/vtmZlRhbaoiNzMXzCPYz0IM8WXTRPR26ndd1DePtAiJntqLxzD52gF gXm0mH3xzkaAoB6jBaonTTl0cU6+QFcbptHxNxwrAOt/uXNbIt7IJA8F+YvzMBr7 xCkQ6DzCkIRxPITgZA2wPl3inhwJm01mJeUKeuHxmZAcN9GSpgHo9mPm9qHqTy4I OXnNx0hs+m4cuo5Mxl80EMl6IdNEDZC5YSmJIZOtvm9rNe9JoJCwGKS0RkM1NbEr kTyZ9uu4k2bGuVob3BTlPbH3a6aGwfbeXRzlhkwB9r1kiYt2AxLWGiJqDIf1g== 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> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190510212818.7996-1-me@tobias.gr> References: <35676@debbugs.gnu.org> <20190510212818.7996-1-me@tobias.gr> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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")