From patchwork Mon Aug 16 19:46:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thiago Jung Bauermann X-Patchwork-Id: 32135 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id ADEC827BC78; Mon, 16 Aug 2021 20:48:16 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 460C327BC6B for ; Mon, 16 Aug 2021 20:48:16 +0100 (BST) Received: from localhost ([::1]:56936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFial-00008d-7P for patchwork@mira.cbaines.net; Mon, 16 Aug 2021 15:48:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFiaY-000085-GV for guix-patches@gnu.org; Mon, 16 Aug 2021 15:48:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mFiaY-0001N8-9T for guix-patches@gnu.org; Mon, 16 Aug 2021 15:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mFiaY-0005Hm-7j for guix-patches@gnu.org; Mon, 16 Aug 2021 15:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50081] [PATCH] gnu: texlive-texmf: Disable LuaJIT engines on powerpc64le Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 16 Aug 2021 19:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50081 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50081@debbugs.gnu.org Cc: Mathieu Othacehe , Thiago Jung Bauermann X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162914323220255 (code B ref -1); Mon, 16 Aug 2021 19:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Aug 2021 19:47:12 +0000 Received: from localhost ([127.0.0.1]:51066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFiZk-0005Gc-Bu for submit@debbugs.gnu.org; Mon, 16 Aug 2021 15:47:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:44354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFiZh-0005GU-Kj for submit@debbugs.gnu.org; Mon, 16 Aug 2021 15:47:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFiZh-0008U0-BA for guix-patches@gnu.org; Mon, 16 Aug 2021 15:47:09 -0400 Received: from mx.kolabnow.com ([95.128.36.41]:12920) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFiZe-0000jZ-Tx; Mon, 16 Aug 2021 15:47:08 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTP id 17A57CB5; Mon, 16 Aug 2021 21:47:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20160331; t=1629143219; x=1630957620; bh=M4tXS4J+vFjt5VsW/+nLG04pNy1Ck0jotL0cgZ1HpSI=; b=lcydzSl+8bs+ ocObDaXwSRr81VYO25XXedfDRprrzNNWymwEcJa/d4rL6TK0F6QqMQaVDQMpEBwQ FiVevpRpkTp4atp9rQllrVBDPYEMIOD97QCVXx2RWYe/TmLxacbxfbtNDRCKjcjO 3YmuvmRvNXHW+5V/bg2BAJPDiA8JkTu5mF3FR43+fq74xHk3mAKgpcDUv0rrTB7O PGuWAq9sIrMkFcyHzffjN3GKDyzEz6ogdBg6/lXVAWEfIyE+skLKlipzjZj5HADR Ly8i/LkBe168wJCw0GNZrSswAiIm2B0biyW3H3cdTyAb5oAbtf+cWVkOxL6L8gDp pJDsibs692sSstpCWm0+Z4xxc08LWqCt1KtrGQ/j3+ofkXmsYRir0jy6Us1WlS1m tX8Ah2Kq9BtEST2bJ3OUuhiQydKDzBrbi42xwsIeUEon6x62yCUiM/rKRAaRxPyQ Tb22OmTRg92EedrsTil9Mqp9ut61LhYMk/Uqugtult6VBydyXQRdTuh3TXTMEN2v M09Ao4uxhSvogG5laJktwzWIaUlTR3wp98/2MIfq/DVSW4mbGtBDZdHTHWPGw926 J+UWNuQO5c0+mcibzmDmlZK590qDdp6Y4dbXXFw6quw11KEdOgba8R14ywR3Mm1C 7RUI5+EUCgf3ShYAxqk1sfFhB415DPE= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out002.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1YIQQPgjkZgg; Mon, 16 Aug 2021 21:46:59 +0200 (CEST) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out002.mykolab.com (Postfix) with ESMTPS id 7D35F5C1; Mon, 16 Aug 2021 21:46:59 +0200 (CEST) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx003.mykolab.com (Postfix) with ESMTPS id B128D4B3E; Mon, 16 Aug 2021 21:46:57 +0200 (CEST) Date: Mon, 16 Aug 2021 16:46:33 -0300 Message-Id: <20210816194633.7984-1-bauermann@kolabnow.com> MIME-Version: 1.0 Received-SPF: pass client-ip=95.128.36.41; envelope-from=bauermann@kolabnow.com; helo=mx.kolabnow.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Thiago Jung Bauermann X-ACL-Warn: , Thiago Jung Bauermann via Guix-patches X-Patchwork-Original-From: Thiago Jung Bauermann via Guix-patches via From: Thiago Jung Bauermann X-getmail-retrieved-from-mailbox: Patches 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 . * 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")