[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/53: gnu: texlive-libkpathsea: Fix TEXMFCACHE location.
From: |
guix-commits |
Subject: |
01/53: gnu: texlive-libkpathsea: Fix TEXMFCACHE location. |
Date: |
Mon, 13 May 2024 10:02:10 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 3f160e9201daf71fdb16e51c0817607c80d1e3ea
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Wed May 8 14:42:36 2024 +0200
gnu: texlive-libkpathsea: Fix TEXMFCACHE location.
* gnu/packages/tex.scm (texlive-libkpathsea)[arguments]<#:phases>: Set
TEXMFCACHE in "texmf.cnf" to "$HOME/.texliveYYYY/texmf-var/" instead of
"{$GUIX_TEXMF}", which creates a "{" directory in the current working
directory.
* guix/build/texlive-build-system.scm (build): Set TEXMFCACHE to a local
directory since $HOME is not available during build.
Change-Id: I4dfa8fd2151d0ca3db788633e70d8e26b9289d89
---
gnu/packages/tex.scm | 6 +++++-
guix/build/texlive-build-system.scm | 5 ++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 4e46c1a898..91b0393641 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -15,7 +15,7 @@
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
;;; Copyright © 2020, 2021 Paul Garlick <pgarlick@tourbillion-technology.com>
;;; Copyright © 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
-;;; Copyright © 2021-2023 Nicolas Goaziou <mail@nicolasgoaziou.fr>
+;;; Copyright © 2021-2024 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2021 Leo Le Bouter <lle-bout@zaclys.net>
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
;;; Copyright © 2021 Ivan Gankevich <i.gankevich@spbu.ru>
@@ -224,6 +224,10 @@
"TEXMF = {$GUIX_TEXMF}\n")
(("\\$SELFAUTOLOC(/share/texmf-dist/web2c)" _ suffix)
(string-append #$output suffix))
+ ;; Ignore system-wide cache. Use local one, by default
+ ;; "$HOME/.texliveYYYY/texmf-var/".
+ (("^TEXMFCACHE = .*")
+ "TEXMFCACHE = $TEXMFVAR\n")
;; Don't truncate lines.
(("^error_line = .*$") "error_line = 254\n")
(("^half_error_line = .*$") "half_error_line = 238\n")
diff --git a/guix/build/texlive-build-system.scm
b/guix/build/texlive-build-system.scm
index a9fe9c80cc..abfa1e3406 100644
--- a/guix/build/texlive-build-system.scm
+++ b/guix/build/texlive-build-system.scm
@@ -2,7 +2,7 @@
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Thiago Jung Bauermann <bauermann@kolabnow.com>
-;;; Copyright © 2023 Nicolas Goaziou <mail@nicolasgoaziou.fr>
+;;; Copyright © 2023, 2024 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -215,6 +215,9 @@ runfile to replace. If a file has no matching runfile, it
is ignored."
(files files)))
(else '()))))
(unless (null? targets)
+ ;; Default cache is located in $HOME, which is not set during build.
+ ;; Use current working directory instead.
+ (setenv "TEXMFCACHE" "texmf-cache/")
(let ((output (string-append (getcwd) "/build")))
(mkdir-p output)
(for-each (lambda (target)
- branch tex-team created (now c86eb1db00), guix-commits, 2024/05/13
- 12/53: gnu: texlive-bin: Skip building axodraw2., guix-commits, 2024/05/13
- 08/53: gnu: texlive-dvisvgm: Build executables., guix-commits, 2024/05/13
- 16/53: gnu: texlive-t1utils: Build executables., guix-commits, 2024/05/13
- 13/53: gnu: texlive-cjkutils: Build executables., guix-commits, 2024/05/13
- 21/53: gnu: texlive-autosp: Build executable., guix-commits, 2024/05/13
- 10/53: gnu: texlive-xindy: Refactor package., guix-commits, 2024/05/13
- 38/53: gnu: texlive-ptex: Build executables., guix-commits, 2024/05/13
- 18/53: gnu: texlive-afm2pl: Build executable., guix-commits, 2024/05/13
- 20/53: gnu: texlive-dvi2tty: Build executables., guix-commits, 2024/05/13
- 01/53: gnu: texlive-libkpathsea: Fix TEXMFCACHE location.,
guix-commits <=
- 03/53: gnu: texlive-psutils: Build executables., guix-commits, 2024/05/13
- 05/53: gnu: texlive-bin: Remove unnecessary phases., guix-commits, 2024/05/13
- 06/53: gnu: texlive-bin: Remove conditional tests on some architectures., guix-commits, 2024/05/13
- 07/53: gnu: texlive-libkpathsea: Set sane values in "texmf.cnf"., guix-commits, 2024/05/13
- 02/53: gnu: texlive-chktex: Fix runtime error., guix-commits, 2024/05/13
- 24/53: gnu: texlive-xpdfopen: Build executables., guix-commits, 2024/05/13
- 09/53: gnu: texlive-upmendex: Build executable., guix-commits, 2024/05/13
- 17/53: gnu: texlive-dvipng: Build executables., guix-commits, 2024/05/13
- 27/53: gnu: texlive-xml2pmx: Build executable., guix-commits, 2024/05/13
- 23/53: gnu: texlive-ps2eps: Build executables., guix-commits, 2024/05/13