linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* tools/rtla: Fix installation from out-of-tree build
@ 2024-09-15 23:31 Ben Hutchings
  2024-09-16 11:35 ` Tomas Glozar
  2024-10-10 17:39 ` John Kacur
  0 siblings, 2 replies; 5+ messages in thread
From: Ben Hutchings @ 2024-09-15 23:31 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: linux-trace-kernel

[-- Attachment #1: Type: text/plain, Size: 804 bytes --]

rtla now supports out-of-tree builds, but installation fails as it
still tries to install the rtla binary from the source tree.  Use the
existing macro $(RTLA) to refer to the binary.

Fixes: 01474dc706ca ("tools/rtla: Use tools/build makefiles to build rtla")
Signed-off-by: Ben Hutchings <benh@debian.org>
---
--- a/tools/tracing/rtla/Makefile.rtla
+++ b/tools/tracing/rtla/Makefile.rtla
@@ -38,7 +38,7 @@ BINDIR		:= /usr/bin
 .PHONY: install
 install: doc_install
 	@$(MKDIR) -p $(DESTDIR)$(BINDIR)
-	$(call QUIET_INSTALL,rtla)$(INSTALL) rtla -m 755 $(DESTDIR)$(BINDIR)
+	$(call QUIET_INSTALL,rtla)$(INSTALL) $(RTLA) -m 755 $(DESTDIR)$(BINDIR)
 	@$(STRIP) $(DESTDIR)$(BINDIR)/rtla
 	@test ! -f $(DESTDIR)$(BINDIR)/osnoise || $(RM) $(DESTDIR)$(BINDIR)/osnoise
 	@$(LN) rtla $(DESTDIR)$(BINDIR)/osnoise

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tools/rtla: Fix installation from out-of-tree build
  2024-09-15 23:31 tools/rtla: Fix installation from out-of-tree build Ben Hutchings
@ 2024-09-16 11:35 ` Tomas Glozar
  2024-10-10 17:39 ` John Kacur
  1 sibling, 0 replies; 5+ messages in thread
From: Tomas Glozar @ 2024-09-16 11:35 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: Steven Rostedt, linux-trace-kernel

po 16. 9. 2024 v 1:32 odesílatel Ben Hutchings <benh@debian.org> napsal:
>
> rtla now supports out-of-tree builds, but installation fails as it
> still tries to install the rtla binary from the source tree.  Use the
> existing macro $(RTLA) to refer to the binary.
>
> Fixes: 01474dc706ca ("tools/rtla: Use tools/build makefiles to build rtla")
> Signed-off-by: Ben Hutchings <benh@debian.org>
> ---
> --- a/tools/tracing/rtla/Makefile.rtla
> +++ b/tools/tracing/rtla/Makefile.rtla
> @@ -38,7 +38,7 @@ BINDIR                := /usr/bin
>  .PHONY: install
>  install: doc_install
>         @$(MKDIR) -p $(DESTDIR)$(BINDIR)
> -       $(call QUIET_INSTALL,rtla)$(INSTALL) rtla -m 755 $(DESTDIR)$(BINDIR)
> +       $(call QUIET_INSTALL,rtla)$(INSTALL) $(RTLA) -m 755 $(DESTDIR)$(BINDIR)
>         @$(STRIP) $(DESTDIR)$(BINDIR)/rtla
>         @test ! -f $(DESTDIR)$(BINDIR)/osnoise || $(RM) $(DESTDIR)$(BINDIR)/osnoise
>         @$(LN) rtla $(DESTDIR)$(BINDIR)/osnoise

Out-of-tree install is fixed for me when applied on latest upstream
top (e8fc317dfca9 "Merge tag 'vfs-6.12.procfs' of
git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs").

Reviewed-by: Tomas Glozar <tglozar@redhat.com>
Tested-by: Tomas Glozar <tglozar@redhat.com>

Tomas


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tools/rtla: Fix installation from out-of-tree build
  2024-09-15 23:31 tools/rtla: Fix installation from out-of-tree build Ben Hutchings
  2024-09-16 11:35 ` Tomas Glozar
@ 2024-10-10 17:39 ` John Kacur
  2024-10-13 20:34   ` Ben Hutchings
  1 sibling, 1 reply; 5+ messages in thread
From: John Kacur @ 2024-10-10 17:39 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: Steven Rostedt, linux-trace-kernel



On Mon, 16 Sep 2024, Ben Hutchings wrote:

> rtla now supports out-of-tree builds, but installation fails as it
> still tries to install the rtla binary from the source tree.  Use the
> existing macro $(RTLA) to refer to the binary.
> 
> Fixes: 01474dc706ca ("tools/rtla: Use tools/build makefiles to build rtla")
> Signed-off-by: Ben Hutchings <benh@debian.org>
> ---
> --- a/tools/tracing/rtla/Makefile.rtla
> +++ b/tools/tracing/rtla/Makefile.rtla
> @@ -38,7 +38,7 @@ BINDIR		:= /usr/bin
>  .PHONY: install
>  install: doc_install
>  	@$(MKDIR) -p $(DESTDIR)$(BINDIR)
> -	$(call QUIET_INSTALL,rtla)$(INSTALL) rtla -m 755 $(DESTDIR)$(BINDIR)
> +	$(call QUIET_INSTALL,rtla)$(INSTALL) $(RTLA) -m 755 $(DESTDIR)$(BINDIR)
>  	@$(STRIP) $(DESTDIR)$(BINDIR)/rtla
>  	@test ! -f $(DESTDIR)$(BINDIR)/osnoise || $(RM) $(DESTDIR)$(BINDIR)/osnoise
>  	@$(LN) rtla $(DESTDIR)$(BINDIR)/osnoise
> 

Is Debian using out of tree builds Ben?
This is upstream already which is fine, but I remember Daniel telling me 
that he believed the distributions were no longer using out of tree builds
and he wanted to remove this capability in order to simplify the build 
system.

John Kacur


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tools/rtla: Fix installation from out-of-tree build
  2024-10-10 17:39 ` John Kacur
@ 2024-10-13 20:34   ` Ben Hutchings
  2024-10-14 15:19     ` Steven Rostedt
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Hutchings @ 2024-10-13 20:34 UTC (permalink / raw)
  To: John Kacur; +Cc: Steven Rostedt, linux-trace-kernel

[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]

On Thu, 2024-10-10 at 13:39 -0400, John Kacur wrote:
> 
> On Mon, 16 Sep 2024, Ben Hutchings wrote:
> 
> > rtla now supports out-of-tree builds, but installation fails as it
> > still tries to install the rtla binary from the source tree.  Use the
> > existing macro $(RTLA) to refer to the binary.
> > 
> > Fixes: 01474dc706ca ("tools/rtla: Use tools/build makefiles to build rtla")
> > Signed-off-by: Ben Hutchings <benh@debian.org>
> > ---
> > --- a/tools/tracing/rtla/Makefile.rtla
> > +++ b/tools/tracing/rtla/Makefile.rtla
> > @@ -38,7 +38,7 @@ BINDIR		:= /usr/bin
> >  .PHONY: install
> >  install: doc_install
> >  	@$(MKDIR) -p $(DESTDIR)$(BINDIR)
> > -	$(call QUIET_INSTALL,rtla)$(INSTALL) rtla -m 755 $(DESTDIR)$(BINDIR)
> > +	$(call QUIET_INSTALL,rtla)$(INSTALL) $(RTLA) -m 755 $(DESTDIR)$(BINDIR)
> >  	@$(STRIP) $(DESTDIR)$(BINDIR)/rtla
> >  	@test ! -f $(DESTDIR)$(BINDIR)/osnoise || $(RM) $(DESTDIR)$(BINDIR)/osnoise
> >  	@$(LN) rtla $(DESTDIR)$(BINDIR)/osnoise
> > 
> 
> Is Debian using out of tree builds Ben?
[...]

In the linux package specifically, yes, we try to do all builds out-of-
tree.

Ben.

-- 
Ben Hutchings - Debian developer, member of kernel, installer and LTS
teams

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tools/rtla: Fix installation from out-of-tree build
  2024-10-13 20:34   ` Ben Hutchings
@ 2024-10-14 15:19     ` Steven Rostedt
  0 siblings, 0 replies; 5+ messages in thread
From: Steven Rostedt @ 2024-10-14 15:19 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: John Kacur, linux-trace-kernel

On Sun, 13 Oct 2024 22:34:49 +0200
Ben Hutchings <benh@debian.org> wrote:

> > Is Debian using out of tree builds Ben?  
> [...]
> 
> In the linux package specifically, yes, we try to do all builds out-of-
> tree.

Right. Out-of-tree builds is pretty much a must for anything in the Linux
kernel tree.

-- Steve

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-10-14 15:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-15 23:31 tools/rtla: Fix installation from out-of-tree build Ben Hutchings
2024-09-16 11:35 ` Tomas Glozar
2024-10-10 17:39 ` John Kacur
2024-10-13 20:34   ` Ben Hutchings
2024-10-14 15:19     ` Steven Rostedt

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).