all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#32428] [PATCH] gnu: mit-scheme: Use minimal texlive-union.
@ 2018-08-13 16:06 Pierre Neidhardt
       [not found] ` <handler.32428.B.153417644229154.ack@debbugs.gnu.org>
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Pierre Neidhardt @ 2018-08-13 16:06 UTC (permalink / raw)
  To: 32428

* gnu/packages/scheme.scm (mit-scheme)[native-inputs]: Replace texlive with texlive-union.
---
 gnu/packages/scheme.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm
index b30245cce..ef94aedad 100644
--- a/gnu/packages/scheme.scm
+++ b/gnu/packages/scheme.scm
@@ -104,6 +104,10 @@
                                (find-files "src/compiler" "^make\\.")))
              (chdir "src")
              #t))
+         ;; FIXME: the texlive-union insists on regenerating fonts.  It stores
+         ;; them in HOME, so it needs to be writeable.
+         (add-before 'build 'set-HOME
+           (lambda _ (setenv "HOME" "/tmp") #t))
          (replace 'build
            (lambda* (#:key system outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out")))
@@ -150,7 +154,7 @@
                (delete-file-recursively old-doc-dir)
                #t))))))
     (native-inputs
-     `(("texlive" ,texlive)
+     `(("texlive" ,(texlive-union (list texlive-tex-texinfo)))
        ("texinfo" ,texinfo)
        ("m4" ,m4)))
     (inputs
-- 
2.18.0

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

* [bug#32428] [PATCH] gnu: mit-scheme: Use minimal texlive-union.
       [not found] ` <handler.32428.B.153417644229154.ack@debbugs.gnu.org>
@ 2018-08-13 16:10   ` Pierre Neidhardt
  0 siblings, 0 replies; 9+ messages in thread
From: Pierre Neidhardt @ 2018-08-13 16:10 UTC (permalink / raw)
  To: 32428

[-- Attachment #1: Type: text/plain, Size: 285 bytes --]

I've re-used the same workaroud as emacs-ess for font generation.
A little dirty (but not too much?) maybe, but I think it's much better
than relying on the obese texlive package.

I'll merge if nobody finds anything wrong with it.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

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

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

* [bug#32428] [PATCH] gnu: mit-scheme: Use minimal texlive-union.
  2018-08-13 16:06 [bug#32428] [PATCH] gnu: mit-scheme: Use minimal texlive-union Pierre Neidhardt
       [not found] ` <handler.32428.B.153417644229154.ack@debbugs.gnu.org>
@ 2018-08-20 20:55 ` Ludovic Courtès
  2018-08-21 14:05   ` Pierre Neidhardt
  2018-08-21 14:31 ` bug#32428: " Pierre Neidhardt
  2 siblings, 1 reply; 9+ messages in thread
From: Ludovic Courtès @ 2018-08-20 20:55 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 32428

Hello Pierre!

Pierre Neidhardt <ambrevar@gmail.com> skribis:

> * gnu/packages/scheme.scm (mit-scheme)[native-inputs]: Replace texlive with texlive-union.
> ---
>  gnu/packages/scheme.scm | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm
> index b30245cce..ef94aedad 100644
> --- a/gnu/packages/scheme.scm
> +++ b/gnu/packages/scheme.scm
> @@ -104,6 +104,10 @@
>                                 (find-files "src/compiler" "^make\\.")))
>               (chdir "src")
>               #t))
> +         ;; FIXME: the texlive-union insists on regenerating fonts.  It stores
> +         ;; them in HOME, so it needs to be writeable.
> +         (add-before 'build 'set-HOME
> +           (lambda _ (setenv "HOME" "/tmp") #t))

Is this a bug in ‘texlive-union’?  Does it take time and space to
regenerate the fonts?

Otherwise the change LGTM, for ‘emacs-ess’ & co. as well, as long as we
don’t duplicate the $HOME trick dozens of times.

Thanks!

Ludo’.

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

* [bug#32428] [PATCH] gnu: mit-scheme: Use minimal texlive-union.
  2018-08-20 20:55 ` Ludovic Courtès
@ 2018-08-21 14:05   ` Pierre Neidhardt
  2018-08-21 14:25     ` Pierre Neidhardt
  2018-08-22 13:46     ` Ludovic Courtès
  0 siblings, 2 replies; 9+ messages in thread
From: Pierre Neidhardt @ 2018-08-21 14:05 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 32428

[-- Attachment #1: Type: text/plain, Size: 780 bytes --]

Hello Ludo!

Well, we might have to duplicate the trick a dozen of times... :(
Until we get a better understanding of what's going on.

My limited understanding of this is that some TeXlive packages don't build the
fonts they need at install time, only at runtime.  I don't quite understand why
that is.

It's not clear to me if it's possible to build these fonts in advance.

That said, in the present state it's only required to generate the documentation
when building the package.  While this escapes the build directory, I assume
this

Hopefully we will come with a clearer answer to this issue in the future.

I'll merge considering the workaround is much better than having a full texlive
as a dependency.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

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

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

* [bug#32428] [PATCH] gnu: mit-scheme: Use minimal texlive-union.
  2018-08-21 14:05   ` Pierre Neidhardt
@ 2018-08-21 14:25     ` Pierre Neidhardt
  2018-08-22 13:46     ` Ludovic Courtès
  1 sibling, 0 replies; 9+ messages in thread
From: Pierre Neidhardt @ 2018-08-21 14:25 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 32428

[-- Attachment #1: Type: text/plain, Size: 403 bytes --]

For got to answer your first comment:
> Is this a bug in ‘texlive-union’?

I don't think this is related to texlive-union, but since I don't fully
understand the issue, I don't know if texlive-union could be tweaked to fix
this.

> Does it take time and space to regenerate the fonts?

Relatively little: < 5 seconds I'd say, less than 1MB.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

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

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

* bug#32428: [PATCH] gnu: mit-scheme: Use minimal texlive-union.
  2018-08-13 16:06 [bug#32428] [PATCH] gnu: mit-scheme: Use minimal texlive-union Pierre Neidhardt
       [not found] ` <handler.32428.B.153417644229154.ack@debbugs.gnu.org>
  2018-08-20 20:55 ` Ludovic Courtès
@ 2018-08-21 14:31 ` Pierre Neidhardt
  2 siblings, 0 replies; 9+ messages in thread
From: Pierre Neidhardt @ 2018-08-21 14:31 UTC (permalink / raw)
  To: 32428-done

[-- Attachment #1: Type: text/plain, Size: 6 bytes --]

close

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

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

* [bug#32428] [PATCH] gnu: mit-scheme: Use minimal texlive-union.
  2018-08-21 14:05   ` Pierre Neidhardt
  2018-08-21 14:25     ` Pierre Neidhardt
@ 2018-08-22 13:46     ` Ludovic Courtès
  2018-08-22 13:50       ` Pierre Neidhardt
  2018-08-22 14:20       ` Ricardo Wurmus
  1 sibling, 2 replies; 9+ messages in thread
From: Ludovic Courtès @ 2018-08-22 13:46 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 32428, Ricardo Wurmus

Hello,

Pierre Neidhardt <ambrevar@gmail.com> skribis:

> My limited understanding of this is that some TeXlive packages don't build the
> fonts they need at install time, only at runtime.  I don't quite understand why
> that is.
>
> It's not clear to me if it's possible to build these fonts in advance.

Ricardo, do you have an idea about why ‘texlive-union’ fails to build
fonts in advance?  Did we encounter this issue before?

> That said, in the present state it's only required to generate the documentation
> when building the package.  While this escapes the build directory, I assume
> this
>
> Hopefully we will come with a clearer answer to this issue in the future.
>
> I'll merge considering the workaround is much better than having a full texlive
> as a dependency.

Definitely.

Thank you!

Ludo’.

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

* [bug#32428] [PATCH] gnu: mit-scheme: Use minimal texlive-union.
  2018-08-22 13:46     ` Ludovic Courtès
@ 2018-08-22 13:50       ` Pierre Neidhardt
  2018-08-22 14:20       ` Ricardo Wurmus
  1 sibling, 0 replies; 9+ messages in thread
From: Pierre Neidhardt @ 2018-08-22 13:50 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 32428, Ricardo Wurmus

[-- Attachment #1: Type: text/plain, Size: 237 bytes --]


Oops!  Allow me to fix the missing end of the sentence:

> While this escapes the build directory, I assume this won't change anything
> regarding the reproducibility of the package.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

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

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

* [bug#32428] [PATCH] gnu: mit-scheme: Use minimal texlive-union.
  2018-08-22 13:46     ` Ludovic Courtès
  2018-08-22 13:50       ` Pierre Neidhardt
@ 2018-08-22 14:20       ` Ricardo Wurmus
  1 sibling, 0 replies; 9+ messages in thread
From: Ricardo Wurmus @ 2018-08-22 14:20 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 32428, Pierre Neidhardt


Hi Ludo,

> Pierre Neidhardt <ambrevar@gmail.com> skribis:
>
>> My limited understanding of this is that some TeXlive packages don't build the
>> fonts they need at install time, only at runtime.  I don't quite understand why
>> that is.
>>
>> It's not clear to me if it's possible to build these fonts in advance.
>
> Ricardo, do you have an idea about why ‘texlive-union’ fails to build
> fonts in advance?  Did we encounter this issue before?

I have an idea, but I haven’t been able to fix this.  This problem has
been around since the early days of using texlive-union.  It seems to me
that the TeX Live tools don’t know that the fonts are available.  This
is surprising because as far as I understand ’texlive-union’ sets up all
required environment variables and configuration files.

I discussed this with Andreas many months ago and thought that we had
pinned down the problem, but it turned out to be a dead end.  The idea
was to just set up more variables as the big texlive package does, but I
wasn’t able to convince the tools that they don’t need to rebuild the
fonts in HOME.

For other packages I was able to ignore this problem by setting HOME to
/tmp so that the tools can build the fonts cache as needed.

-- 
Ricardo

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

end of thread, other threads:[~2018-08-22 14:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-13 16:06 [bug#32428] [PATCH] gnu: mit-scheme: Use minimal texlive-union Pierre Neidhardt
     [not found] ` <handler.32428.B.153417644229154.ack@debbugs.gnu.org>
2018-08-13 16:10   ` Pierre Neidhardt
2018-08-20 20:55 ` Ludovic Courtès
2018-08-21 14:05   ` Pierre Neidhardt
2018-08-21 14:25     ` Pierre Neidhardt
2018-08-22 13:46     ` Ludovic Courtès
2018-08-22 13:50       ` Pierre Neidhardt
2018-08-22 14:20       ` Ricardo Wurmus
2018-08-21 14:31 ` bug#32428: " Pierre Neidhardt

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.