diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-05-27 15:17:43 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-08-07 09:57:57 -0500 |
commit | c34c173a5a0c7f3cdce39c5bce2126d4e8f3cda5 (patch) | |
tree | af6c003d1542ec666c52b31710731849a60ad5df /user/bash-completion/gcc-x86-tests.patch | |
parent | 574b6a6d3fbe6adda800d363914ae192b0e9c65d (diff) | |
download | packages-c34c173a5a0c7f3cdce39c5bce2126d4e8f3cda5.tar.gz packages-c34c173a5a0c7f3cdce39c5bce2126d4e8f3cda5.tar.bz2 packages-c34c173a5a0c7f3cdce39c5bce2126d4e8f3cda5.tar.xz packages-c34c173a5a0c7f3cdce39c5bce2126d4e8f3cda5.zip |
user/bash-completion: Workaround for GCC 13
Non-x86 arches don't have -march= or -mtune=generic.
This has been reported upstream.
Diffstat (limited to 'user/bash-completion/gcc-x86-tests.patch')
-rw-r--r-- | user/bash-completion/gcc-x86-tests.patch | 22 |
1 files changed, 22 insertions, 0 deletions
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 |