From fa56e1b9feede31f2ac6eb32f5824ea02af772d0 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 16 Jun 2025 07:07:24 +0000 Subject: [PATCH] app-shells/bash-completion: Sync with Gentoo It's from Gentoo commit 825fb0a8dd635cc123ceaa1608feb497ad3ab664. --- .../bash-completion-2.16.0-r1.ebuild | 170 ++++++++++++++++++ ...mpletion-2.16.0-libsecret-completion.patch | 68 +++++++ 2 files changed, 238 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/app-shells/bash-completion/bash-completion-2.16.0-r1.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/app-shells/bash-completion/files/bash-completion-2.16.0-libsecret-completion.patch diff --git a/sdk_container/src/third_party/portage-stable/app-shells/bash-completion/bash-completion-2.16.0-r1.ebuild b/sdk_container/src/third_party/portage-stable/app-shells/bash-completion/bash-completion-2.16.0-r1.ebuild new file mode 100644 index 0000000000..71dabfc917 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-shells/bash-completion/bash-completion-2.16.0-r1.ebuild @@ -0,0 +1,170 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +BASHCOMP_P=bashcomp-2.0.3 +PYTHON_COMPAT=( python3_{10..13} ) + +inherit autotools python-any-r1 + +DESCRIPTION="Programmable Completion for bash" +HOMEPAGE="https://github.com/scop/bash-completion" +SRC_URI=" + https://github.com/scop/bash-completion/releases/download/${PV}/${P}.tar.xz + eselect? ( + https://github.com/projg2/bashcomp2/releases/download/v${BASHCOMP_P#*-}/${BASHCOMP_P}.tar.gz + ) +" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="+eselect test" +RESTRICT="!test? ( test )" + +# completion collision with net-fs/mc +RDEPEND=" + >=app-shells/bash-4.3_p30-r1:0 + sys-apps/miscfiles + ! +Date: Tue, 21 Jan 2025 23:54:41 +0200 +Subject: [PATCH] refactor(secret-tool): deprecate ours in favor of upstream + +Closes https://github.com/scop/bash-completion/issues/1317 +--- + completions/Makefile.am | 2 +- + completions/{secret-tool => _secret-tool} | 3 +++ + test/fallback/completions/Makefile.am | 1 + + test/fallback/completions/secret-tool | 1 + + 4 files changed, 6 insertions(+), 1 deletion(-) + rename completions/{secret-tool => _secret-tool} (93%) + create mode 120000 test/fallback/completions/secret-tool + +diff --git a/completions/Makefile.am b/completions/Makefile.am +index 899bec5259d..21b6f9e49f0 100644 +--- a/completions/Makefile.am ++++ b/completions/Makefile.am +@@ -398,7 +398,7 @@ cross_platform = 2to3 \ + sbopkg \ + screen \ + scrub \ +- secret-tool \ ++ _secret-tool \ + set \ + sh \ + sha256sum \ +diff --git a/completions/secret-tool b/completions/_secret-tool +similarity index 93% +rename from completions/secret-tool +rename to completions/_secret-tool +index e8aafd81aef..862bfa8c73d 100644 +--- a/completions/secret-tool ++++ b/completions/_secret-tool +@@ -1,5 +1,8 @@ + # bash completion for secret-tool(1) -*- shell-script -*- + ++# Use of this file is deprecated. Upstream completion is available in ++# libsecret >= 0.20.5, use that instead. ++ + _comp_cmd_secret_tool() + { + local cur prev words cword was_split comp_args +diff --git a/test/fallback/completions/Makefile.am b/test/fallback/completions/Makefile.am +index 28358b4e7d6..24e9c9755ff 100644 +--- a/test/fallback/completions/Makefile.am ++++ b/test/fallback/completions/Makefile.am +@@ -46,6 +46,7 @@ EXTRA_DIST = \ + ruff \ + runuser \ + rustup \ ++ secret-tool \ + slackpkg \ + sops \ + stern \ +diff --git a/test/fallback/completions/secret-tool b/test/fallback/completions/secret-tool +new file mode 120000 +index 00000000000..ab0a8361057 +--- /dev/null ++++ b/test/fallback/completions/secret-tool +@@ -0,0 +1 @@ ++../../../completions/_secret-tool +\ No newline at end of file +