From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0DEWEHc532DaZgEAgWs5BA (envelope-from ) for ; Fri, 02 Jul 2021 18:06:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id AGnlC3c532DRRAAAB5/wlQ (envelope-from ) for ; Fri, 02 Jul 2021 16:06:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7E50E24B20 for ; Fri, 2 Jul 2021 18:06:14 +0200 (CEST) Received: from localhost ([::1]:60164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzLgD-0005aW-6m for larch@yhetil.org; Fri, 02 Jul 2021 12:06:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzLbC-0005P9-IO for bug-guix@gnu.org; Fri, 02 Jul 2021 12:01:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53638) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzLbC-0005Hp-81 for bug-guix@gnu.org; Fri, 02 Jul 2021 12:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lzLbC-0006JK-5E for bug-guix@gnu.org; Fri, 02 Jul 2021 12:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48064: [PATCH core-updates] build-system/texlive: Change default format to pdftex References: <871rav68km.fsf@inria.fr> In-Reply-To: <871rav68km.fsf@inria.fr> Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 02 Jul 2021 16:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48064 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48064@debbugs.gnu.org Cc: Thiago Jung Bauermann Received: via spool by 48064-submit@debbugs.gnu.org id=B48064.162524163624214 (code B ref 48064); Fri, 02 Jul 2021 16:01:02 +0000 Received: (at 48064) by debbugs.gnu.org; 2 Jul 2021 16:00:36 +0000 Received: from localhost ([127.0.0.1]:36951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzLal-0006IU-Sw for submit@debbugs.gnu.org; Fri, 02 Jul 2021 12:00:36 -0400 Received: from mx.kolabnow.com ([95.128.36.42]:57310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzLaj-0006IG-Rb for 48064@debbugs.gnu.org; Fri, 02 Jul 2021 12:00:35 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTP id CBD3513CA for <48064@debbugs.gnu.org>; Fri, 2 Jul 2021 18:00:27 +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=1625241627; x=1627056028; bh=yK9USjgpyaYpj9tBh8XeV59gRhG9JI8/PuWDRMq5h3E=; b=oorcsRoejLH4 UcLfXv0ET5g3ln9ZNPbKh6qzMJK+g6GnCNpaSqaeKabiyvnH/Lk9jTR5WkUwz2GX 2MDXHW8iJf11Hv9yMjAErTcO6FDLxAv09UZIE6KuWJyLTPzc8EazGOhv9IVpUJ1n 0KP1Sp1tHM1DCV3z3ttYE9Va5i1osYKI/tOFjkB5ekKKME7T9Jm+9yg5FRavYG2v ZYtpzBhP7PsIcLao9aPwYvsNsmGTKSm30OscRBSZ7NHBJ+D5NJoXta/zVMYI8O2C /+lCob1fHvtAZq6KHQDBWRkBFdjYQCmP/Vt1KhJwyE/c3Y1wla27JBKogqxAI8ky Rq08bcLTrhYRYzmd83aucyddi38OnnMbNIDvqPywGvvc7omDE0a+GhCli7QbROKX GDeC+verT//s+riFXLaVWH1pwVIA46E73GYCLkMt8932zrQU9K50e9Y8AgjTWauk AizUYlElOKzVaAQ8jShlCcINBwjEcgcrBgzMDwr6cQnedgmfomWgF3sNqZzoMcKk yii0WzZ2VuptHJVk9vThQ8nzM42o+QFLuc7L6+/Q5ti3N7NMzzChWaQeZid1LiO2 Q9wlklkPQ63SQJtbnfJW0yykd5leEl+UVfrmtieKPZ+NoFWquOo/Ti8ksGEN8SY/ 1JgTmqQBIELTFGk+XFdSRS7XoacuNUk= 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 yL9Y6b5fPGsS for <48064@debbugs.gnu.org>; Fri, 2 Jul 2021 18:00:27 +0200 (CEST) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out002.mykolab.com (Postfix) with ESMTPS id 153B545D for <48064@debbugs.gnu.org>; Fri, 2 Jul 2021 18:00:25 +0200 (CEST) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx003.mykolab.com (Postfix) with ESMTPS id 175BB2E48; Fri, 2 Jul 2021 18:00:24 +0200 (CEST) Date: Fri, 2 Jul 2021 13:00:10 -0300 Message-Id: <20210702160010.246888-1-bauermann@kolabnow.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Thiago Jung Bauermann From: Thiago Jung Bauermann via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625241975; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=yK9USjgpyaYpj9tBh8XeV59gRhG9JI8/PuWDRMq5h3E=; b=jqfQvR+K2pjd31EWhn49dQbZekN8PI+6KXmchLkv1anz906e8oNjwMqGUqRiqoRUmP1jML dGbKcNCMLzSXIHlxHcje4hy9o6CwJyJygSPnQHwtMUaip0KmTwOyMZARsNmTgqR+Y9w99c +P8l1XtOQJf92egNazHtHut38HoKegU+WwJHr6w1+n8fSMwoksgevkmigckYGxhKY63NoM /eDb4et7U0HztJkma2mnlThyvXVKdnM8sZAfGGnSeAYf3k5PIe/xczpwli2c3A/HQVHwL+ 2PbfThz9c40HHn541/DYTOv7pCNMZhjTlGIz+oLU6BBz7F1XVRz5LOho6rL84Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625241975; a=rsa-sha256; cv=none; b=HwZNwnFGBPGGvYIbsrd76eNOOKT3o1NQbTTwi/MN2ug5DonAv40cPrm8myY7kcumHQ4doM nMMomVbjJOh8QYaTYXbOeSL+jD7XBJtIcltCprJauduGA3jbe1NFWT8rbxmu0dqAEPeQWG w8vGgsowmNKZJgJPoAwXpbUIWl74S3hB4BxQskBE8kjl3kt+t7K0mVrmlpumEvt3vP07eg ed+IhXT/ymMaKxSlP0/s5GDxBRVOHnNqQM2XPcmpeE43lWFKn5a5OHEM43IQzoEivJlfHe gqxC6Doj+9MJrGjgBo2G6bj7ppPAz6Lzlfs+vYuADipHL21VqNPuxh8w8YmBzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=oorcsRoe; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=oorcsRoe; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 7E50E24B20 X-Spam-Score: -2.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: oveUEzGaGa3b LuaTeX has a bug where sometimes it corrupts the heap and aborts. This causes the build of texlive packages to fail at random. The problem is being tracked at https://issues.guix.gnu.org/48064. While a fix isn't found, switch the default TeX format (and consequently also the engine) to pdftex to avoid the issue. * guix/build-system/texlive.scm (texlive-build): Change default value of the ‘tex-format’ key parameter to “pdftex”. --- guix/build-system/texlive.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Hello, Originally I had a bigger patch which changed packages individually to build with pdfTeX, because I thought the bug in LuaTeX was triggered only by specific packages. As I changed more and more packages though, I realized that any package can trigger the problem and the heap corruption happens at random. Therefore, to work around the LuaTeX bug we need to build all packages with pdfTeX. I tested the patch with this script: --8<---------------cut here---------------start------------->8--- #!/bin/bash set -e LOG_FILE="$1" ROUNDS=$2 function verify_package() { local package="$1" local log_file="$2" if ! guix build "$package"; then echo "failure while building $package" >> "$log_file" return fi echo "success while building $package" >> "$log_file" if ! guix build --check --rounds=$ROUNDS "$package"; then echo "failure while checking $package" >> "$log_file" return fi echo "success while checking $package" >> "$log_file" return } guix describe >> "$LOG_FILE" echo rounds = "$ROUNDS" >> "$LOG_FILE" echo >> "$LOG_FILE" for package in $(guix package --list-available='^texlive' | cut -f1) do verify_package $package "$LOG_FILE" done --8<---------------cut here---------------end--------------->8--- and called it with `./verify-texlive-packages.sh verify-packages.log 5`. I see some packages fail during `guix build --check` because they don't build deterministically for some reason (which is a separate problem), but I don't see any package failing to build anymore. diff --git a/guix/build-system/texlive.scm b/guix/build-system/texlive.scm index 0efa139fc124..00a36d5862d4 100644 --- a/guix/build-system/texlive.scm +++ b/guix/build-system/texlive.scm @@ -128,7 +128,7 @@ level package ID." (tests? #f) tex-directory (build-targets #f) - (tex-format "luatex") + (tex-format "pdftex") (phases '(@ (guix build texlive-build-system) %standard-phases)) (outputs '("out"))