commit: 9eca9891419d58dde8eb284ed60a6dd71278e08f Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Sun Jan 17 10:27:16 2021 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Sun Jan 17 10:27:16 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9eca9891
media-tv/v4l-utils: Only check Clang in pkg_pretend when installed I forgot that pkg_pretend() fires before dependencies are installed. We therefore need to check again in pkg_setup(). Bug: https://bugs.gentoo.org/763654 Package-Manager: Portage-3.0.13, Repoman-3.0.1 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> media-tv/v4l-utils/v4l-utils-1.20.0.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/media-tv/v4l-utils/v4l-utils-1.20.0.ebuild b/media-tv/v4l-utils/v4l-utils-1.20.0.ebuild index a200a8d31f7..38e272fbe76 100644 --- a/media-tv/v4l-utils/v4l-utils-1.20.0.ebuild +++ b/media-tv/v4l-utils/v4l-utils-1.20.0.ebuild @@ -46,7 +46,7 @@ PATCHES=( # Not really prebuilt but BPF objects make our QA checks go crazy. QA_PREBUILT="*/rc_keymaps/protocols/*.o" -pkg_pretend() { +check_llvm() { if [[ ${MERGE_TYPE} != binary ]] && use bpf; then local clang=${ac_cv_prog_CLANG:-${CLANG:-clang}} ${clang} -target bpf -print-supported-cpus &>/dev/null || @@ -54,6 +54,14 @@ pkg_pretend() { fi } +pkg_pretend() { + has_version -b sys-devel/clang && check_llvm +} + +pkg_setup() { + check_llvm +} + src_prepare() { default eautoreconf
