all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* LaTeX: Need help with packaging a book in GNU Guix
@ 2023-08-28  3:51 Artyom V. Poptsov
  2023-08-29  9:01 ` Nicolas Goaziou
  0 siblings, 1 reply; 12+ messages in thread
From: Artyom V. Poptsov @ 2023-08-28  3:51 UTC (permalink / raw)
  To: help-guix


[-- Attachment #1.1: Type: text/plain, Size: 2424 bytes --]

Hello Guixers,

I'm writing a book[1] in LaTeX and I want to make a reproducible build
of it and package the book for GNU Guix.  The book builds with a simple
hand-written Makefile for now.

There are lots of examples of LaTeX package definitions in Guix for
sure, but unfortunately I found no examples of packaged books written in
LaTeX.

I'm sure that there are avid LaTeX users in the community, seeing how
many LaTeX packages are getting into the upstream.  I'd appreciate if
someone give me a link to a working "package" definition for a LaTeX
book or any hint how to proceed further with my task.

For now I've written "guix.scm"[2] that allows me to build the book in
the pure Guix shell:

--8<---------------cut here---------------start------------->8---
guix shell --pure -D -f guix.scm
make -j$(nproc)
--8<---------------cut here---------------end--------------->8---

But unfortunately when I try

--8<---------------cut here---------------start------------->8---
guix build -f guix.scm
--8<---------------cut here---------------end--------------->8---

Then I'm getting errors that "Liberation Serif" font is not found:

--8<---------------cut here---------------start------------->8---
(/gnu/store/h7iqqr3aajqhjkib2k2g0zipag2ya41s-texlivetexmf-20230313/share/texmf-
dist/tex/latex/fontspec/fontspec.cfg)))

! Package fontspec Error: The font "Liberation Serif" cannot be found.

For immediate help type H <return>.
 ...                                              
                                                  
l.8 \setmonofont
                {Liberation Mono}
?
--8<---------------cut here---------------end--------------->8---

Moreover I see that the build tries to update the font cache but fails
to do that because the part of the file system it tries to write to is
read-only:

--8<---------------cut here---------------start------------->8---
(/gnu/store/h7iqqr3aajqhjkib2k2g0zipag2ya41s-texlivetexmf-20230313/share/texmf-
dist/tex/latex/base/book.cls
Document Class: book 2022/07/02 v1.4n Standard LaTeX document class

(/gnu/store/h7iqqr3aajqhjkib2k2g0zipag2ya41s-texlivetexmf-20230313/share/texmf-
dist/tex/latex/base/bk10.cloFontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
))
--8<---------------cut here---------------end--------------->8---

Please find the full build log attached.

[-- Attachment #1.2: ln21k7976vq3j1rnfg342vk4p4wwy4-sparc-book-git.drv.gz --]
[-- Type: application/gzip, Size: 292094 bytes --]

[-- Attachment #1.3: Type: text/plain, Size: 351 bytes --]


Thanks!

- avp

References:
1. https://github.com/artyom-poptsov/SPARC
2. https://github.com/artyom-poptsov/SPARC/blob/master/guix.scm

-- 
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 519 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-09-01 10:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-28  3:51 LaTeX: Need help with packaging a book in GNU Guix Artyom V. Poptsov
2023-08-29  9:01 ` Nicolas Goaziou
2023-08-29 12:42   ` Artyom V. Poptsov
2023-08-29 12:47     ` Nicolas Goaziou
2023-08-29 18:26       ` Artyom V. Poptsov
2023-08-29 18:55         ` Nicolas Goaziou
2023-08-29 19:19           ` Artyom V. Poptsov
2023-08-31 18:00           ` Artyom V. Poptsov
2023-09-01  3:15             ` Artyom V. Poptsov
2023-09-01  5:24               ` Dr. Arne Babenhauserheide
2023-09-01  8:26                 ` Andreas Enge
2023-09-01 10:58                 ` Nicolas Goaziou

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.