From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 93780158232 for ; Tue, 10 Dec 2024 05:28:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D43C0E0BF1; Tue, 10 Dec 2024 05:28:38 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4D89DE0BF1 for ; Tue, 10 Dec 2024 05:28:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8AAED3430E6 for ; Tue, 10 Dec 2024 05:28:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 224F4AED for ; Tue, 10 Dec 2024 05:28:36 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1733808513.8b7a28b5604dc83e14f114c97cc465d54c344e75.sam@gentoo> Subject: [gentoo-commits] proj/gcc-patches:master commit in: 14.2.0/gentoo/ X-VCS-Repository: proj/gcc-patches X-VCS-Files: 14.2.0/gentoo/70_all_PR117854-config-nvptx-fix-bashisms-with-gen-copyright.sh-use.patch 14.2.0/gentoo/README.history X-VCS-Directories: 14.2.0/gentoo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 8b7a28b5604dc83e14f114c97cc465d54c344e75 X-VCS-Branch: master Date: Tue, 10 Dec 2024 05:28:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 59a96372-bdab-4f1e-b00b-0f977752d90d X-Archives-Hash: cef1d8ad2379a1808a093b74d5b17f6b commit: 8b7a28b5604dc83e14f114c97cc465d54c344e75 Author: Sam James gentoo org> AuthorDate: Tue Dec 10 05:27:58 2024 +0000 Commit: Sam James gentoo org> CommitDate: Tue Dec 10 05:28:33 2024 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=8b7a28b5 14.2.0: add bashisms patch for nvptx too, cut patchset 6 Bug: https://bugs.gentoo.org/945296 Signed-off-by: Sam James gentoo.org> ...tx-fix-bashisms-with-gen-copyright.sh-use.patch | 71 ++++++++++++++++++++++ 14.2.0/gentoo/README.history | 3 +- 2 files changed, 73 insertions(+), 1 deletion(-) diff --git a/14.2.0/gentoo/70_all_PR117854-config-nvptx-fix-bashisms-with-gen-copyright.sh-use.patch b/14.2.0/gentoo/70_all_PR117854-config-nvptx-fix-bashisms-with-gen-copyright.sh-use.patch new file mode 100644 index 0000000..4221912 --- /dev/null +++ b/14.2.0/gentoo/70_all_PR117854-config-nvptx-fix-bashisms-with-gen-copyright.sh-use.patch @@ -0,0 +1,71 @@ +From 0585c7327d000e95a1297e7c0acfea48993c19c8 Mon Sep 17 00:00:00 2001 +Message-ID: <0585c7327d000e95a1297e7c0acfea48993c19c8.1733808440.git.sam@gentoo.org> +From: Sam James +Date: Fri, 6 Dec 2024 09:11:11 +0000 +Subject: [PATCH] config: nvptx: fix bashisms with gen-copyright.sh use + +Providing parameters to `.` when sourcing is a bashism and not supported +by POSIX shell which causes a build failure when compiling a toolchain +for nvptx-none with dash as /bin/sh. + +gen-copyright.sh takes a parameter for the format of copyright notice +required. Switch that to using an environment variable `NVPTX_GEN_COPYRIGHT`, +although this could be changed to a function if desired (just more churn +in gen-copyright.sh then). + +gcc/ChangeLog: + PR target/117854 + + * config/nvptx/gen-copyright.sh: Read NVPTX_GEN_COPYRIGHT envvar. + * config/nvptx/gen-h.sh: Set NVPTX_GEN_COPYRIGHT. + * config/nvptx/gen-opt.sh: Ditto. +--- + gcc/config/nvptx/gen-copyright.sh | 2 +- + gcc/config/nvptx/gen-h.sh | 2 +- + gcc/config/nvptx/gen-opt.sh | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/gcc/config/nvptx/gen-copyright.sh b/gcc/config/nvptx/gen-copyright.sh +index d0a86acb832c..b140de0eb76d 100644 +--- a/gcc/config/nvptx/gen-copyright.sh ++++ b/gcc/config/nvptx/gen-copyright.sh +@@ -18,7 +18,7 @@ + # along with GCC; see the file COPYING3. If not see + # . + +-style="$1" ++style="${1:-${NVPTX_GEN_COPYRIGHT}}" + case $style in + opt) + ;; +diff --git a/gcc/config/nvptx/gen-h.sh b/gcc/config/nvptx/gen-h.sh +index ea75e127cdeb..beafd5a9d2c4 100644 +--- a/gcc/config/nvptx/gen-h.sh ++++ b/gcc/config/nvptx/gen-h.sh +@@ -32,7 +32,7 @@ EOF + # Separator. + echo + +-. $gen_copyright_sh c ++NVPTX_GEN_COPYRIGHT=c . $gen_copyright_sh + + # Separator. + echo +diff --git a/gcc/config/nvptx/gen-opt.sh b/gcc/config/nvptx/gen-opt.sh +index 3f7838251d2d..875c51ed8df3 100644 +--- a/gcc/config/nvptx/gen-opt.sh ++++ b/gcc/config/nvptx/gen-opt.sh +@@ -36,7 +36,7 @@ EOF + # Separator. + echo + +-. $gen_copyright_sh opt ++NVPTX_GEN_COPYRIGHT=opt . $gen_copyright_sh + + # Separator. + echo + +base-commit: 3161e4c2da91652c9a28e79cbf74dfee2201095f +-- +2.47.1 + diff --git a/14.2.0/gentoo/README.history b/14.2.0/gentoo/README.history index fc47e5b..6dcd1b4 100644 --- a/14.2.0/gentoo/README.history +++ b/14.2.0/gentoo/README.history @@ -1,9 +1,10 @@ -6 ???? +6 10 Dec 2024 U 04_all_nossp-on-nostdlib.patch U 15_all_DEF_GENTOO_GLIBCXX_ASSERTIONS.patch U 24_all_DEF_GENTOO_SCP-fstack-clash-protection.patch U 26_all_enable-cet.patch + + 70_all_PR117854-config-nvptx-fix-bashisms-with-gen-copyright.sh-use.patch 5 1 Dec 2024