[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/07: profiles: 'texlive-font-maps' gracefully handles lack of texlive
From: |
guix-commits |
Subject: |
07/07: profiles: 'texlive-font-maps' gracefully handles lack of texlive inputs. |
Date: |
Thu, 4 May 2023 07:12:11 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 916c6e5716bd14cb328f7dcce5405ba9100bb908
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu May 4 12:43:53 2023 +0200
profiles: 'texlive-font-maps' gracefully handles lack of texlive inputs.
Fixes <https://issues.guix.gnu.org/63043>.
* guix/profiles.scm (texlive-font-maps): Define 'texlive-inputs'.
[build]: Use it.
Return #f when TEXLIVE-INPUTS is empty.
---
guix/profiles.scm | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/guix/profiles.scm b/guix/profiles.scm
index a7445c2ed8..6467e464c8 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2013-2022 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2013-2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
;;; Copyright © 2014, 2016 Alex Kost <alezost@gmail.com>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
@@ -1787,6 +1787,8 @@ MANIFEST."
(cons (gexp-input thing output)
(append-map entry->texlive-input deps))
'()))))
+ (define texlive-inputs
+ (append-map entry->texlive-input (manifest-entries manifest)))
(define texlive-bin
(module-ref (resolve-interface '(gnu packages tex)) 'texlive-bin))
(define coreutils
@@ -1810,8 +1812,7 @@ MANIFEST."
;; that TeX live can resolve the parent and grandparent directories
;; correctly. There might be a more elegant way to accomplish this.
(union-build "/tmp/texlive"
- '#$(append-map entry->texlive-input
- (manifest-entries manifest))
+ '#$texlive-inputs
#:create-all-directories? #t
#:log-port (%make-void-port "w"))
@@ -1868,7 +1869,7 @@ MANIFEST."
(install-file (string-append b "/ls-R") a))))))
(mlet %store-monad ((texlive-base (manifest-lookup-package manifest
"texlive-base")))
- (if texlive-base
+ (if (and texlive-base (pair? texlive-inputs))
(gexp->derivation "texlive-font-maps" build
#:substitutable? #f
#:local-build? #t
- branch master updated (7a0a186a32 -> 916c6e5716), guix-commits, 2023/05/04
- 03/07: import: elpa: 'elpa->guix-package' accepts other keyword arguments., guix-commits, 2023/05/04
- 02/07: gnu: dune-common: Skip tests that fail on aarch64-linux., guix-commits, 2023/05/04
- 04/07: import: elpa: Use the expected repo in recursive imports., guix-commits, 2023/05/04
- 05/07: import: Cosmetic tweaks to 'recursive-import'., guix-commits, 2023/05/04
- 01/07: ftp-client: 'connect*' retries until the timeout has expired., guix-commits, 2023/05/04
- 06/07: import: elpa: Standardize warning message., guix-commits, 2023/05/04
- 07/07: profiles: 'texlive-font-maps' gracefully handles lack of texlive inputs.,
guix-commits <=