Debian Patches

Status for bash-completion/1:2.16.0-4

Patch Description Author Forwarded Bugs Origin Last update
04-xine_add_more_formats.patch Add oga and ogx formats
diff --git a/bash_completion b/bash_completion
index 59c273ca..f6830e7a 100644
j^ (j) <https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/311525/comments/2> yes debian upstream
06-xpdf_support_compressed_pdf.patch xpdf in Debian also supports compressed PDFs
diff --git a/bash_completion b/bash_completion
index f6830e7a..82a349fd 100644
Alfredo Finelli <0x4146@gmail.com> not-needed debian
18-aptitude-showsrc-source completions/aptitude: add showsrc source
completions/aptitude: add showsrc source

Add missing sub-commands.


diff --git a/completions/aptitude b/completions/aptitude
index 827395a0..54a90693 100644
Heinrich Schuchardt <heinrich.schuchardt@canonical.com> yes upstream https://salsa.debian.org/debian/bash-completion/-/merge_requests/5
19-backport-fix-for-parallel-test.patch Add missing dependency on fixtures to help parallel testing
When running the test suite with xdist and 'pytest -n <jobs>', several
tests fail. This happens because, in these tests, the definition of the
tested command, usually in a fixture method called 'functions' might
happen only after the execution of the tests themselves, i.e. in the
methods whose names start with 'test_'.

This patch adds the missing dependency on these test-command-defining
fixtures, so that they are executed before the tests themselves.

Steps to reproduce:

1. Make sure pytest-xdist is installed. On Debian systems this can be
verified with the following command:

dpkg --list python3-pytest-xdist

2. Build and install bash-completion locally, for example with the
following commands:

autoreconf -f -i
./configure --prefix=$PWD/install/
make install

3. Run the test suite with a few parallel jobs, such as with:

export MYPATH=$PWD/install/share/bash-completion/bash_completion
BASH_COMPLETION_TEST_BASH_COMPLETION=$MYPATH \
pytest \
-n 8 \
test/t/unit/test_unit_count_args.py \
test/t/unit/test_unit_dequote.py \
test/t/unit/test_unit_get_first_arg.py \
test/t/unit/test_unit_quote.py
unset MYPATH

Before this patch, these tests fail with messages similar to:

FAILED test/t/unit/test_unit_quote.py::TestUnitQuote::test_3 -
AssertionError: Error running "__tester " a "": exit status=127, output="

After this patch, all these tests, which previously failed, pass.
Gabriel F. T. Gomes <gabriel@inconstante.net.br> yes upstream
20-disable-autopkgtest-bts.patch Ignore test suit failure for out-of-sync completion
diff --git a/test/t/test_bts.py b/test/t/test_bts.py
index 53dd62fc..a8f0c490 100644
Gabriel F. T. Gomes <gabriel@inconstante.net.br> no
21-workaround-parallell-test-bug.patch Workaround for function definition in command offset test
If the first item in test2 is not executed, for example with the
following diff:

@@ -55,7 +55,6 @@ class TestUnitCommandOffset:
@pytest.mark.parametrize(
"cmd,expected_completion",
[
- ("cmd2", wordlist),
("cmd3", wordlist),
("cmd4", []),
("cmd5", ["0"]),

test_cmd_quoted fails with the following error message:

def test_cmd_quoted(self, bash, functions):
> assert assert_complete(bash, "meta 'cmd2' ") == self.wordlist
E AssertionError: assert <CompletionResult []> == ['bar', 'foo']
E
E Full diff:
E + <CompletionResult []>
E - [
E - 'bar',
E - 'foo',
E - ]

This means that test_cmd_quoted depends on the previous execution of
test2. When executed serially, this issue does not manifest itself.
However, with parallel execution it might, dependending on the
scheduling of the tests.

This patch adds a workaround to test_cmd_quoted, so that it executes the
required subcommand of test2 prior to its own test.
Gabriel F. T. Gomes <gabriel@inconstante.net.br> yes upstream

All known versions for source package 'bash-completion'

Links