eclass/bash-completion-r1: Sync with Gentoo

It's from Gentoo commit ff113c24e6def397ddf4f864e038480b94be33b8.
This commit is contained in:
Krzesimir Nowak 2024-01-31 12:22:55 +01:00
parent 1463ab65c7
commit 6c4f097f61

View File

@ -43,11 +43,6 @@ esac
_bash-completion-r1_get_bashdir() { _bash-completion-r1_get_bashdir() {
debug-print-function ${FUNCNAME} "${@}" 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 if $(tc-getPKG_CONFIG) --exists bash-completion &>/dev/null; then
local path local path
path=$($(tc-getPKG_CONFIG) --variable="${1}" bash-completion) || die path=$($(tc-getPKG_CONFIG) --variable="${1}" bash-completion) || die