gnu: compsize: Update and fix build.

* gnu/packages/linux.scm (compsize): Update to 1.5-0.d79eacf7.
[source]<patches>: Add compsize-fix-btrfs-progs-compatibility.patch.
* gnu/packages/patches/compsize-fix-btrfs-progs-compatibility.patch:
New file.
* gnu/local.mk (dist_patch_DATA): Register patch.

Change-Id: Ia967635c2fce035ebf7e4067a2dd412d4f7a0467
This commit is contained in:
Greg Hogan 2025-04-15 18:38:21 +00:00
parent 47a20a1259
commit e913acf118
No known key found for this signature in database
GPG key ID: EF6EB27413CFEEF3
3 changed files with 1649 additions and 30 deletions

View file

@ -1135,6 +1135,7 @@ dist_patch_DATA = \
%D%/packages/patches/collectd-5.11.0-noinstallvar.patch \
%D%/packages/patches/combinatorial-blas-awpm.patch \
%D%/packages/patches/combinatorial-blas-io-fix.patch \
%D%/packages/patches/compsize-fix-btrfs-progs-compatibility.patch \
%D%/packages/patches/containerd-create-pid-file.patch \
%D%/packages/patches/converseen-hide-updates-checks.patch \
%D%/packages/patches/converseen-hide-non-free-pointers.patch \

View file

@ -6933,35 +6933,39 @@ blocks and random block placement.")
(license license:gpl2+)))
(define-public compsize
(package
(name "compsize")
(version "1.5")
(home-page "https://github.com/kilobyte/compsize")
(source (origin
(method git-fetch)
(uri (git-reference
(url home-page)
(commit (string-append "v" version))))
(sha256
(base32 "0vqnrwgpv6pc1yjl0g4gl71xyl6v0xl3pyqjanjpwps73c53azir"))
(file-name (git-file-name name version))))
(build-system gnu-build-system)
(inputs
(list btrfs-progs))
(arguments
`(#:tests? #f ; No tests.
#:make-flags
(list (string-append "CC=" ,(cc-for-target)))
#:phases
(modify-phases %standard-phases
(delete 'configure)
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(install-file "compsize" (string-append out "/bin"))
(install-file "compsize.8" (string-append out "/share/man/man8"))))))))
(synopsis "Find compression type/ratio on Btrfs files")
(description "@command{compsize} takes a list of files (given as
(let ((commit "d79eacf77abe3b799387bb8a4e07a18f1f1031e8")
(revision "0"))
(package
(name "compsize")
(version (git-version "1.5" revision commit))
(home-page "https://github.com/kilobyte/compsize")
(source (origin
(method git-fetch)
(uri (git-reference
(url home-page)
(commit commit)))
(sha256
(base32 "02fvgy12m50rg1snp555a1kc3cm01g2imb81cih7ikhkbjbca0d7"))
(file-name (git-file-name name version))
(patches
(search-patches "compsize-fix-btrfs-progs-compatibility.patch"))))
(build-system gnu-build-system)
(inputs
(list btrfs-progs))
(arguments
`(#:tests? #f ; No tests.
#:make-flags
(list (string-append "CC=" ,(cc-for-target)))
#:phases
(modify-phases %standard-phases
(delete 'configure)
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(install-file "compsize" (string-append out "/bin"))
(install-file "compsize.8" (string-append out "/share/man/man8"))))))))
(synopsis "Find compression type/ratio on Btrfs files")
(description "@command{compsize} takes a list of files (given as
arguments) on a Btrfs file system and measures used compression types and
effective compression ratio, producing a report.
@ -6974,7 +6978,7 @@ only a few bytes of a 1GB extent or reflink it a thousand times. Thus, the
uncompressed size will not match the number given by @command{tar} or
@command{du}. On the other hand, the space used should be accurate (although
obviously it can be shared with files outside our set).")
(license license:gpl2+)))
(license license:gpl2+))))
(define-public f2fs-tools
(package

File diff suppressed because it is too large Load diff