From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-tv/v4l-utils/
Date: Sun, 27 Dec 2020 21:43:03 +0000 (UTC) [thread overview]
Message-ID: <1609105370.9a884d15380afe0a0b01a9de8c5538dc44bf8f7a.chewi@gentoo> (raw)
commit: 9a884d15380afe0a0b01a9de8c5538dc44bf8f7a
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 27 21:42:08 2020 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun Dec 27 21:42:50 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a884d15
media-tv/v4l-utils: Ensure clang has the BPF target with pkg_pretend
The dependencies can only ensure that at least one clang on the system
has the BPF target and it may not be the one that actually gets used
for the build. Generally the latest version will have precedence in
the PATH but this fix also checks for overrides.
Bug: https://bugs.gentoo.org/692072
Package-Manager: Portage-3.0.12, Repoman-3.0.1
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
media-tv/v4l-utils/v4l-utils-1.20.0.ebuild | 8 ++++++++
1 file changed, 8 insertions(+)
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 01f52bb0555..a7d6c2130f1 100644
--- a/media-tv/v4l-utils/v4l-utils-1.20.0.ebuild
+++ b/media-tv/v4l-utils/v4l-utils-1.20.0.ebuild
@@ -46,6 +46,14 @@ PATCHES=(
# Not really prebuilt but BPF objects make our QA checks go crazy.
QA_PREBUILT="*/rc_keymaps/protocols/*.o"
+pkg_pretend() {
+ if use bpf; then
+ local clang=${ac_cv_prog_CLANG:-${CLANG:-clang}}
+ ${clang} -target bpf -print-supported-cpus &>/dev/null ||
+ die "${clang} does not support the BPF target. Please check LLVM_TARGETS."
+ fi
+}
+
src_prepare() {
default
eautoreconf
next reply other threads:[~2020-12-27 21:43 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-27 21:43 James Le Cuirot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-07-26 19:19 [gentoo-commits] repo/gentoo:master commit in: media-tv/v4l-utils/ Sam James
2024-07-26 19:19 Sam James
2024-07-26 19:19 Sam James
2024-07-26 19:19 Sam James
2024-07-26 19:19 Sam James
2023-12-19 23:09 James Le Cuirot
2023-03-18 23:38 James Le Cuirot
2022-08-25 21:53 James Le Cuirot
2022-05-29 10:34 James Le Cuirot
2022-04-02 13:55 James Le Cuirot
2022-04-02 12:04 Arthur Zamarin
2022-04-01 6:53 Arthur Zamarin
2022-03-31 19:37 Arthur Zamarin
2022-03-30 11:48 Agostino Sarubbo
2022-03-30 11:47 Agostino Sarubbo
2022-03-30 11:47 Agostino Sarubbo
2022-03-30 11:46 Agostino Sarubbo
2021-10-24 20:22 James Le Cuirot
2021-10-24 20:22 James Le Cuirot
2021-08-01 18:27 Sam James
2021-04-13 0:26 Sam James
2021-01-17 10:29 James Le Cuirot
2021-01-05 20:51 Sam James
2021-01-03 11:51 Sergei Trofimovich
2020-12-29 23:15 Sam James
2020-12-29 21:47 James Le Cuirot
2020-12-27 22:58 Sam James
2020-09-05 13:04 James Le Cuirot
2020-08-23 16:42 James Le Cuirot
2020-05-28 22:24 James Le Cuirot
2020-03-20 21:53 Matt Turner
2020-03-13 23:16 Andrey Utkin
2020-03-11 23:50 Andrey Utkin
2019-08-19 11:37 Agostino Sarubbo
2019-08-14 17:59 Aaron Bauman
2019-08-14 8:53 Agostino Sarubbo
2019-08-12 18:22 Andrey Utkin
2019-08-12 18:22 Andrey Utkin
2019-06-06 7:14 Agostino Sarubbo
2019-05-13 17:25 Andrey Utkin
2019-04-09 14:36 Mikle Kolyada
2019-03-11 18:05 Andrey Utkin
2019-03-04 17:21 Alexis Ballier
2019-02-27 16:37 Alexis Ballier
2019-02-27 16:30 Alexis Ballier
2019-02-27 16:30 Alexis Ballier
2019-02-27 16:30 Alexis Ballier
2019-02-26 18:36 Alexis Ballier
2018-01-18 15:04 Mikle Kolyada
2018-01-18 15:03 Mikle Kolyada
2017-12-16 10:31 Tobias Klausmann
2017-11-27 19:46 Sergei Trofimovich
2017-11-23 11:54 Tobias Klausmann
2017-05-30 10:54 Alexis Ballier
2017-04-25 12:58 Alexis Ballier
2016-09-28 18:30 Michael Palimaka
2016-06-18 0:57 Alexandre Rostovtsev
2016-06-18 0:57 Alexandre Rostovtsev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1609105370.9a884d15380afe0a0b01a9de8c5538dc44bf8f7a.chewi@gentoo \
--to=chewi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox