diff options
author | YiFei Zhu <zhuyifei@google.com> | 2023-01-17 23:21:34 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-01-18 00:46:01 +0000 |
commit | 0ff398c8011c20cc94fc5a5cd2dcb0be859de9fa (patch) | |
tree | ca5bba51da10159c29f9b219f23839a9e2f8bcce /dev-util/bpftool | |
parent | x11-misc/arandr: 0.1.11 with Python 3.11 fixes (diff) | |
download | gentoo-0ff398c8011c20cc94fc5a5cd2dcb0be859de9fa.tar.gz gentoo-0ff398c8011c20cc94fc5a5cd2dcb0be859de9fa.tar.bz2 gentoo-0ff398c8011c20cc94fc5a5cd2dcb0be859de9fa.zip |
dev-util/bpftool: Fix install in prefix
Without this patch install would cause:
* QA Notice: the following files are outside of the prefix:
* /usr
* /usr/share
* /usr/share/bash-completion
* /usr/share/bash-completion/completions
* /usr/share/bash-completion/completions/bpftool
* ERROR: dev-util/bpftool-6.0.12::gentoo failed:
* Aborting due to QA concerns: there are files installed outside the prefix
The Makefile defines
bash_compdir ?= /usr/share/bash-completion/completions
and the install command is
$(Q)$(INSTALL) -m 0755 -d $(DESTDIR)$(bash_compdir)
We can just do a simple override with $(get_bashcompdir) from
bash-completion-r1.eclass.
Signed-off-by: YiFei Zhu <zhuyifei@google.com>
Closes: https://github.com/gentoo/gentoo/pull/29151
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/bpftool')
-rw-r--r-- | dev-util/bpftool/bpftool-5.19.12.ebuild | 3 | ||||
-rw-r--r-- | dev-util/bpftool/bpftool-6.0.12.ebuild | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/dev-util/bpftool/bpftool-5.19.12.ebuild b/dev-util/bpftool/bpftool-5.19.12.ebuild index 71df5aaddcfa..fa8315db60c6 100644 --- a/dev-util/bpftool/bpftool-5.19.12.ebuild +++ b/dev-util/bpftool/bpftool-5.19.12.ebuild @@ -4,7 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..10} ) -inherit estack linux-info optfeature python-any-r1 toolchain-funcs +inherit estack linux-info optfeature python-any-r1 bash-completion-r1 toolchain-funcs MY_PV="${PV/_/-}" MY_PV="${MY_PV/-pre/-git}" @@ -107,6 +107,7 @@ bpftool_make() { HOSTCC="$(tc-getBUILD_CC)" HOSTLD="$(tc-getBUILD_LD)" \ EXTRA_CFLAGS="${CFLAGS}" ARCH="${arch}" BPFTOOL_VERSION="${MY_PV}" \ prefix="${EPREFIX}"/usr \ + bash_compdir="$(get_bashcompdir)" \ feature-libcap="$(usex caps 1 0)" \ "$@" } diff --git a/dev-util/bpftool/bpftool-6.0.12.ebuild b/dev-util/bpftool/bpftool-6.0.12.ebuild index 15e5be3ce116..4f68a43259e9 100644 --- a/dev-util/bpftool/bpftool-6.0.12.ebuild +++ b/dev-util/bpftool/bpftool-6.0.12.ebuild @@ -4,7 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..10} ) -inherit estack linux-info optfeature python-any-r1 toolchain-funcs +inherit estack linux-info optfeature python-any-r1 bash-completion-r1 toolchain-funcs MY_PV="${PV/_/-}" MY_PV="${MY_PV/-pre/-git}" @@ -103,6 +103,7 @@ bpftool_make() { HOSTCC="$(tc-getBUILD_CC)" HOSTLD="$(tc-getBUILD_LD)" \ EXTRA_CFLAGS="${CFLAGS}" ARCH="${arch}" BPFTOOL_VERSION="${MY_PV}" \ prefix="${EPREFIX}"/usr \ + bash_compdir="$(get_bashcompdir)" \ feature-libcap="$(usex caps 1 0)" \ "$@" } |