[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
81/81: guix: import texlive: Remove need for having "svn" binary in PATH
From: |
guix-commits |
Subject: |
81/81: guix: import texlive: Remove need for having "svn" binary in PATH. |
Date: |
Tue, 18 Jun 2024 04:40:47 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 49524f2068e55883f3fc6d897ea05c5aac662f97
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon Jun 10 21:13:00 2024 +0200
guix: import texlive: Remove need for having "svn" binary in PATH.
* guix/svn-download.scm (download-svn-to-store):
(download-multi-svn-to-store): Use "svn" executable from store.
Change-Id: Ia0b80a67de3d6a0f2f67038176678495a0c9eee0
---
guix/svn-download.scm | 39 ++++++++++++++++++++++-----------------
1 file changed, 22 insertions(+), 17 deletions(-)
diff --git a/guix/svn-download.scm b/guix/svn-download.scm
index 62649e4374..93456c94cb 100644
--- a/guix/svn-download.scm
+++ b/guix/svn-download.scm
@@ -328,25 +328,28 @@ HASH-ALGO (a symbol). Use NAME as the file name, or a
generic name if #f."
(define* (download-svn-to-store store ref
#:optional (name (basename (svn-reference-url
ref)))
- #:key (log (current-error-port)))
+ #:key (log (current-error-port))
+ (svn (subversion-package)))
"Download from REF, a <svn-reference> object to STORE. Write progress
reports to LOG."
(call-with-temporary-directory
(lambda (temp)
(let ((result
(parameterize ((current-output-port log))
- (build:svn-fetch (svn-reference-url ref)
- (svn-reference-revision ref)
- (string-append temp "/svn")
- #:user-name (svn-reference-user-name ref)
- #:password (svn-reference-password ref)))))
+ #~(build:svn-fetch (svn-reference-url ref)
+ (svn-reference-revision ref)
+ (string-append temp "/svn")
+ #:svn-command #+(file-append svn "/bin/svn")
+ #:user-name (svn-reference-user-name ref)
+ #:password (svn-reference-password ref)))))
(and result
(add-to-store store name #t "sha256"
(string-append temp "/svn")))))))
(define* (download-multi-svn-to-store store ref
#:optional (name (basename
(svn-multi-reference-url ref)))
- #:key (log (current-error-port)))
+ #:key (log (current-error-port))
+ (svn (subversion-package)))
"Download from REF, a <svn-multi-reference> object to STORE. Write progress
reports to LOG."
(call-with-temporary-directory
@@ -355,16 +358,18 @@ reports to LOG."
(let ((dir (string-append temp "/" (dirname location))))
(mkdir-p dir))
(parameterize ((current-output-port log))
- (build:svn-fetch (string-append (svn-multi-reference-url
ref)
- "/" location)
- (svn-multi-reference-revision ref)
- (if (string-suffix? "/" location)
- (string-append temp "/" location)
- (string-append temp "/" (dirname
location)))
- #:recursive?
- (svn-multi-reference-recursive? ref)
- #:user-name
(svn-multi-reference-user-name ref)
- #:password (svn-multi-reference-password
ref))))
+ #~(build:svn-fetch
+ (string-append (svn-multi-reference-url ref)
+ "/" location)
+ (svn-multi-reference-revision ref)
+ (if (string-suffix? "/" location)
+ (string-append temp "/" location)
+ (string-append temp "/" (dirname location)))
+ #:svn-command #+(file-append svn "/bin/svn")
+ #:recursive?
+ (svn-multi-reference-recursive? ref)
+ #:user-name (svn-multi-reference-user-name ref)
+ #:password (svn-multi-reference-password ref))))
(svn-multi-reference-locations ref))
(add-to-store store name #t "sha256" temp)))))
- 63/81: gnu: texlive-kpathsea: Propagate the binaries., (continued)
- 63/81: gnu: texlive-kpathsea: Propagate the binaries., guix-commits, 2024/06/18
- 59/81: gnu: Add texlive-ps2eps-bin., guix-commits, 2024/06/18
- 57/81: gnu: Add texlive-lacheck-bin., guix-commits, 2024/06/18
- 68/81: gnu: texlive-ps2pk: Build binaries separately., guix-commits, 2024/06/18
- 65/81: gnu: Add texlive-luajittex-bin., guix-commits, 2024/06/18
- 66/81: gnu: Add texlive-mflua-bin., guix-commits, 2024/06/18
- 71/81: gnu: texlive-axodraw2: Build binary separately., guix-commits, 2024/06/18
- 73/81: guix: import texlive: Propagate binaries when necessary., guix-commits, 2024/06/18
- 74/81: gnu: texlive-docstrip: Remove it., guix-commits, 2024/06/18
- 72/81: gnu: texlive-xindy: Build binary separately., guix-commits, 2024/06/18
- 81/81: guix: import texlive: Remove need for having "svn" binary in PATH.,
guix-commits <=
- 78/81: gnu: texlive-scripts: Add missing "mktexfmt" symlink., guix-commits, 2024/06/18
- 67/81: gnu: texlive-dviout-util: Build binaries separately., guix-commits, 2024/06/18
- 79/81: gnu: python-sphinx: Fix build., guix-commits, 2024/06/18
- 77/81: gnu: texlive-texdirflatten: Add missing Perl input., guix-commits, 2024/06/18
- 75/81: gnu: Update commentary section in "tex.scm"., guix-commits, 2024/06/18