guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

09/16: gnu: usbguard: Update to 1.0.0-55-g466f1f0.


From: guix-commits
Subject: 09/16: gnu: usbguard: Update to 1.0.0-55-g466f1f0.
Date: Thu, 3 Feb 2022 17:44:58 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit 678c5bea3a27064ad000ec79cc1ad8b7e40a5241
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Thu Feb 3 18:43:52 2022 +0100

    gnu: usbguard: Update to 1.0.0-55-g466f1f0.
    
    * gnu/packages/hardware.scm (usbguard): Update to 1.0.0-55-g466f1f0.
    [source]: Switch to GIT-FETCH.
    [arguments]: Add phase to patch bootstrap script.  Delay 
patch-build-scripts.
    [native-inputs]: Add AUTOCONF, AUTOMAKE, and LIBTOOL.
---
 gnu/packages/hardware.scm | 26 +++++++++++++++++++-------
 1 file changed, 19 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm
index a93db0be3f..8d8947e3c5 100644
--- a/gnu/packages/hardware.scm
+++ b/gnu/packages/hardware.scm
@@ -11,6 +11,7 @@
 ;;; Copyright © 2021, 2022 John Kehayias <john.kehayias@protonmail.com>
 ;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
 ;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2022 Marius Bakke <marius@gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -823,20 +824,28 @@ applications.")
 (define-public usbguard
   (package
     (name "usbguard")
-    (version "0.7.8")
+    ;; Note: Use a recent snapshot to get compatibility with newer system
+    ;; libraries.
+    (version "1.0.0-55-g466f1f0")
     (source (origin
-              (method url-fetch)
-              (uri (string-append
-                    
"https://github.com/USBGuard/usbguard/releases/download/usbguard-";
-                    version "/usbguard-" version ".tar.gz"))
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/USBGuard/usbguard";)
+                    (commit (string-append "usbguard-" version))))
               (file-name (git-file-name name version))
               (sha256
-               (base32 
"1il5immqfxh2cj8wn1bfk7l42inflzgjf07yqprpz7r3lalbxc25"))))
+               (base32 
"0rc0213qsfap3sgx9m3m1kppxbjl2fdwmzlbn5rbmn1i33125dfi"))))
     (build-system gnu-build-system)
     (arguments
      `(#:phases
        (modify-phases %standard-phases
-         (add-after 'unpack 'patch-build-scripts
+         (add-after 'unpack 'patch-bootstrap-script
+           (lambda _
+             ;; Don't attempt to fetch git submodules.
+             (substitute* "autogen.sh"
+               (("^git submodule.*")
+                ""))))
+         (add-after 'bootstrap 'patch-build-scripts
            (lambda* (#:key inputs #:allow-other-keys)
              (substitute* "configure"
                (("/usr/include/catch")
@@ -887,6 +896,9 @@ applications.")
        ("libqb" ,libqb)))
     (native-inputs
      `(("asciidoc" ,asciidoc)
+       ("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("libtool" ,libtool)
        ("bash-completion" ,bash-completion)
        ("gdbus-codegen" ,glib "bin")
        ("umockdev" ,umockdev)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]