From patchwork Sat Sep 18 11:20:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: phodina X-Patchwork-Id: 33114 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 2D05227BBE4; Sat, 18 Sep 2021 12:21: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, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham 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 2CC9C27BBE3 for ; Sat, 18 Sep 2021 12:21:10 +0100 (BST) Received: from localhost ([::1]:54522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRYP7-0001j6-9c for patchwork@mira.cbaines.net; Sat, 18 Sep 2021 07:21:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRYP0-0001ie-4y for guix-patches@gnu.org; Sat, 18 Sep 2021 07:21:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50404) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRYOz-0006tZ-Tv for guix-patches@gnu.org; Sat, 18 Sep 2021 07:21:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRYOz-0002Ep-QH for guix-patches@gnu.org; Sat, 18 Sep 2021 07:21:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49578] [PATCH v3 1/2] gnu: Add bolt. References: In-Reply-To: Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 18 Sep 2021 11:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49578 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Sarah Morgensen Cc: 49578@debbugs.gnu.org Received: via spool by 49578-submit@debbugs.gnu.org id=B49578.16319640568575 (code B ref 49578); Sat, 18 Sep 2021 11:21:01 +0000 Received: (at 49578) by debbugs.gnu.org; 18 Sep 2021 11:20:56 +0000 Received: from localhost ([127.0.0.1]:33717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRYOt-0002ED-Lg for submit@debbugs.gnu.org; Sat, 18 Sep 2021 07:20:55 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:48156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRYOr-0002Dy-Eh for 49578@debbugs.gnu.org; Sat, 18 Sep 2021 07:20:54 -0400 Date: Sat, 18 Sep 2021 11:20:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1631964042; bh=FH0szmAH2G3rc73F72xakI7yO4JGE6NvN7XvVcvm3zs=; h=Date:To:From:Cc:Reply-To:Subject:From; b=Je8qgKbsriqYNboHQcceMAVBxFzBvn4g0p/Xi3R1twPzFik6JSxAKFKAP4XFy01lq 2Ns1Sd5pliyy3112/aR48gQ8Ptl/CLlaNsLy7dvqokcjHZxKa3Us3Mt8QDiQy8Q3Y+ gS/IxRpYhdElD6heTv+ydbAPAr2urKLXrSE0WrMw= Message-ID: MIME-Version: 1.0 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" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches X-Patchwork-Original-From: phodina via Guix-patches via From: phodina X-getmail-retrieved-from-mailbox: Patches * gnu/packages/linux.scm: (bolt): New variable. --- 2.32.0 diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 46c9f817a8..3ec896bba6 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -121,6 +121,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pciutils) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages polkit) #:use-module (gnu packages popt) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) @@ -2655,6 +2656,56 @@ IPv6 packet filter. Both commands are targeted at system administrators.") (license license:gpl2+))) +(define-public bolt + (package + (name "bolt") + (version "0.9.1") + (source (origin + (method git-fetch) + (uri + (git-reference + (url "https://gitlab.freedesktop.org/bolt/bolt") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1phgp8fs0dlj74kbkqlvfniwc32daz47b3pvsxlfxqzyrp77xrfm")))) + (build-system meson-build-system) + (arguments + `(#:configure-flags (list "--localstatedir=/var") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'replace-directories + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "meson.build" + (("udev.get_pkgconfig_variable..udevdir..") + (string-append "'" (assoc-ref %outputs "out") "/lib/udev'"))) + (substitute* "meson.build" + ((".*scripts/meson-install.sh.*") "")))) + (add-before 'install 'no-polkit-magic + (lambda* (#:key outputs #:allow-other-keys) + ;; Meson ‘magically’ invokes pkexec, which fails (not setuid). + (setenv "PKEXEC_UID" "something")))))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("glib:bin" ,glib "bin") + ("asciidoc" ,asciidoc) + ("umockdev" ,umockdev))) + (inputs + `(("eudev" ,eudev) + ("dbus" ,dbus) + ("polkit" ,polkit))) + (synopsis "Userspace system daemon for Thunderbolt") + (description "Userspace daemon @code{boltd} exposes devices via D-Bus to clients. +It stores database of previously authorized devices and depending +on the policy set for the individual devices, automatically authorize newly +connected devices without user interaction. It also adapts its behaivour when +iommu support is detected. +Command line utility 'boltctl' can be used to manage thundebolt devices. +It can list devices, monitor changes and initiate authorization of device.") + (home-page "https://gitlab.freedesktop.org/bolt/bolt") + (license license:gpl2+))) + (define-public jitterentropy-rngd (package (name "jitterentropy-rngd")