From: Steven Rostedt <rostedt@goodmis.org>
To: Daniel Wagner <dwagner@suse.de>
Cc: linux-trace-users@vger.kernel.org
Subject: Re: [RFC v1 1/2] libtracefs: Use explicit libtraceevent include path
Date: Thu, 7 Jul 2022 10:26:51 -0400 [thread overview]
Message-ID: <20220707102651.43dc2042@gandalf.local.home> (raw)
In-Reply-To: <20220707140723.hhkkjuckchqwnvnl@carbon>
On Thu, 7 Jul 2022 16:07:23 +0200
Daniel Wagner <dwagner@suse.de> wrote:
> On Thu, Jul 07, 2022 at 09:47:52AM -0400, Steven Rostedt wrote:
> > On Thu, 7 Jul 2022 14:15:41 +0200
> > Daniel Wagner <dwagner@suse.de> wrote:
> >
> > > The libtraceevent pkg-config generated by meson is not adding the
> > > subdirectory to the CLFAGS. This is generally a good idea in order to
> > > avoid any file name collisions. Hence use explicit include paths for
> > > libtraceevent.
> >
> > Is there a way to fix this. Honestly, I hate the libtraceevent name (should
> > at least be traceevent), and I have been thinking of changing it.
>
> I suppose we can change pkg-config so that the complete path is
> included, with the downside that file name collisions are more likely to
> happen. E.g. the kbuffer.h is very a generic name.
Sorta-of ;-) That's actually the file I want to "claim" first!
>
> In libnvme/nvme-cli we had some troubles consuming libuuid because of
> inconsistent use of include paths. As far I can tell we just need to
> state what the correct includes paths are.
>
> > If we do not have pkg-config working and everything needs to add explicit
> > include paths, then I'll never be able to change it, or even just get rid
> > of the subdirectory.
>
> I am not really expert how to structure the include paths. As said, I
> think the most important bit is that we use it consistent. Let me try to
> add the include path to pkg-config.
Thanks,
-- Steve
prev parent reply other threads:[~2022-07-07 14:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-07 12:15 [RFC v1 1/2] libtracefs: Use explicit libtraceevent include path Daniel Wagner
2022-07-07 12:15 ` [RFC v1 2/2] libtracefs: Add initial support for meson Daniel Wagner
2022-07-07 13:47 ` [RFC v1 1/2] libtracefs: Use explicit libtraceevent include path Steven Rostedt
2022-07-07 14:07 ` Daniel Wagner
2022-07-07 14:26 ` Steven Rostedt [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=20220707102651.43dc2042@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=dwagner@suse.de \
--cc=linux-trace-users@vger.kernel.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).