From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id UDbhFNPRYGoNbCUAWB0awg (envelope-from ) for ; Wed, 22 Jul 2026 10:21:07 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=REcko8/Q; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 38DAB1E099; Wed, 22 Jul 2026 10:21:07 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id A70911E099 for ; Wed, 22 Jul 2026 10:21:05 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E3B684BA23C5 for ; Wed, 22 Jul 2026 14:21:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E3B684BA23C5 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=REcko8/Q Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by sourceware.org (Postfix) with ESMTPS id 9CD064BA543C for ; Wed, 22 Jul 2026 14:20:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9CD064BA543C Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9CD064BA543C Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::22b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784730040; cv=none; b=ocH1DUlMm/4E8NiitA7T0g94F81KQcbn9sr40jvC2y/JBIJ7pRps7wWY5R1jfNnzeDO24qMDq1TOipxDlqR87DRhB+KU3m2UsXwg3cnjaGVYDOdVGAUGdQGoyPHmDA477JpKV5i82QO1TsEass39Nteiospnhj/A3aloRe+iPhc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784730040; c=relaxed/simple; bh=5as1hnkMNMZmZZ8Y8NPhL8gmw07gQLGCtDbSnV2jjAg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=gvfRYIMVEYMnrxIiqcKFInFr7nkWZ0QHjdqOELZEah0ZTiKRG+F1pMww8TLR6wTvPbO1p2vpg/B8AMvhtLy7Whp96dIv1x7n6u0EZX2aKFNevvMpxYeuE7SXWvBl99NUt7fXqW79aj3pCqDWsQMt0HCH+96K09ue8/a5j2xujM0= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=REcko8/Q DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CD064BA543C Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-495c49f8eccso6048259b6e.3 for ; Wed, 22 Jul 2026 07:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1784730040; x=1785334840; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=QSEjxe0v/7b8zQgNHKEFwp13BKgBTuXgDSylZoDBGF4=; b=REcko8/QpiCsjtdAl6iPolU13WC2eBYtguTaKnHQW7vB22Ut1adUO9e4lH6vfNdc04 2riC3x5E6C1UFkfgBZ4ym1MqsWg7gWeRAS+HJonGqc2HudcWZdRLiRfc1sp7Go58Hcg8 8oDajuqSehLCHsnXHJYNrdFmgPsFsya7Vxg+nxj2VqlWnhncRULLkt7gkirKHFwM3MZW D+h82FbZ7QXPba/jFc7K4HK7WEtmX9FpJB7QJ6p1V3Myj4IayxlWpvID9t4CZzor7Vh8 aOyBcYf76ruYu+9kv5eUFF+pkEaKKRqj1LzjQAjKXHV3sdQYFYxRiR1h+oOYqvCEoDlF MSSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784730040; x=1785334840; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=QSEjxe0v/7b8zQgNHKEFwp13BKgBTuXgDSylZoDBGF4=; b=qQn+yKEP/5KkFi/EUkerej2K3LinTW7A00oDDmltAWOFAH7N3wjX9BHWyHwnq5fQ09 GJny6lzME1IszrdCwPgC41bsmU4CJLrWKJq5h5GiiUg63f0eAN3zYqAEwMW0wLIpNRKu pj/Rxh7GK9YoiyUvA2J4nr0LKLEa52MPH689AfCjf0sSrW1DCoqC9srE75JJoyjG75Tv NHGY8xVzqdbhv6hndi7w7O0y9OcM9Vftn2IWzwBA/LmtJLE+KxvB/ysnzYC7q5c+1YuH 2u4fYNDj6im3t5LVNihQoJhIwcPGB90aYktoOksBJHwpznTPB0sHpIfVGxw1kwruH4ua CUIQ== X-Gm-Message-State: AOJu0Yw20LNAbbN4RUfZTXbkqnKCn1tqddubdvjKPUHdLNm6jteIZiuL ZCZ+UiUBxxLj13r6WtlNjDuRbJ9qTlJ7SgefdAD8yAXgzG7E93A48ZbTt+6voRTyjCdyQnpQonF gP18= X-Gm-Gg: AR+sD136CED3qVwUcKT7WTT2VrjEc+0lAi1z+hlZi678B03iojzbz9b5DWinBBF/MYJ VGg3FV6TUgrLtKy7EXU850IO3ca3c3GGsZGszSOov98z7LKxBV2PFuXxlYV8IGViZr9doVUIgpj WMZE43wKeptbN+Ch/aiwuMJ0TnEVUzssd+zA+ZL6FVyvqR0p0PBoVzTvdwPbatNQ9+qGMmY0JCq C00+Ja1BQFreG7D4E2Mt9Xf6kYkZneQ1VDr/oYjVAJvgQWRPS6qvHtEU0OhE0ehMGzPUUNbrBlv 5/gNoLy0LMMHQGpT+aUX2Qxo4dZu8kqsttnQSFlBZ5xAMeytS0q+pcmIE8bISnEdM5AZ9uyG6mY M+W5rEZjgpMNswmK9F+A7/AnUokq2H6m5JvpiAVWkYtXqYg8/+UgDqCo/SPq2MrZTg2R9Ls4O41 +BkiyEBetXOm6n/LFhkc/dMw== X-Received: by 2002:a05:6808:5188:b0:4a4:98a:1590 with SMTP id 5614622812f47-4a4d052f50dmr12104932b6e.28.1784730039839; Wed, 22 Jul 2026 07:20:39 -0700 (PDT) Received: from bapiya (75-166-225-82.hlrn.qwest.net. [75.166.225.82]) by smtp.gmail.com with ESMTPSA id 5614622812f47-4ab0eeb073dsm1162494b6e.16.2026.07.22.07.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2026 07:20:39 -0700 (PDT) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Export SHELL before invoking lineno.sh Date: Wed, 22 Jul 2026 08:20:36 -0600 Message-ID: <20260722142036.3276670-1-tromey@adacore.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org A user reported that building the sim failed, because their shell was not sh-compatible. In particular, lineno.sh uses $SHELL to invoke another script. This patch arranges for SHELL to be exported when invoking lineno.sh, ensuring that the correct shell is used. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34407 --- sim/Makefile.in | 2 +- sim/common/local.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/Makefile.in b/sim/Makefile.in index 5438d778a3f..1f9bbfec03f 100644 --- a/sim/Makefile.in +++ b/sim/Makefile.in @@ -1994,7 +1994,7 @@ CGEN_GEN_CPU_DESC = \ $(CGEN_ARCHFILE) ignored $$opcfile CGEN_GEN_MLOOP = \ - $(SHELL) $(srccom)/lineno.sh \ + SHELL=$(SHELL) $(SHELL) $(srccom)/lineno.sh \ $(srccom)/genmloop.sh \ $@.lineno.sh \ -shell $(SHELL) -awk $(AWK) -lineno $(srccom)/lineno.sh \ diff --git a/sim/common/local.mk b/sim/common/local.mk index 01712aee98d..f765cf57fea 100644 --- a/sim/common/local.mk +++ b/sim/common/local.mk @@ -234,7 +234,7 @@ CGEN_GEN_CPU_DESC = \ $(CGEN_ARCHFILE) ignored $$opcfile CGEN_GEN_MLOOP = \ - $(SHELL) $(srccom)/lineno.sh \ + SHELL=$(SHELL) $(SHELL) $(srccom)/lineno.sh \ $(srccom)/genmloop.sh \ $@.lineno.sh \ -shell $(SHELL) -awk $(AWK) -lineno $(srccom)/lineno.sh \ base-commit: 293f50b84a9664213fde309e2dc51a49d719029c -- 2.55.0