unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#50081] [PATCH] gnu: texlive-texmf: Disable LuaJIT engines on powerpc64le
@ 2021-08-16 19:46 Thiago Jung Bauermann via Guix-patches via
  2021-08-17 12:42 ` Mathieu Othacehe
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Thiago Jung Bauermann via Guix-patches via @ 2021-08-16 19:46 UTC (permalink / raw)
  To: 50081; +Cc: Mathieu Othacehe, Thiago Jung Bauermann

LuaJIT isn’t ported to powerpc64le. ‘texlive-latex-base’ already disables
them, so just do the same in texlive-texmf.

Fix suggested by Mathieu Othacehe <othacehe@gnu.org>.

* gnu/packages/tex.scm (texlive-texmf)[arguments]<#:phases>{texmf-config}:
Disable LuaJIT engines when building for powerpc64le.
---

Hello,

This fixes the build of ‘texlive-texmf’ on powerpc64le. It was failing
with these errors:

  fmtutil [ERROR]: not building luajittex due to missing engine: luajittex
  fmtutil [ERROR]: not building luajithbtex due to missing engine: luajithbtex

Thank you very much to Mathieu for his help in making  this work.

 gnu/packages/tex.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 70166941d554..3c0b87352a10 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -6821,9 +6821,17 @@ directly generate PDF documents instead of DVI.")
                      (share (string-append out "/share"))
                      (texmfroot (string-append share "/texmf-dist/web2c"))
                      (texmfcnf (string-append texmfroot "/texmf.cnf"))
+                     (fmtutilcnf (string-append texmfroot "/fmtutil.cnf"))
                      (texlive-bin (assoc-ref inputs "texlive-bin"))
                      (texbin (string-append texlive-bin "/bin"))
                      (tlpkg (string-append texlive-bin "/share/tlpkg")))
+                ;; LuaJIT is not ported to powerpc64le* yet.
+                (if (string-prefix? "powerpc64le"
+                                    ,(or (%current-target-system)
+                                        (%current-system)))
+                    (substitute* fmtutilcnf
+                      (("^(luajittex|luajithbtex|mfluajit)" m)
+                       (string-append "#! " m))))
                 ;; Register SHARE as TEXMFROOT in texmf.cnf.
                 (substitute* texmfcnf
                   (("TEXMFROOT = \\$SELFAUTOPARENT")




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

end of thread, other threads:[~2021-08-23  6:22 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-16 19:46 [bug#50081] [PATCH] gnu: texlive-texmf: Disable LuaJIT engines on powerpc64le Thiago Jung Bauermann via Guix-patches via
2021-08-17 12:42 ` Mathieu Othacehe
2021-08-17 14:22   ` Thiago Jung Bauermann via Guix-patches via
2021-08-17 22:51 ` Maxime Devos
2021-08-18  2:53   ` Thiago Jung Bauermann via Guix-patches via
2021-08-18  2:55 ` [bug#50081] [PATCH core-updates-frozen v2] gnu: texlive-texmf: Disable LuaJIT engines on powerpc64* Thiago Jung Bauermann via Guix-patches via
2021-08-18 10:39   ` Efraim Flashner
2021-08-19  4:51     ` Thiago Jung Bauermann via Guix-patches via
2021-08-19  6:52       ` Efraim Flashner
2021-08-20  0:41         ` Thiago Jung Bauermann via Guix-patches via
2021-08-20  0:47 ` [bug#50081] [PATCH core-updates-frozen v3] gnu: texlive-texmf: Disable LuaJIT engines on powerpc64le Thiago Jung Bauermann via Guix-patches via
2021-08-22 11:19   ` bug#50081: " Efraim Flashner
2021-08-22 22:49     ` [bug#50081] " Thiago Jung Bauermann via Guix-patches via
2021-08-23  6:19       ` Efraim Flashner

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).