From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 17 22:56:13 2021 Received: (at 50081) by debbugs.gnu.org; 18 Aug 2021 02:56:13 +0000 Received: from localhost ([127.0.0.1]:54500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGBkT-0004i8-HM for submit@debbugs.gnu.org; Tue, 17 Aug 2021 22:56:13 -0400 Received: from mx.kolabnow.com ([95.128.36.42]:21260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGBkO-0004hr-AE for 50081@debbugs.gnu.org; Tue, 17 Aug 2021 22:56:12 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTP id BCFCBC09; Wed, 18 Aug 2021 04:56:02 +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=1629255358; x=1631069759; bh=4VOCfmqHpxPNfNOsWgPZJbjVx/ILs1uRALJ3KtMK8M0=; b=ZpfMUlRXWhiu SVb8PvbHdjZljYTFIE6A074uLx7YEm0UqtYqWw42Cp0QFEBn/WwCBnG8YlY5KjDp +894gH46YzPVtAg1boNqQtDranbUbpJo3yazs2fu8yxpPOb+nF0W/Ss/UnnoqjpN G2i72x9xijZ8iUrr1ay/DgFRjCJK1PPz8TbzaMFwGHesRcinNi8gSL00D5Onjkwu yfN43PKDoljHL4qjgInebD7guZHmxguNtAW5eVzgtuenKhf6x99Cw4msIiR97MoW Is8jarLwMQCb0WZ1rZ2/s8Duv8gi2uZ/NjonYaBJCCCQiZnlJmwwT4WLr7UALNej 4eSTcmfj81m/3lp1b5vkQPHLWGRPRaQDylg336nZR9+McFfFQzVr3rE2wJ9kRJS2 IvrA4O4wN3KlstljN8CxVjEqecRfQGjWHqsvX94Nz7jrBFN/V9wvVA/xi5ZioohO 3fRB8czUfOtBhJlGuofJsEeHy48jjOdlxOnfnxW2Yub6WxQAlO/cg1OWJvZEjlwh wBcIWrK0nSbpI8ZQ48U9Cbbb0YSvGBg6BTtMIEF7MIsqap6D9OLvfLbPvNeBabRG hZsDISOEQ+kZqHyF4lzWQ8yLJvv7n9UoMNj3tBcXKcjkcrfbD9wPG5bxddkdqb87 4bloQx0j8hdmWGx5NY6VJoOBPuImL0Q= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-10 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no 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 a5pMsP07tqkb; Wed, 18 Aug 2021 04:55:58 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTPS id 18641553; Wed, 18 Aug 2021 04:55:57 +0200 (CEST) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx001.mykolab.com (Postfix) with ESMTPS id C9AC62499; Wed, 18 Aug 2021 04:55:55 +0200 (CEST) From: Thiago Jung Bauermann To: 50081@debbugs.gnu.org Subject: [PATCH core-updates-frozen v2] gnu: texlive-texmf: Disable LuaJIT engines on powerpc64* Date: Tue, 17 Aug 2021 23:55:28 -0300 Message-Id: <20210818025528.8621-1-bauermann@kolabnow.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 50081 Cc: Mathieu Othacehe , Maxime Devos , Thiago Jung Bauermann X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) LuaJIT isn’t ported to 64-bit PowerPC. ‘texlive-latex-base’ already disables the engines that rely on it, 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. Changes since v1: - Match target with “powerpc64” prefix rather than “powerpc64le”. gnu/packages/tex.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 70166941d554..900438ecacd9 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 powerpc64* yet. + (if (string-prefix? "powerpc64" + ,(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")