summaryrefslogtreecommitdiff
path: root/gnu/packages/version-control.scm
diff options
context:
space:
mode:
authorAnderson Torres <anderson.torres.8519@gmail.com>2026-06-28 14:59:43 -0300
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2026-07-07 22:02:35 +0200
commit30b644dcee580343ec743716993ae72b343a2823 (patch)
tree773a85e7b0321896d452a196e8dba74ebc02ee50 /gnu/packages/version-control.scm
parentf7a32c5c7e8bf9ac4584d74ecc8c67bdc8a815ec (diff)
gnu: git-filter-repo: Gather source fixups in phases.
* gnu/packages/version-control.scm (git-filter-repo): Gather source fixups in phases. [source]<snippet>: Move from here ... [arguments]<#:phases>{fix-t9390}: ... to here. {check}: Move substitute* from here ... {fix-t9391}: ... to here. Change-Id: Iafafd6fd8618a9da5d36e1f0c6b7a339316d7469 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages/version-control.scm')
-rw-r--r--gnu/packages/version-control.scm19
1 files changed, 11 insertions, 8 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index e2b97f01238..a554a42ebcc 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -4831,12 +4831,6 @@ TkDiff is included for browsing and merging your changes.")
4831 (sha256 4831 (sha256
4832 (base32 4832 (base32
4833 "03sjxscj7pkldvwcvlqi6k79rcxkd2fyy1rjvpwyp4jgni5kddkx")) 4833 "03sjxscj7pkldvwcvlqi6k79rcxkd2fyy1rjvpwyp4jgni5kddkx"))
4834 ;; TODO: Remove when updating to 2.47.0.
4835 (modules '((guix build utils)))
4836 (snippet
4837 #~(substitute* "t/t9390-filter-repo.sh"
4838 (("(test_expect_success) ('--version')" _ prefix suffix)
4839 (string-append prefix " IN_FILTER_REPO_CLONE " suffix))))
4840 ;; Modified from <https://github.com/newren/git-filter-repo/pull/477>. 4834 ;; Modified from <https://github.com/newren/git-filter-repo/pull/477>.
4841 ;; Used with 'unpack-git-source phase. 4835 ;; Used with 'unpack-git-source phase.
4842 (patches 4836 (patches
@@ -4875,6 +4869,17 @@ TkDiff is included for browsing and merging your changes.")
4875 (rename-file "asciidoc.conf.in" "asciidoc.conf")) 4869 (rename-file "asciidoc.conf.in" "asciidoc.conf"))
4876 (chdir old-path) 4870 (chdir old-path)
4877 (delete-file-recursively "git-source")))) 4871 (delete-file-recursively "git-source"))))
4872 (add-after 'unpack-git-source 'fix-t9390
4873 ;; TODO: Remove when updating to 2.47.0.
4874 (lambda _
4875 (substitute* "t/t9390-filter-repo.sh"
4876 (("(test_expect_success) ('--version')" _ prefix suffix)
4877 (string-append prefix " IN_FILTER_REPO_CLONE " suffix)))))
4878 (add-after 'unpack-git-source 'fix-t9391
4879 (lambda* (#:key inputs native-inputs #:allow-other-keys)
4880 (substitute* "t/t9391-filter-repo-lib-usage.sh"
4881 (("/bin/bash")
4882 (search-input-file (or native-inputs inputs) "/bin/bash")))))
4878 (add-before 'build 'set-pythondir 4883 (add-before 'build 'set-pythondir
4879 (lambda* (#:key inputs outputs #:allow-other-keys) 4884 (lambda* (#:key inputs outputs #:allow-other-keys)
4880 (substitute* "Makefile" 4885 (substitute* "Makefile"
@@ -4885,8 +4890,6 @@ TkDiff is included for browsing and merging your changes.")
4885 (apply invoke "make" "doc" make-flags))) 4890 (apply invoke "make" "doc" make-flags)))
4886 (replace 'check 4891 (replace 'check
4887 (lambda* (#:key tests? #:allow-other-keys) 4892 (lambda* (#:key tests? #:allow-other-keys)
4888 (substitute* "t/t9391-filter-repo-lib-usage.sh"
4889 (("/bin/bash") (which "bash")))
4890 (when tests? 4893 (when tests?
4891 (invoke "t/run_tests"))))))) 4894 (invoke "t/run_tests")))))))
4892 (native-inputs 4895 (native-inputs