From: Yordan Karadzhov <y.karadz@gmail.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Linux Trace Devel <linux-trace-devel@vger.kernel.org>
Subject: Re: [PATCH] trace-cmd: Add Requires: libtracefs to libtracecmd.pc file
Date: Thu, 11 Nov 2021 10:12:46 +0200 [thread overview]
Message-ID: <47ed3cdf-5f2e-1823-b933-e23b604e208b@gmail.com> (raw)
In-Reply-To: <20211110111729.41a7eb6b@gandalf.local.home>
On 10.11.21 г. 18:17 ч., Steven Rostedt wrote:
> On Wed, 10 Nov 2021 16:12:12 +0200
> Yordan Karadzhov <y.karadz@gmail.com> wrote:
>
>> On 9.11.21 г. 18:14 ч., Steven Rostedt wrote:
>>> From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
>>>
>>> In order to not have users of libtracecmd having to also include the
>>> includes and libraries for libtracefs and libraceevent, add a requires
>>> field for libtracefs to the libtracecmd.pc file. As libtracefs requires
>>> libtraceevent, it will pull that one in as well.
>>>
>>> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
>>> ---
>>> libtracecmd.pc.template | 1 +
>>> scripts/utils.mk | 1 +
>>> 2 files changed, 2 insertions(+)
>>>
>>> diff --git a/libtracecmd.pc.template b/libtracecmd.pc.template
>>> index dc41076e..bcf4e39d 100644
>>> --- a/libtracecmd.pc.template
>>> +++ b/libtracecmd.pc.template
>>> @@ -6,5 +6,6 @@ Name: libtracecmd
>>> URL: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/
>>> Description: Library for creating and reading trace-cmd data files
>>> Version: LIB_VERSION
>>> +Requires: libtracefs >= LIBTRACEFS_MIN_VERSION
>>
>> BTW this works also without the 'lib' prefix:
>>
>> Requires: tracefs >= LIBTRACEFS_MIN_VERSION
>
> I just tried that on Fedora, and get this:
>
> # pkg-config --libs libtracecmd
> Package tracefs was not found in the pkg-config search path.
> Perhaps you should add the directory containing `tracefs.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'tracefs', required by 'libtracecmd', not found
OK, it looks like what matters is really the name of the .pc file (and the 'Name: ...' line). I was confused because
'json-c.ps' has no 'lib' prefix. Looking into
/usr/local/lib/x86_64-linux-gnu/pkgconfig
I see that most of the configuration files do not have 'lib', however there is also a number of files starting with
'lib'. I wonder if there is some rule about using this 'lib' prefix.
Thanks!
Yordan
>
> -- Steve
>
next prev parent reply other threads:[~2021-11-11 8:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-09 16:14 [PATCH] trace-cmd: Add Requires: libtracefs to libtracecmd.pc file Steven Rostedt
2021-11-10 14:12 ` Yordan Karadzhov
2021-11-10 16:17 ` Steven Rostedt
2021-11-11 8:12 ` Yordan Karadzhov [this message]
2021-11-11 14:12 ` Steven Rostedt
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=47ed3cdf-5f2e-1823-b933-e23b604e208b@gmail.com \
--to=y.karadz@gmail.com \
--cc=linux-trace-devel@vger.kernel.org \
--cc=rostedt@goodmis.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).