From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8BVABS1WbGAW5gAAgWs5BA (envelope-from ) for ; Tue, 06 Apr 2021 14:38:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YIO+OixWbGDyTgAA1q6Kng (envelope-from ) for ; Tue, 06 Apr 2021 12:38:04 +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 B6F571D00C for ; Tue, 6 Apr 2021 14:38:04 +0200 (CEST) Received: from localhost ([::1]:57088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTky3-00087s-St for larch@yhetil.org; Tue, 06 Apr 2021 08:38:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTkv8-0004Rf-Ix for guix-patches@gnu.org; Tue, 06 Apr 2021 08:35:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56156) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTkv8-0001cg-9h for guix-patches@gnu.org; Tue, 06 Apr 2021 08:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lTkv8-0003uL-6f for guix-patches@gnu.org; Tue, 06 Apr 2021 08:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47615] [PATCH 2/9] gnu: guile-3.0: Fix building on powerpc-linux. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 06 Apr 2021 12:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47615 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47615@debbugs.gnu.org, guix-devel@gnu.org Cc: Efraim Flashner Received: via spool by 47615-submit@debbugs.gnu.org id=B47615.161771245314944 (code B ref 47615); Tue, 06 Apr 2021 12:35:02 +0000 Received: (at 47615) by debbugs.gnu.org; 6 Apr 2021 12:34:13 +0000 Received: from localhost ([127.0.0.1]:39466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTkuK-0003sy-Ra for submit@debbugs.gnu.org; Tue, 06 Apr 2021 08:34:13 -0400 Received: from flashner.co.il ([178.62.234.194]:45560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTkuJ-0003sm-9l for 47615@debbugs.gnu.org; Tue, 06 Apr 2021 08:34:11 -0400 Received: from localhost (unknown [31.210.177.71]) by flashner.co.il (Postfix) with ESMTPSA id 231D84024A; Tue, 6 Apr 2021 12:34:05 +0000 (UTC) From: Efraim Flashner Date: Tue, 6 Apr 2021 15:32:46 +0300 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617712684; h=from:from:sender:sender: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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=78SiEJWtGPumyKMxbqKhGCQt2zEmvteqvWB5Zl4tvt0=; b=S5F3sgPaFTxNLgqt+Yf/wtJoN30f7Z4FrBb0kovlQ4VpV1nxf12HBXq/d0BwgYdC+4FCG5 0g8Ncl5QgMRsbO3w6xWiATXveT4ecuENMGfe96dH/Q/JyfTA5YD2r9q1BCj3Ftk4PSd+xa TpoEZyS5ZfZox32kbTpZOuGFJsk+7x0IwbGfrxqkFwll+V1Sr3S7rA0y1QesQ/5GFmz2Q8 lr46H2nzEk6jQHiSC/ty/4TYPOoQSPGEyf8dzvf11ihOuDxSmdUfsCSmEqNQjgJxCV6KCn CqCt0VtrKQbKkfqDWriUGUfKVo8hT7Cg3V91SQ5ofByy61n60RlLZy3eFu8eJA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617712684; a=rsa-sha256; cv=none; b=kUWL16h3if2XTwKny2w0NbQsLSYEcluHngtsRUWrlLCKk1kZCjgth8BPQYQLNS9AoKFDkw TVxhbsE3OrfIS0RmGPPnhijoLyGfSVIVPELwANby1mTky5HNQRW2lW+Vs+S93jjCP545/5 5y5xzVarV/U8TOG1MNrpNSPhx9noXnoZ0X0HyW3K3lnDi7GODyl5hqEx6GxDsBQgRWmydJ Jy7pIZ1KE71EzGDpBLvGhO8HRLQ2R/pap7j9/RjeInxvAWQvK8vMRMAWhdOH7FKLpMPDQn v1TUIF1m3zV4UKu/+tAIenvHEoeXgsN8agiCfIc6KmBAPCLZ0QpPI/KaYcXpGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 4.06 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: B6F571D00C X-Spam-Score: 4.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: MkeVS2n0d7Hx * gnu/packages/guile.scm (guile-3.0)[arguments]: On powerpc add two phases to adjust for 32-bit big-endian systems. --- gnu/packages/guile.scm | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm index f63322794d..dca1b1c16f 100644 --- a/gnu/packages/guile.scm +++ b/gnu/packages/guile.scm @@ -305,7 +305,26 @@ without requiring the source code to be rewritten.") (substitute-keyword-arguments (package-arguments guile-2.2) ((#:configure-flags flags ''()) `(cons "--disable-jit" ,flags))) - (package-arguments guile-2.2))) + (if (string-prefix? "powerpc-" (%current-system)) + (substitute-keyword-arguments (package-arguments guile-2.2) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'unpack 'adjust-bootstrap-flags + (lambda _ + ;; Upstream not yet notified about suggested solution. + ;; See existing bug reports: + ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45214 + ;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977223 + (substitute* "bootstrap/Makefile.in" + (("^GUILE_OPTIMIZATIONS.*") + "GUILE_OPTIMIZATIONS = -O1 -Oresolve-primitives -Ocps\n")) + #t)) + (add-after 'unpack 'remove-failing-tests + (lambda _ + ;; TODO: Discover why this test fails on powerpc-linux + (delete-file "test-suite/standalone/test-out-of-memory") + #t))))) + (package-arguments guile-2.2)))) (native-search-paths (list (search-path-specification (variable "GUILE_LOAD_PATH") -- 2.31.1