summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTobias Kortkamp <tobias.kortkamp@gmail.com>2025-10-18 15:51:26 +0200
committerNguyễn Gia Phong <cnx@loang.net>2026-06-23 11:27:54 +0900
commit1595d5e494d54a9824d779bf7b0d5c9369755f19 (patch)
tree4da6564d6db77b3d0af90c629c2ea65053973963 /gnu
parentd73367a9706cabe4ef8971a7ec970e785b9dd8a1 (diff)
gnu: bfs: Update to 4.1.3.
* gnu/packages/admin.scm (bfs): Update to 4.1. [arguments]<#:make-flags>: Move CC and PREFIX from here... <#:phases>{configure}: ...to this new phase replacement. {set-paths-in-tests}: New phase after disable-exec-no-path-test. [inputs]: Add liburing. Merges: https://codeberg.org/guix/guix/pulls/3626 Co-authored-by: Nguyễn Gia Phong <cnx@loang.net> Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/admin.scm41
1 files changed, 26 insertions, 15 deletions
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 16b78b9cae4..87dae4c2012 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -6821,7 +6821,7 @@ Discover other RouterOS devices or @command{mactelnetd} hosts.
6821(define-public bfs 6821(define-public bfs
6822 (package 6822 (package
6823 (name "bfs") 6823 (name "bfs")
6824 (version "3.0.4") 6824 (version "4.1.3")
6825 (source (origin 6825 (source (origin
6826 (method git-fetch) 6826 (method git-fetch)
6827 (uri (git-reference 6827 (uri (git-reference
@@ -6830,22 +6830,33 @@ Discover other RouterOS devices or @command{mactelnetd} hosts.
6830 (file-name (git-file-name name version)) 6830 (file-name (git-file-name name version))
6831 (sha256 6831 (sha256
6832 (base32 6832 (base32
6833 "0n2y9m81278j85m8vk242m9nsxdcw62rxsar4hzwszs6p5cjz5ny")))) 6833 "1pjxbbqcw0931bg28k20lacifc6p33pf71f919vnl0d4sd5xbrah"))))
6834 (build-system gnu-build-system) 6834 (build-system gnu-build-system)
6835 (arguments 6835 (arguments
6836 (list #:make-flags #~(list (string-append "CC=" 6836 (list
6837 #$(cc-for-target)) 6837 #:phases
6838 (string-append "PREFIX=" 6838 #~(modify-phases %standard-phases
6839 #$output) "bfs") 6839 (replace 'configure
6840 #:phases #~(modify-phases %standard-phases 6840 (lambda _
6841 (delete 'configure) 6841 ;; bfs uses a custom configure script.
6842 (add-before 'check 'disable-exec-no-path-test 6842 (invoke "./configure"
6843 (lambda _ 6843 "--enable-release"
6844 ;; This test unsets PATH. It then probably cannot find 6844 (string-append "CC=" #$(cc-for-target))
6845 ;; echo since it's not inside _PATH_STDPATH (?). We 6845 (string-append "--prefix=" #$output))))
6846 ;; delete the test to disable it. 6846 (add-before 'check 'disable-exec-no-path-test
6847 (delete-file "tests/posix/exec_nopath.sh")))))) 6847 (lambda _
6848 (inputs (list acl attr libcap oniguruma)) 6848 ;; This test unsets PATH. It then probably cannot find
6849 ;; echo since it's not inside _PATH_STDPATH (?). We
6850 ;; delete the test to disable it.
6851 (delete-file "tests/posix/exec_nopath.sh")))
6852 (add-after 'disable-exec-no-path-test 'set-paths-in-tests
6853 (lambda* (#:key inputs tests? #:allow-other-keys)
6854 (when tests?
6855 (substitute* '("tests/bfs/execdir_path_relative_slash.sh"
6856 "tests/gnu/execdir_self.sh"
6857 "tests/xspawn.c")
6858 (("/bin/sh\\>") (search-input-file inputs "bin/sh")))))))))
6859 (inputs (list acl attr libcap liburing oniguruma))
6849 (synopsis "Breadth-first search for your files") 6860 (synopsis "Breadth-first search for your files")
6850 (description 6861 (description
6851 "Bfs is a variant of the UNIX @command{find} command that operates 6862 "Bfs is a variant of the UNIX @command{find} command that operates