From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1588758-garchives=archives.gentoo.org@lists.gentoo.org> 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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BD1E8158451 for <garchives@archives.gentoo.org>; Tue, 9 Jan 2024 01:51:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B4C60E2ABF; Tue, 9 Jan 2024 01:51:24 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9E970E2ABF for <gentoo-commits@lists.gentoo.org>; Tue, 9 Jan 2024 01:51:24 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ABD6F3432A2 for <gentoo-commits@lists.gentoo.org>; Tue, 9 Jan 2024 01:51:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 10F7BAE5 for <gentoo-commits@lists.gentoo.org>; Tue, 9 Jan 2024 01:51:22 +0000 (UTC) From: "Sam James" <sam@gentoo.org> 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" <sam@gentoo.org> Message-ID: <1704764928.407aa28e484a9acaaee7a94fd993498f18253d40.sam@gentoo> Subject: [gentoo-commits] proj/elt-patches:master commit in: patches/color-record/, / X-VCS-Repository: proj/elt-patches X-VCS-Files: eltpatch.in patches/color-record/2.4.6 patches/color-record/2.4.6-alt patches/color-record/2.4.7 X-VCS-Directories: / patches/color-record/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 407aa28e484a9acaaee7a94fd993498f18253d40 X-VCS-Branch: master Date: Tue, 9 Jan 2024 01:51:22 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 38d2983f-5436-44f8-bbd4-42493fae5487 X-Archives-Hash: 992bb1654d3173834dfe6c16230ca111 commit: 407aa28e484a9acaaee7a94fd993498f18253d40 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Jan 9 01:48:48 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Jan 9 01:48:48 2024 +0000 URL: https://gitweb.gentoo.org/proj/elt-patches.git/commit/?id=407aa28e patches: add color-record Allow through -fdiagnostics-color=* and -frecord-gcc-switches. We use the latter for QA checks in Gentoo. Signed-off-by: Sam James <sam <AT> gentoo.org> eltpatch.in | 2 +- patches/color-record/2.4.6 | 27 +++++++++++++++++++++++++++ patches/color-record/2.4.6-alt | 12 ++++++++++++ patches/color-record/2.4.7 | 19 +++++++++++++++++++ 4 files changed, 59 insertions(+), 1 deletion(-) diff --git a/eltpatch.in b/eltpatch.in index 1e6920d..dfa994f 100644 --- a/eltpatch.in +++ b/eltpatch.in @@ -129,7 +129,7 @@ elibtoolize() { local force="false" local elt_patches=" install-sh ltmain portage relink max_cmd_len sed test tmp cross as-needed target-nm ppc64le - specs fsanitize fuse-ld static-flags werror cxx-pthread + specs fsanitize fuse-ld static-flags werror cxx-pthread color-record " for x in "$@" ; do diff --git a/patches/color-record/2.4.6 b/patches/color-record/2.4.6 new file mode 100644 index 0000000..7e8ac0c --- /dev/null +++ b/patches/color-record/2.4.6 @@ -0,0 +1,27 @@ +From 64baaf00e93b990154a53a1345be24c9d9bb25c5 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Tue, 9 Jan 2024 01:40:56 +0000 +Subject: [PATCH] ltmain.in: Pass through -fdiagnostics-color, + -frecord-gcc-switches + +--- + build-aux/ltmain.in | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in +index d5cf07a6..b372dc87 100644 +--- ltmain.in ++++ ltmain.in +@@ -5363,7 +5363,8 @@ func_mode_link () + # -stdlib=* select c++ std lib with clang + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ +- -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*) ++ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ ++ -fdiagnostics-color*|-frecord-gcc-switches) + func_quote_for_eval "$arg" + arg=$func_quote_for_eval_result + func_append compile_command " $arg" +-- +2.43.0 + diff --git a/patches/color-record/2.4.6-alt b/patches/color-record/2.4.6-alt new file mode 100644 index 0000000..c2e62ef --- /dev/null +++ b/patches/color-record/2.4.6-alt @@ -0,0 +1,12 @@ +--- ltmain.sh.bak 2024-01-09 01:44:40.796693940 +0000 ++++ ltmain.sh 2024-01-09 01:45:13.455072670 +0000 +@@ -7304,7 +7304,8 @@ + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ + -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ +- -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus|-Werror|-Werror=*) ++ -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus|-Werror|-Werror=*| \ ++ -fdiagnostics-color*|-frecord-gcc-switches) + func_quote_for_eval "$arg" + arg=$func_quote_for_eval_result + func_append compile_command " $arg" diff --git a/patches/color-record/2.4.7 b/patches/color-record/2.4.7 new file mode 100644 index 0000000..54e0478 --- /dev/null +++ b/patches/color-record/2.4.7 @@ -0,0 +1,19 @@ +--- ltmain.in ++++ ltmain.in +@@ -5405,6 +5405,8 @@ func_mode_link () + # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization + # -specs=* GCC specs files + # -stdlib=* select c++ std lib with clang ++ # -fdiagnostics-color* simply affects output ++ # -frecord-gcc-switches used to verify flags were respected + # -fsanitize=* Clang/GCC memory and address sanitizer + # -fuse-ld=* Linker select flags for GCC + # -Wa,* Pass flags directly to the assembler +@@ -5412,6 +5414,7 @@ func_mode_link () + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ + -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ ++ -fdiagnostics-color*|-frecord-gcc-switches| \ + -specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*|-Werror|-Werror=*) + func_quote_arg pretty "$arg" + arg=$func_quote_arg_result