From patchwork Wed Jul 7 07:56:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Gankevich X-Patchwork-Id: 31217 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 ABBD227BC81; Wed, 7 Jul 2021 08:58:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7A79D27BC78 for ; Wed, 7 Jul 2021 08:58:11 +0100 (BST) Received: from localhost ([::1]:33818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m12Re-00043I-EV for patchwork@mira.cbaines.net; Wed, 07 Jul 2021 03:58:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m12RW-00040d-Nr for guix-patches@gnu.org; Wed, 07 Jul 2021 03:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39217) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m12RW-0002Pj-GH for guix-patches@gnu.org; Wed, 07 Jul 2021 03:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m12RW-0002Cf-4x for guix-patches@gnu.org; Wed, 07 Jul 2021 03:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49455] [PATCH] gnu: add libgpiod Resent-From: Ivan Gankevich Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 07 Jul 2021 07:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49455 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49455@debbugs.gnu.org Cc: Ivan Gankevich X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16256446288403 (code B ref -1); Wed, 07 Jul 2021 07:58:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jul 2021 07:57:08 +0000 Received: from localhost ([127.0.0.1]:50763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m12Qd-0002BT-VS for submit@debbugs.gnu.org; Wed, 07 Jul 2021 03:57:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:49410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m12Qc-0002BL-OK for submit@debbugs.gnu.org; Wed, 07 Jul 2021 03:57:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m12Qc-0003qb-3s for guix-patches@gnu.org; Wed, 07 Jul 2021 03:57:06 -0400 Received: from mail.spbu.ru ([195.70.197.23]:49842 helo=cgp2.pu.ru) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1m12QY-0002L1-MP for guix-patches@gnu.org; Wed, 07 Jul 2021 03:57:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=spbu.ru; s=20180812; bh=QWFsPOm/d/cEL+KzjyRByO6QsnyAVk1eHhLme78ZAzE=; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From; b=k2XsYqzHWD7yYxJFl2AvJyz9RB0R1r5kQ0rZXXqSROYfBZ7F0DKnt1qsMeQp9JVMSaVyjh1h6C tNyEjHVapLAJB5Q8BcvrXeCnyFq0fJVlBtSi2mQtC2qgB8pSw7sJxauk1w72RnGucdz2fBy79PHaN 65eUrhm5hjSUKlglQgghJI3S1sBzEKqcgj2UkPFtC5nun5jDPOo4biTz6y6jJdJW8Ros7VNwvrz3z gg1yoc0aPWtVG9isqJfVjwdzVMTRUaf5canet5mHaA0ihFIVtGb2DaxEWvH/lDdbA6AJItzrh8Fxo nOCTp5p2ITzl7QOa8gWZenRaBeWnuw3xeFFCg== Received: from [172.27.221.159] (account st018947@spbu.ru HELO surge.ws.pu.ru) by spbu.ru (CommuniGate Pro SMTP 6.2.15) with ESMTPSA id 169979037; Wed, 07 Jul 2021 10:56:57 +0300 From: Ivan Gankevich Date: Wed, 7 Jul 2021 10:56:39 +0300 Message-Id: <20210707075638.18941-1-i.gankevich@spbu.ru> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Received-SPF: pass client-ip=195.70.197.23; envelope-from=i.gankevich@spbu.ru; helo=cgp2.pu.ru X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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 | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index da3c8755f6..9c83f1969d 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -8248,3 +8248,39 @@ Availability and Serviceability} reports from Linux kernel trace events. These trace events are logged in @file{/sys/kernel/debug/tracing} and reported through standard log mechanisms like syslog.") (license license:gpl2))) + +(define-public libgpiod + (package + (name "libgpiod") + (version "1.6.3") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 (base32 "0rv8a11hx3pc6sdw6nfc6k35hkp2clb3v53n1381cvip8fzhbsad")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags + '("--enable-tools=yes" + "--enable-bindings-cxx" + "--enable-bindings-python"))) + (native-inputs + `(("automake" ,automake) + ("autoconf" ,autoconf) + ("libtool" ,libtool) + ("autoconf-archive" ,autoconf-archive) + ("pkg-config" ,pkg-config) + ("python" ,python-3))) + (synopsis "C library and tools for interacting with the linux GPIO character device") + (description "C library with C++/Python bindings and command line tools +for interacting with GPIO devices that avoids the usage of older system-wide +/sys interface.") + (home-page "https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/") + (license (list license:lgpl2.1+ ;; libgpiod + license:gpl2+ ;; gpio-tools + license:lgpl3+ ;; C++ bindings + ))))