From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id cPYHCtP2g2aVDwAA62LTzQ:P1 (envelope-from ) for ; Tue, 02 Jul 2024 12:47:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id cPYHCtP2g2aVDwAA62LTzQ (envelope-from ) for ; Tue, 02 Jul 2024 14:47:15 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=goryachev.org header.s=dkim header.b=2TJ2JxY4; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719924435; 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-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=7mUFsSlA6t29mY3Jtyuh3zS+RxbfPTXr7gFB2NKvDDw=; b=l+d9o2mOrRmo/UGgTI2VLuQrbEernbjTk4GWN733Jxc0MgW1ojUaEIpkSdxjGkU13Lf3J7 aE3pAmg1CL5D/C/ASwI1uNwQmGoGKh6ZX1z6Eklyr8XDvM2oh5RkaYDK6Bn7NfWJukpFR7 qgdHkUWspbXOWrx1YohnktUOzgdejAxdAVX1/eJAjcbIcfEqpdKoasCiI0Hr4vHvx3KhVk Sy/l3io354FZRFq7/3oQ0dBdXM3Ix2HaoRUPgV0VYml8iftxDrlKhcrxnX2xsFsTovMD+K q6QG/Zm3RQbi2TXat/U1oSpfhRYOro2ux7pWXA609H/mG/paL+Sd0eLqvXQ5CA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719924435; a=rsa-sha256; cv=none; b=VuY4+TYkkeE3G7J82UfM2C1JkbRq0z7Q0xl+4VyhiUDjn+vTIqBXrsovBvjqWJYYasFYka iZiHq70g2cW5um9XSPlcECJdqbSP+NX4V6HYgHR5z1KhDY0SGdwzhItSSuSPaSY2Cwu+vu RPlF+RTkCIoFPYBb+DsbaLz5JKGr0x5K4vUJnTcIl3ldW4Vp0CoxDJ+2QEW/UJRrod6Wkn tQgDYwN/KQdXCD8rzlPn16Fnw/Qlw8Ew0sGEjVyYfWVFC7f9+1ForwH6oj3TkH0WmJiEfi xDz0Ay5NgC+9sOZlRDWaDxWWzQ6y2E4uLsuo4+NhQuGrSZBzcV2WXFqDYwB1tQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=goryachev.org header.s=dkim header.b=2TJ2JxY4; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" 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 D7ABA6A7BE for ; Tue, 2 Jul 2024 14:47:14 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOcuV-0000w4-9K; Tue, 02 Jul 2024 08:47:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOcuT-0000vb-Bb for guix-patches@gnu.org; Tue, 02 Jul 2024 08:47:01 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sOcuT-0001Vw-3D for guix-patches@gnu.org; Tue, 02 Jul 2024 08:47:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sOcuU-0007uo-5i for guix-patches@gnu.org; Tue, 02 Jul 2024 08:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71899] [PATCH v2] gnu: erlang-lfe: Make LFE compiler deterministic. Resent-From: Igor Goryachev Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 02 Jul 2024 12:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71899 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71899@debbugs.gnu.org Cc: Igor Goryachev , Andrew Tropin X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171992439430388 (code B ref -1); Tue, 02 Jul 2024 12:47:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 Jul 2024 12:46:34 +0000 Received: from localhost ([127.0.0.1]:36219 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOcu1-0007u4-Tm for submit@debbugs.gnu.org; Tue, 02 Jul 2024 08:46:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:57418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOcu0-0007tx-Lj for submit@debbugs.gnu.org; Tue, 02 Jul 2024 08:46:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOctw-0000VZ-MV for guix-patches@gnu.org; Tue, 02 Jul 2024 08:46:31 -0400 Received: from mail.goryachev.org ([104.248.201.73]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOctu-0001Qz-Bw for guix-patches@gnu.org; Tue, 02 Jul 2024 08:46:28 -0400 Received: from localhost.localdomain (213-91-248-88.ip.btc-net.bg [213.91.248.88]) by mail.goryachev.org (Postfix) with ESMTPSA id 35405120042; Tue, 2 Jul 2024 15:46:24 +0300 (MSK) Date: Tue, 2 Jul 2024 15:46:15 +0300 Message-ID: <8a8d2696560e1dfb51d106a1c5e7c9034a5e5c39.1719924375.git.igor@goryachev.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=goryachev.org; s=dkim; t=1719924384; bh=7mUFsSlA6t29mY3Jtyuh3zS+RxbfPTXr7gFB2NKvDDw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Transfer-Encoding; b=2TJ2JxY4YkDwE4yOkHssfAgjy2BWLXECCKWyGrWrWtQiI0JIUfPyeO8cQxgovCadqRW+UI5TFf00rMlMCxnmYr9L0nGiddU84w35rHjR3y+vWynW9rm+7OxYnSK52pewhVMDf6TdA/wJ5rNC9NxHUoRadzbXKLaAtTqRkw/GqVA= Received-SPF: pass client-ip=104.248.201.73; envelope-from=igor@goryachev.org; helo=mail.goryachev.org 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: , Reply-to: Igor Goryachev X-ACL-Warn: , Igor Goryachev via Guix-patches From: Igor Goryachev via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: D7ABA6A7BE X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.58 X-Spam-Score: -6.58 X-TUID: BY5PJnsnNfap * gnu/packages/erlang.scm (erlang-lfe): Make LFE compiler deterministic. Change-Id: I0cf00eeda8502384b746795802f1b2291d0e8a3b --- gnu/packages/erlang.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/packages/erlang.scm b/gnu/packages/erlang.scm index dd07c1a617..a236722474 100644 --- a/gnu/packages/erlang.scm +++ b/gnu/packages/erlang.scm @@ -792,6 +792,13 @@ (define-public erlang-lfe #:phases #~(modify-phases %standard-phases (delete 'configure) + ;; By default LFE compiler itself is not deterministic. We fix it + ;; here. For more details see: https://github.com/lfe/lfe/issues/492. + (add-after 'unpack 'make-deterministic + (lambda _ + (substitute* "src/lfe_env.erl" + (("maps:fold\\(F, A, D\\)") + "lists:sort(maps:fold(F, A, D))")))) ;; The following is inspired by rebar-build-system.scm (add-before 'check 'erlang-depends (lambda* (#:key inputs #:allow-other-keys) base-commit: 4b3a553ca5ba5ac190739309eb5f7aa8170cf2a8 -- 2.45.2