From: Paolo Bonzini <pbonzini@redhat.com>
To: "Richard Henderson" <richard.henderson@linaro.org>,
"Alex Bennée" <alex.bennee@linaro.org>,
qemu-devel@nongnu.org
Subject: Re: [RFC PATCH] meson.build: don't include libbpf in the common source set
Date: Wed, 6 Oct 2021 00:21:11 +0200 [thread overview]
Message-ID: <2726414d-1952-eb1e-3e74-f12fb0a9a669@redhat.com> (raw)
In-Reply-To: <9eb86a53-de55-a1cc-0497-ed06ad795530@linaro.org>
On 05/10/21 22:25, Richard Henderson wrote:
> On 10/5/21 12:27 PM, Paolo Bonzini wrote:
>> On 05/10/21 20:24, Alex Bennée wrote:
>>> This library is only needed for the softmmu targets and as such
>>> break static *-user builds where libbpf is detected and it tries to
>>> link it into the user binaries.
>>>
>>> Fixes: 46627f41b6 ("ebpf: Added eBPF RSS loader.")
>>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>>> ---
>>> meson.build | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/meson.build b/meson.build
>>> index 60f4f45165..d8bcf13b21 100644
>>> --- a/meson.build
>>> +++ b/meson.build
>>> @@ -2307,7 +2307,7 @@ subdir('bsd-user')
>>> subdir('linux-user')
>>> subdir('ebpf')
>>> -common_ss.add(libbpf)
>>> +softmmu_ss.add(libbpf)
>>
>> It should not be needed at all, since ebpf/meson.build has
>>
>> softmmu_ss.add(when: libbpf, if_true: files('ebpf_rss.c'), if_false:
>> files('ebpf_rss-stub.c'))
>>
>> (which already adds libbpf if needed).
>
> Ooo, magic side effects. I'll note that the manual doesn't say that it
> adds and dependencies from varnames_and_deps, only that it checks them.
Good point, it's in an example above:
# Include zlib.c if the zlib dependency was found, and link zlib
# in the executable
ss.add(when: zlib, if_true: files('zlib.c'))
Paolo
prev parent reply other threads:[~2021-10-05 22:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-05 18:24 [RFC PATCH] meson.build: don't include libbpf in the common source set Alex Bennée
2021-10-05 18:51 ` Richard Henderson
2021-10-05 19:00 ` Philippe Mathieu-Daudé
2021-10-05 19:28 ` Paolo Bonzini
2021-10-05 19:27 ` Paolo Bonzini
2021-10-05 20:25 ` Richard Henderson
2021-10-05 22:21 ` Paolo Bonzini [this message]
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=2726414d-1952-eb1e-3e74-f12fb0a9a669@redhat.com \
--to=pbonzini@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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;
as well as URLs for NNTP newsgroup(s).