From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yJ3MHerH2GDcQAEAgWs5BA (envelope-from ) for ; Sun, 27 Jun 2021 20:48:10 +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 LEB0GerH2GApSAAA1q6Kng (envelope-from ) for ; Sun, 27 Jun 2021 18:48:10 +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 158FB1CC2A for ; Sun, 27 Jun 2021 20:48:10 +0200 (CEST) Received: from localhost ([::1]:38118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxZpA-0007TH-H3 for larch@yhetil.org; Sun, 27 Jun 2021 14:48:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxZp4-0007T9-Jm for guix-patches@gnu.org; Sun, 27 Jun 2021 14:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lxZp4-00063o-CZ for guix-patches@gnu.org; Sun, 27 Jun 2021 14:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lxZp4-0008KP-6C for guix-patches@gnu.org; Sun, 27 Jun 2021 14:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49244] [PATCH] gnu: grub-efi: Only enable the stack protector on x86_64-linux. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Jun 2021 18:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49244 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49244@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162481963331933 (code B ref -1); Sun, 27 Jun 2021 18:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jun 2021 18:47:13 +0000 Received: from localhost ([127.0.0.1]:50392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxZoH-0008Iz-G5 for submit@debbugs.gnu.org; Sun, 27 Jun 2021 14:47:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:53854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxZoF-0008Ir-DW for submit@debbugs.gnu.org; Sun, 27 Jun 2021 14:47:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxZoF-0007Qv-11 for guix-patches@gnu.org; Sun, 27 Jun 2021 14:47:11 -0400 Received: from mira.cbaines.net ([212.71.252.8]:52278) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxZoD-0005YE-Bw for guix-patches@gnu.org; Sun, 27 Jun 2021 14:47:10 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:8ac0:b4c7:f5c8:7caa]) by mira.cbaines.net (Postfix) with ESMTPSA id 8888727BC78 for ; Sun, 27 Jun 2021 19:47:08 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 904f5623 for ; Sun, 27 Jun 2021 18:47:08 +0000 (UTC) From: Christopher Baines Date: Sun, 27 Jun 2021 19:47:08 +0100 Message-Id: <20210627184708.17496-1-mail@cbaines.net> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=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: , 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=1624819690; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=IpH+DZKq5ssfnZen+81mO6PXVY+dzAcjvBpIl3Fp8zQ=; b=amhiGeRUGk92OQsUKHgmTq7bdvCzCxkt+Dm1IIH4+Rm9YeM7sDiq+wCUKIiZEHYYJEJvOm 0kp9Ss4/SG7Bji/yCE6oZJlFmuDxM3ev9IjkNKgEzZDDIhceeGxOSQ6nIrqwvQVi10jKMH 3KDOEaKow6Om7/C83cP7H0Mv752BzNQMjgWNkYcA3U2RBpzdfcyXdudEFARZSr52cX0+1Z QsUdfz5b0b6rrtxFIFz3bpkAu8zrFneHglB7OvP17TvalgchcLKjnyqR7f4sAxuP/pVlWP RoAFLovrW0GO79l20yY5F8+zXN0/VQrNeXGWPiGURlVUGUarg+r3Syo5ZbRjQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624819690; a=rsa-sha256; cv=none; b=esxcrnfEHnDNT8L+hsY79SRZxKQ+t14zLXGHdilZso+ESiQoFzI8m2qjKDiQ1xfKXtyESZ D4gI50vJEu1sfbO3x35hfbPLDRLhg5Ri7RTZLNzyNPRURGNZmTxYmGdmHak6W72cdi0pbL +WxCPhF/PgMS1q0lNr6cW8Wj5FFs1hBCPqX3dPAFOQHIsECF0gITKTosyxIIu1Ttdn78b6 o7KLIlB+kyksxtEH6KTYItzvE0uus2+TOfy3EOD0M4rMb6fkitv9RmDrmmssqrx7onoxK9 QHQ14O4jrT9FLxvV6Z0atCR6jYV6kSvStmHA5JqvYlUAxT+XYyccV+FkmdvMCA== 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.07 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: 158FB1CC2A X-Spam-Score: 4.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: RmUhwcmtgk5Y Follow up to 018f95094153660e3041ec160718f0bda286a3dc, as gcc on aarch64-linux doesn't seem to support -mstack-protector-guard=global. * gnu/packages/bootloaders.scm (grub-efi)[arguments]: Only add "--enable-stack-protector" to #:configure-flags when system is x86_64-linux. --- gnu/packages/bootloaders.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm index e83f21ea63..1ff0348ac7 100644 --- a/gnu/packages/bootloaders.scm +++ b/gnu/packages/bootloaders.scm @@ -303,7 +303,10 @@ menu to select one of the installed operating systems.") ((#:tests? _ #f) #f) ((#:configure-flags flags ''()) `(cons* "--with-platform=efi" - "--enable-stack-protector" ; EFI-only for now + ,@(if (string=? (%current-system) + "x86_64-linux") + '("--enable-stack-protector") ; EFI-only for now + '()) ,flags)) ((#:phases phases) `(modify-phases ,phases -- 2.32.0