Merge branch 'master' into gnome-team

This commit is contained in:
Liliana Marie Prikler 2023-08-19 20:15:57 +02:00
commit f62efeff76
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87
243 changed files with 71242 additions and 78385 deletions

View file

@ -1787,6 +1787,11 @@ MANIFEST."
(cons (gexp-input thing output)
(append-map entry->texlive-input deps))
'()))))
(define texlive-scripts-entry?
(match-lambda
(($ <manifest-entry> name version output thing deps)
(or (string=? "texlive-scripts" name)
(any texlive-scripts-entry? deps)))))
(define texlive-inputs
(append-map entry->texlive-input (manifest-entries manifest)))
(define texlive-scripts
@ -1815,9 +1820,12 @@ MANIFEST."
#:create-all-directories? #t
#:log-port (%make-void-port "w"))
;; Clear files that are going to be regenerated.
;; Clear files that are going to be regenerated, or copied from
;; a different place, in order to prevent failures during profile
;; generation.
(with-directory-excursion "/tmp/texlive/share/texmf-dist"
(for-each delete-file
(for-each (lambda (file)
(when (file-exists? file) (delete-file file)))
(list "fonts/map/dvipdfmx/updmap/kanjix.map"
"fonts/map/dvips/updmap/builtin35.map"
"fonts/map/dvips/updmap/download35.map"
@ -1884,9 +1892,11 @@ MANIFEST."
(copy-recursively a b)
(invoke mktexlsr b)
(install-file (string-append b "/ls-R") a))))))
(with-monad %store-monad
(if (pair? texlive-inputs)
;; `texlive-scripts' brings essential files to generate font maps.
;; Therefore, it must be present in the profile. This check prevents
;; incomplete modular TeX Live installations to generate errors.
(if (any texlive-scripts-entry? (manifest-entries manifest))
(gexp->derivation "texlive-font-maps" build
#:substitutable? #f
#:local-build? #t