[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
33/34: gnu: bcachefs-tools: Update to 0.1-17.c8bec83.
From: |
guix-commits |
Subject: |
33/34: gnu: bcachefs-tools: Update to 0.1-17.c8bec83. |
Date: |
Tue, 18 Jul 2023 21:12:00 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit f858d5c8a5270e5db189dc7cc2fa8ffe83c16ef5
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jul 16 02:00:04 2023 +0200
gnu: bcachefs-tools: Update to 0.1-17.c8bec83.
* gnu/packages/file-systems.scm (bcachefs-tools): Update to 0.1-17.c8bec83.
[arguments]: Remove obsolete PYTEST_ variables from #:make-flags, and add
NO_RUST. Delete the obsolete 'promote-mount.bcachefs.sh phase.
Add a custom 'check phase.
[native-inputs]: Consolidate separate lists.
---
gnu/packages/file-systems.scm | 72 +++++++++++++++++++------------------------
1 file changed, 32 insertions(+), 40 deletions(-)
diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm
index 7788acd34e..a957cc495a 100644
--- a/gnu/packages/file-systems.scm
+++ b/gnu/packages/file-systems.scm
@@ -574,8 +574,8 @@ from a mounted file system.")
(license license:gpl2+)))
(define-public bcachefs-tools
- (let ((commit "46a6b9210c927ab46fd1227cb6f641be0b4a7505")
- (revision "16"))
+ (let ((commit "c8bec83e307f28751c433ba1d3f648429fb5a34c")
+ (revision "17"))
(package
(name "bcachefs-tools")
(version (git-version "0.1" revision commit))
@@ -587,7 +587,7 @@ from a mounted file system.")
(commit commit)))
(file-name (git-file-name name version))
(sha256
- (base32 "0jblpwz8mxrx0pa2gc5bwj60qjj2c0zmd8r06f2bhgzs75avpkj3"))))
+ (base32 "0b1avy5mw3r3ppfs3n9cq4zb74yl45nd5l69r6hi27z9q5bc3nv8"))))
(build-system gnu-build-system)
(arguments
(list #:make-flags
@@ -596,47 +596,39 @@ from a mounted file system.")
"INITRAMFS_DIR=$(PREFIX)/share/initramfs-tools"
(string-append "CC=" #$(cc-for-target))
(string-append "PKG_CONFIG=" #$(pkg-config-for-target))
- (string-append "PYTEST_CMD="
- #$(this-package-native-input
"python-pytest")
- "/bin/pytest")
- (string-append "PYTEST_ARGS=-k '"
- ;; These fail (‘invalid argument’) on
- ;; kernels with a previous bcachefs
version.
- "not test_format and "
- "not test_fsck and "
- "not test_list and "
- "not test_list_inodes and "
- "not test_list_dirent"
- "'"))
+ ;; ‘This will be less of an option in the future, as more
+ ;; code gets rewritten in Rust.’
+ "NO_RUST=better")
#:phases
#~(modify-phases %standard-phases
(delete 'configure) ; no configure script
- (add-after 'install 'promote-mount.bcachefs.sh
- ;; XXX The (optional) ‘mount.bcachefs’ requires rust:cargo.
- ;; This shell alternative does the job well enough for now.
- (lambda* (#:key inputs #:allow-other-keys)
- (define (whence file)
- (dirname (search-input-file inputs file)))
- (with-directory-excursion (string-append #$output "/sbin")
- (rename-file "mount.bcachefs.sh" "mount.bcachefs")
- ;; WRAP-SCRIPT causes bogus ‘Insufficient arguments’
errors.
- (wrap-program "mount.bcachefs"
- `("PATH" ":" prefix
- ,(list (getcwd)
- (whence "bin/tail")
- (whence "bin/awk")
- (whence "bin/mount"))))))))))
+ (replace 'check
+ ;; The test suite is moribund upstream (‘never been
useful’),
+ ;; but let's keep running it as a sanity check until then.
+ (lambda* (#:key tests? make-flags #:allow-other-keys)
+ (when tests?
+ ;; We must manually build the test_helper first.
+ (apply invoke "make" "tests" make-flags)
+ (invoke (string-append
+ #$(this-package-native-input "python-pytest")
+ "/bin/pytest") "-k"
+ ;; These fail (‘invalid argument’) on kernels
+ ;; with a previous bcachefs version.
+ (string-append "not test_format and "
+ "not test_fsck and "
+ "not test_list and "
+ "not test_list_inodes and "
+ "not test_list_dirent"))))))))
(native-inputs
- (append
- (list pkg-config
- ;; For tests.
- python-pytest)
- (if (member (%current-system) (package-supported-systems valgrind))
- (list valgrind)
- '())
- ;; For generating documentation with rst2man.
- (list python
- python-docutils)))
+ (cons* pkg-config
+ ;; For generating documentation with rst2man.
+ python
+ python-docutils
+ ;; For tests.
+ python-pytest
+ (if (member (%current-system) (package-supported-systems
valgrind))
+ (list valgrind)
+ '())))
(inputs
(list eudev
keyutils
- 08/34: gnu: ntp: Update to 4.2.8p17., (continued)
- 08/34: gnu: ntp: Update to 4.2.8p17., guix-commits, 2023/07/18
- 09/34: gnu: ntp: Remove input labels., guix-commits, 2023/07/18
- 12/34: gnu: spiped: Update to 1.6.2., guix-commits, 2023/07/18
- 10/34: gnu: ntp: Use G-expressions., guix-commits, 2023/07/18
- 13/34: gnu: spiped: Use G-expressions., guix-commits, 2023/07/18
- 15/34: gnu: traceroute: Use G-expressions., guix-commits, 2023/07/18
- 19/34: gnu: liblxi: Update to 1.20., guix-commits, 2023/07/18
- 29/34: gnu: libqb: Fix cross-compilation., guix-commits, 2023/07/18
- 26/34: gnu: hwinfo: Make with flags., guix-commits, 2023/07/18
- 30/34: gnu: libqb: Update to 2.0.7., guix-commits, 2023/07/18
- 33/34: gnu: bcachefs-tools: Update to 0.1-17.c8bec83.,
guix-commits <=
- 34/34: gnu: python-wand: Fix build., guix-commits, 2023/07/18
- 23/34: gnu: hwinfo: Update to 23.1., guix-commits, 2023/07/18
- 25/34: gnu: hwinfo: Factorise 'install-man-pages., guix-commits, 2023/07/18
- 14/34: gnu: traceroute: Update to 2.1.2., guix-commits, 2023/07/18
- 16/34: gnu: wireshark: Update to 4.0.7., guix-commits, 2023/07/18
- 17/34: gnu: gcab: Update to 1.6., guix-commits, 2023/07/18
- 18/34: gnu: gcab: Remove input labels., guix-commits, 2023/07/18
- 20/34: gnu: liblxi: Edit description., guix-commits, 2023/07/18
- 21/34: gnu: spread-sheet-widget: Update to 0.8., guix-commits, 2023/07/18
- 22/34: gnu: spread-sheet-widget: Omit static library., guix-commits, 2023/07/18