From c34c173a5a0c7f3cdce39c5bce2126d4e8f3cda5 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 27 May 2024 15:17:43 -0500 Subject: user/bash-completion: Workaround for GCC 13 Non-x86 arches don't have -march= or -mtune=generic. This has been reported upstream. --- user/bash-completion/gcc-x86-tests.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 user/bash-completion/gcc-x86-tests.patch (limited to 'user/bash-completion/gcc-x86-tests.patch') diff --git a/user/bash-completion/gcc-x86-tests.patch b/user/bash-completion/gcc-x86-tests.patch new file mode 100644 index 000000000..49d7838b0 --- /dev/null +++ b/user/bash-completion/gcc-x86-tests.patch @@ -0,0 +1,22 @@ +Now that we have a GCC that supports completions, we have a few test failures. + +* -march=native is an x86-specific flag. There is no -march on Power. + +* -mtune=generic is x86 and Arm specific; Power's equivalent is powerpc. + +Upstream-URL: https://github.com/scop/bash-completion/issues/1201 + +--- bash-completion-2.11/test/t/test_gcc.py.old 2020-07-25 06:49:49.000000000 -0500 ++++ bash-completion-2.11/test/t/test_gcc.py 2024-05-26 21:16:26.236036406 -0500 +@@ -56,9 +56,9 @@ + assert completion == "fam10" + + @pytest.mark.complete("gcc -march=") +- def test_march_native(self, completion, gcc_with_completion): ++ def test_march_native(self, completion, gcc_with_completion, gcc_x86): + assert "native" in completion + + @pytest.mark.complete("gcc -mtune=") +- def test_mtune_generic(self, completion, gcc_with_completion): ++ def test_mtune_generic(self, completion, gcc_with_completion, gcc_x86): + assert "generic" in completion -- cgit v1.2.3-70-g09d2