summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLilah Tascheter <lilah@lunabee.space>2025-01-22 16:31:09 -0600
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-02 11:28:21 +0100
commite173e222e6f6a66cdfd24b2f572c7d36d4a8c6ff (patch)
tree279a65fee1ef8b1b1ab2723d94525a804f31b645
parent1960f3cb8a2690bdaec9c78db3d476fd0ec5fb99 (diff)
gnu: git-minimal: Fix locating /etc/gitconfig.
* gnu/packages/version-control.scm (git-minimal)[arguments]<configure-flags>: Add configure flag to properly recognize the system gitconfig. (git-minimal/pinned)[arguments]: Use old arguments as to not force rebuild. Change-Id: I7f31d16aa6c7ab062f300019f1f862b561ece2d3 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/version-control.scm12
1 files changed, 8 insertions, 4 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 944c99b8bf9..02e393808c8 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -339,9 +339,8 @@ Python 3.3 and later, rather than on Python 2.")
#:disallowed-references (list bash perl)
#:test-target "test"
#:configure-flags
- (if (%current-target-system)
- git-cross-configure-flags
- #~(list))
+ #~(cons "--with-gitconfig=/etc/gitconfig"
+ #$(if (%current-target-system) git-cross-configure-flags #~(list)))
#:make-flags
#~(list "V=1" ;more verbose compilation
(string-append "SHELL_PATH="
@@ -820,7 +819,12 @@ everything from small to very large projects with speed and efficiency.")
version ".tar.xz"))
(sha256
(base32
- "0if0vqn3fj22p95a0125zpgwz3mqfqxqnvwa7fkf7b00wh0c1wyz"))))))
+ "0if0vqn3fj22p95a0125zpgwz3mqfqxqnvwa7fkf7b00wh0c1wyz"))))
+ ;; Temporary measure to prevent unneccessary package rebuilds.
+ (arguments
+ (substitute-keyword-arguments (package-arguments git-minimal)
+ ((#:configure-flags flags #~'())
+ (if (%current-target-system) git-cross-configure-flags #~(list)))))))
(define-public python-klaus
(package