commit: f88dc1707b301affc840120fba5fdc59b665e00a Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> AuthorDate: Sat Mar 9 18:02:43 2024 +0000 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> CommitDate: Sat Mar 9 18:02:59 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f88dc170
net-firewall/ipset: Fix bash-completion script Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> net-firewall/ipset/files/ipset-bash-completion.patch | 11 +++++++++++ net-firewall/ipset/ipset-7.21.ebuild | 2 ++ 2 files changed, 13 insertions(+) diff --git a/net-firewall/ipset/files/ipset-bash-completion.patch b/net-firewall/ipset/files/ipset-bash-completion.patch new file mode 100644 index 000000000000..1c2b6e62b822 --- /dev/null +++ b/net-firewall/ipset/files/ipset-bash-completion.patch @@ -0,0 +1,11 @@ +--- a/utils/ipset_bash_completion/ipset 2024-03-09 12:53:38.756882196 -0500 ++++ b/utils/ipset_bash_completion/ipset 2024-03-09 12:54:32.838917743 -0500 +@@ -1005,7 +1005,7 @@ if ((got_bashcompl)); then + if ! declare -F _ipset_known_hosts &>/dev/null; then + eval '_ipset_known_hosts() { '$(declare -f _known_hosts_real | \ + grep -v __ltrim_colon_completions | \ +- grep -Ev "^_known_hosts_real.*$" | grep -Ev "^(\{|\})")'; }' ++ grep -Ev "^_known_hosts_real.*$" | grep -Ev "^(\{|\})")' }' + fi + fi + diff --git a/net-firewall/ipset/ipset-7.21.ebuild b/net-firewall/ipset/ipset-7.21.ebuild index 433d477210f0..6f112b1ac2d2 100644 --- a/net-firewall/ipset/ipset-7.21.ebuild +++ b/net-firewall/ipset/ipset-7.21.ebuild @@ -21,6 +21,8 @@ RDEPEND=" DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig" +PATCHES=( "${FILESDIR}/${PN}-bash-completion.patch" ) + DOCS=( ChangeLog INSTALL README UPGRADE ) # configurable from outside, e.g. /etc/portage/make.conf