gnu: squashfs-tools: Build from upstream git.
* gnu/packages/compression.scm (squashfs-tools)[source]: Use GIT-FETCH and GIT-FILE-NAME.master
parent
1f34f8db12
commit
d037bf0294
|
@ -856,22 +856,23 @@ time for compression ratio.")
|
||||||
(package
|
(package
|
||||||
(name "squashfs-tools")
|
(name "squashfs-tools")
|
||||||
(version "4.4")
|
(version "4.4")
|
||||||
(source (origin
|
(source
|
||||||
(method url-fetch)
|
(origin
|
||||||
(uri (string-append "mirror://sourceforge/squashfs/squashfs/"
|
(method git-fetch)
|
||||||
"squashfs" version "/"
|
(uri (git-reference
|
||||||
"squashfs" version ".tar.gz"))
|
(url "https://github.com/plougher/squashfs-tools")
|
||||||
(sha256
|
(commit version)))
|
||||||
(base32
|
(file-name (git-file-name name version))
|
||||||
"0zmhvczscqz0mzh4b9m8m42asq14db0a6lc8clp5ljq5ybrv70d9"))
|
(sha256
|
||||||
(modules '((guix build utils)))
|
(base32 "0697fv8n6739mcyn57jclzwwbbqwpvjdfkv1qh9s56lvyqnplwaw"))
|
||||||
(snippet
|
(modules '((guix build utils)))
|
||||||
'(begin
|
(snippet
|
||||||
;; Fix build with -fno-common (default in GCC 10).
|
'(begin
|
||||||
;; Remove for squashfs-tools > 4.4.
|
;; Fix build with -fno-common (default in GCC 10).
|
||||||
(substitute* "squashfs-tools/mksquashfs.h"
|
;; Remove for squashfs-tools > 4.4.
|
||||||
(("struct cache \\*bwriter_buffer" all)
|
(substitute* "squashfs-tools/mksquashfs.h"
|
||||||
(string-append "extern " all)))))))
|
(("struct cache \\*bwriter_buffer" all)
|
||||||
|
(string-append "extern " all)))))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; no check target
|
`(#:tests? #f ; no check target
|
||||||
|
|
Reference in New Issue