From 1059e544071285781e6366ebe3e9c7eaea1e6d29 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Tue, 23 Aug 2022 16:49:02 +0200 Subject: [PATCH] eclass/bash-completion-r1: Sync with Gentoo It's from Gentoo commit 424acdc15be08f7c2b13c0d1bb8c31f55d26655d. --- .../eclass/bash-completion-r1.eclass | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/bash-completion-r1.eclass b/sdk_container/src/third_party/portage-stable/eclass/bash-completion-r1.eclass index 01899635de..df1a2a54d3 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/bash-completion-r1.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/bash-completion-r1.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: bash-completion-r1.eclass @@ -28,12 +28,10 @@ _BASH_COMPLETION_R1_ECLASS=1 inherit toolchain-funcs -# Flatcar: we still have some packages that use old EAPI, revert this -# change when we update those packages. -#case ${EAPI} in -# 5|6|7|8) ;; -# *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; -#esac +case ${EAPI} in + 5|6|7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac # @FUNCTION: _bash-completion-r1_get_bashdir # @INTERNAL @@ -45,11 +43,6 @@ inherit toolchain-funcs _bash-completion-r1_get_bashdir() { debug-print-function ${FUNCNAME} "${@}" - # Flatcar: Take a fix for pkg-config paths from systemd.eclass. - # - # https://github.com/pkgconf/pkgconf/issues/205 - local -x PKG_CONFIG_FDO_SYSROOT_RULES=1 - if $(tc-getPKG_CONFIG) --exists bash-completion &>/dev/null; then local path path=$($(tc-getPKG_CONFIG) --variable="${1}" bash-completion) || die @@ -71,7 +64,7 @@ _bash-completion-r1_get_bashcompdir() { _bash-completion-r1_get_bashdir completionsdir /usr/share/bash-completion/completions } -# @FUNCTION: _bash-completion-r1_get_helpersdir +# @FUNCTION: _bash-completion-r1_get_bashhelpersdir # @INTERNAL # @DESCRIPTION: # Get unprefixed bash-completion helpers directory.