From patchwork Wed Aug 18 02:55:28 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: 32172 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 F1F4D27BC78; Wed, 18 Aug 2021 03:57:07 +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 BD84927BC6B for ; Wed, 18 Aug 2021 03:57:07 +0100 (BST) Received: from localhost ([::1]:58244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGBlK-0006Dp-RX for patchwork@mira.cbaines.net; Tue, 17 Aug 2021 22:57:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGBlG-0006Df-0a for guix-patches@gnu.org; Tue, 17 Aug 2021 22:57:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42954) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGBlF-0008Jk-PV for guix-patches@gnu.org; Tue, 17 Aug 2021 22:57:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGBlF-0004jK-NT for guix-patches@gnu.org; Tue, 17 Aug 2021 22:57:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50081] [PATCH core-updates-frozen v2] gnu: texlive-texmf: Disable LuaJIT engines on powerpc64* References: <20210816194633.7984-1-bauermann@kolabnow.com> In-Reply-To: <20210816194633.7984-1-bauermann@kolabnow.com> Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 18 Aug 2021 02:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50081 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50081@debbugs.gnu.org Cc: Mathieu Othacehe , Maxime Devos , Thiago Jung Bauermann Received: via spool by 50081-submit@debbugs.gnu.org id=B50081.162925537318118 (code B ref 50081); Wed, 18 Aug 2021 02:57:01 +0000 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 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) Date: Tue, 17 Aug 2021 23:55:28 -0300 Message-Id: <20210818025528.8621-1-bauermann@kolabnow.com> MIME-Version: 1.0 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 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")