From: Thiago Jung Bauermann via Guix-patches via <guix-patches@gnu.org>
To: 50081@debbugs.gnu.org
Cc: Mathieu Othacehe <othacehe@gnu.org>,
Maxime Devos <maximedevos@telenet.be>,
Efraim Flashner <efraim@flashner.co.il>,
Thiago Jung Bauermann <bauermann@kolabnow.com>
Subject: [bug#50081] [PATCH core-updates-frozen v3] gnu: texlive-texmf: Disable LuaJIT engines on powerpc64le
Date: Thu, 19 Aug 2021 21:47:15 -0300 [thread overview]
Message-ID: <20210820004715.21077-1-bauermann@kolabnow.com> (raw)
In-Reply-To: <20210816194633.7984-1-bauermann@kolabnow.com>
LuaJIT isn’t ported to 64-bit PowerPC. ‘texlive-bin’ and
‘texlive-latex-base’ already disable the engines that rely on it, so just
do the same in texlive-texmf.
Fix suggested by Mathieu Othacehe <othacehe@gnu.org>.
Also, for consistency use ‘target-ppc64le’ in ‘texlive-bin’ as well.
* gnu/packages/tex.scm (texlive-bin)[arguments]<#:configure-flags>: Use
‘target-ppc64le’.
(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.
Changes since v2:
- Use ‘target-ppc64le?’ to match target string.
- Change ‘texlive-bin’ to also use ‘target-ppc64le?’.
Changes since v1:
- Match target with “powerpc64” prefix rather than “powerpc64le”.
gnu/packages/tex.scm | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 4500f1929264..9ec015482808 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -339,8 +339,7 @@ files from LOCATIONS with expected checksum HASH. CODE is not currently in use.
"--with-system-zlib"
"--with-system-zziplib"
;; LuaJIT is not ported to powerpc64le* yet.
- ,@(if (string-prefix? "powerpc64le" (or (%current-target-system)
- (%current-system)))
+ ,@(if (target-ppc64le?)
'("--disable-luajittex"
"--disable-luajithbtex"
"--disable-mfluajit")
@@ -6829,9 +6828,15 @@ 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 powerpc64* yet.
+ (if ,(target-ppc64le?)
+ (substitute* fmtutilcnf
+ (("^(luajittex|luajithbtex|mfluajit)" m)
+ (string-append "#! " m))))
;; Register SHARE as TEXMFROOT in texmf.cnf.
(substitute* texmfcnf
(("TEXMFROOT = \\$SELFAUTOPARENT")
next prev parent reply other threads:[~2021-08-20 0:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Thiago Jung Bauermann via Guix-patches via [this message]
2021-08-22 11:19 ` bug#50081: [PATCH core-updates-frozen v3] gnu: texlive-texmf: Disable LuaJIT engines on powerpc64le Efraim Flashner
2021-08-22 22:49 ` [bug#50081] " Thiago Jung Bauermann via Guix-patches via
2021-08-23 6:19 ` Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210820004715.21077-1-bauermann@kolabnow.com \
--to=guix-patches@gnu.org \
--cc=50081@debbugs.gnu.org \
--cc=bauermann@kolabnow.com \
--cc=efraim@flashner.co.il \
--cc=maximedevos@telenet.be \
--cc=othacehe@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.