guix-commits
[Top][All Lists]
Advanced

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

06/10: gnu: squashfs-tools: Build from upstream git.


From: guix-commits
Subject: 06/10: gnu: squashfs-tools: Build from upstream git.
Date: Thu, 10 Jun 2021 18:44:06 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit d037bf02947c273d780cdc1ee31710c27a30cf30
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Fri Jun 11 00:11:12 2021 +0200

    gnu: squashfs-tools: Build from upstream git.
    
    * gnu/packages/compression.scm (squashfs-tools)[source]: Use GIT-FETCH
    and GIT-FILE-NAME.
---
 gnu/packages/compression.scm | 33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 33d0517..d6aae89 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -856,22 +856,23 @@ time for compression ratio.")
   (package
     (name "squashfs-tools")
     (version "4.4")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append "mirror://sourceforge/squashfs/squashfs/"
-                                  "squashfs" version "/"
-                                  "squashfs" version ".tar.gz"))
-              (sha256
-               (base32
-                "0zmhvczscqz0mzh4b9m8m42asq14db0a6lc8clp5ljq5ybrv70d9"))
-              (modules '((guix build utils)))
-              (snippet
-               '(begin
-                  ;; Fix build with -fno-common (default in GCC 10).
-                  ;; Remove for squashfs-tools > 4.4.
-                  (substitute* "squashfs-tools/mksquashfs.h"
-                    (("struct cache \\*bwriter_buffer" all)
-                     (string-append "extern " all)))))))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/plougher/squashfs-tools";)
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0697fv8n6739mcyn57jclzwwbbqwpvjdfkv1qh9s56lvyqnplwaw"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           ;; Fix build with -fno-common (default in GCC 10).
+           ;; Remove for squashfs-tools > 4.4.
+           (substitute* "squashfs-tools/mksquashfs.h"
+             (("struct cache \\*bwriter_buffer" all)
+              (string-append "extern " all)))))))
     (build-system gnu-build-system)
     (arguments
      `(#:tests? #f                      ; no check target



reply via email to

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