* [PATCH 1/3] spec: add dtrace.pc to filelist
@ 2024-11-11 4:10 Kris Van Hees
2024-11-11 15:57 ` Nick Alcock
0 siblings, 1 reply; 4+ messages in thread
From: Kris Van Hees @ 2024-11-11 4:10 UTC (permalink / raw)
To: dtrace, dtrace-devel
Commit 52a18d35 "build: add a pkg-config file for dtrace consumers: use it"
added a dtrace.pc file but failed to add it to the dtrace.spec as well.
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
---
dtrace.spec | 1 +
1 file changed, 1 insertion(+)
diff --git a/dtrace.spec b/dtrace.spec
index 1887fcad..c895426b 100644
--- a/dtrace.spec
+++ b/dtrace.spec
@@ -246,6 +246,7 @@ systemctl start dtprobed || :
%{_libdir}/libdtrace.so.*
%{_sbindir}/dtrace
%{_sbindir}/dtprobed
+%{_datadir}/pkgconfig/dtrace.pc
%{_datadir}/pkgconfig/dtrace_sdt.pc
%{_mandir}/man8/dtrace.8.gz
%doc %{_docdir}/dtrace-%{version}/*
--
2.42.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 1/3] spec: add dtrace.pc to filelist
2024-11-11 4:10 [PATCH 1/3] spec: add dtrace.pc to filelist Kris Van Hees
@ 2024-11-11 15:57 ` Nick Alcock
2024-11-11 17:18 ` Kris Van Hees
0 siblings, 1 reply; 4+ messages in thread
From: Nick Alcock @ 2024-11-11 15:57 UTC (permalink / raw)
To: Kris Van Hees; +Cc: dtrace, dtrace-devel
On 11 Nov 2024, Kris Van Hees uttered the following:
> Commit 52a18d35 "build: add a pkg-config file for dtrace consumers: use it"
> added a dtrace.pc file but failed to add it to the dtrace.spec as well.
>
> Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Wrong package: it's a consumer .pc so it should be in -devel.
(See the patch I just sent when I woke up before, uh, reading any mail.)
--
NULL && (void)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] spec: add dtrace.pc to filelist
2024-11-11 15:57 ` Nick Alcock
@ 2024-11-11 17:18 ` Kris Van Hees
2024-11-11 18:32 ` Nick Alcock
0 siblings, 1 reply; 4+ messages in thread
From: Kris Van Hees @ 2024-11-11 17:18 UTC (permalink / raw)
To: Nick Alcock; +Cc: Kris Van Hees, dtrace, dtrace-devel
On Mon, Nov 11, 2024 at 03:57:28PM +0000, Nick Alcock wrote:
> On 11 Nov 2024, Kris Van Hees uttered the following:
>
> > Commit 52a18d35 "build: add a pkg-config file for dtrace consumers: use it"
> > added a dtrace.pc file but failed to add it to the dtrace.spec as well.
> >
> > Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
>
> Wrong package: it's a consumer .pc so it should be in -devel.
>
> (See the patch I just sent when I woke up before, uh, reading any mail.)
But dtrace.pc is the pkgconfig file that specifies where dtrace itself is
located. I honestly would expect that to be part of the main package since
other tools that need dtrace for something would then be able to use pkgconfig
to find dtrace, etc. Why else would we put the location of the dtrace
executble itself in there? Without installing -devel you don't get to find
out where dtrace resides, but with -devel installed suddenly that becomes
something relevant?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] spec: add dtrace.pc to filelist
2024-11-11 17:18 ` Kris Van Hees
@ 2024-11-11 18:32 ` Nick Alcock
0 siblings, 0 replies; 4+ messages in thread
From: Nick Alcock @ 2024-11-11 18:32 UTC (permalink / raw)
To: Kris Van Hees; +Cc: dtrace, dtrace-devel
On 11 Nov 2024, Kris Van Hees stated:
> On Mon, Nov 11, 2024 at 03:57:28PM +0000, Nick Alcock wrote:
>> On 11 Nov 2024, Kris Van Hees uttered the following:
>>
>> > Commit 52a18d35 "build: add a pkg-config file for dtrace consumers: use it"
>> > added a dtrace.pc file but failed to add it to the dtrace.spec as well.
>> >
>> > Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
>>
>> Wrong package: it's a consumer .pc so it should be in -devel.
>>
>> (See the patch I just sent when I woke up before, uh, reading any mail.)
>
> But dtrace.pc is the pkgconfig file that specifies where dtrace itself is
> located. I honestly would expect that to be part of the main package since
> other tools that need dtrace for something would then be able to use pkgconfig
> to find dtrace, etc. Why else would we put the location of the dtrace
> executble itself in there? Without installing -devel you don't get to find
> out where dtrace resides, but with -devel installed suddenly that becomes
> something relevant?
Ahhh. Yeah, sorry, you're probably right: its original purpose was to
specify the -ldtrace path, etc. I quite forgot we're now using it to
report the actual binary path too (mostly because I didn't expect anyone
but the testsuite to ever use it, but that's a totally unjustified
assumption). Objection withdrawn.
(People without the devel package installed will now find
pkgconf --libs dtrace returning something that won't work until they
install it, but I guess this is fairly commonplace among binary packages
that install .pc files -- which must be fairly rare, mind you. I guess
we can see if we get a bug report about it.)
--
NULL && (void)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-11-11 18:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-11 4:10 [PATCH 1/3] spec: add dtrace.pc to filelist Kris Van Hees
2024-11-11 15:57 ` Nick Alcock
2024-11-11 17:18 ` Kris Van Hees
2024-11-11 18:32 ` Nick Alcock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox