All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Makefile: Make "install" depend on "trace-events-all"
@ 2017-02-04 14:32 Fam Zheng
  2017-02-04 22:39 ` Lluís Vilanova
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Fam Zheng @ 2017-02-04 14:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: berrange, stefanha

We install this file to data dir but since 0ab8ed18 it's no longer
required by any objects during "make". List it explicitly as a depended
target of install and fix the broken "make install" command.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 4b72a4c..b993741 100644
--- a/Makefile
+++ b/Makefile
@@ -589,7 +589,7 @@ endif
 endif
 
 
-install: all $(if $(BUILD_DOCS),install-doc) \
+install: all $(if $(BUILD_DOCS),install-doc) $(BUILD_DIR)/trace-events-all \
 install-datadir install-localstatedir
 ifneq ($(TOOLS),)
 	$(call install-prog,$(subst qemu-ga,qemu-ga$(EXESUF),$(TOOLS)),$(DESTDIR)$(bindir))
-- 
2.9.3

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

* Re: [Qemu-devel] [PATCH] Makefile: Make "install" depend on "trace-events-all"
  2017-02-04 14:32 [Qemu-devel] [PATCH] Makefile: Make "install" depend on "trace-events-all" Fam Zheng
@ 2017-02-04 22:39 ` Lluís Vilanova
  2017-02-06 10:36   ` Daniel P. Berrange
  2017-02-06 10:35 ` Daniel P. Berrange
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Lluís Vilanova @ 2017-02-04 22:39 UTC (permalink / raw)
  To: Fam Zheng; +Cc: qemu-devel, stefanha

Fam Zheng writes:

> We install this file to data dir but since 0ab8ed18 it's no longer
> required by any objects during "make". List it explicitly as a depended
> target of install and fix the broken "make install" command.

I'm probably wrong, but I remember someone worked on making traces
self-descriptive, so that simpletrace would no longer need access to the
generated trace-events-all file.

If the file is really never used, then all stray rules to generate it should be
removed, as well as its installation.

Cheers,
  Lluis

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

* Re: [Qemu-devel] [PATCH] Makefile: Make "install" depend on "trace-events-all"
  2017-02-04 14:32 [Qemu-devel] [PATCH] Makefile: Make "install" depend on "trace-events-all" Fam Zheng
  2017-02-04 22:39 ` Lluís Vilanova
@ 2017-02-06 10:35 ` Daniel P. Berrange
  2017-02-07 10:17 ` Christian Borntraeger
  2017-02-07 15:14 ` Stefan Hajnoczi
  3 siblings, 0 replies; 8+ messages in thread
From: Daniel P. Berrange @ 2017-02-06 10:35 UTC (permalink / raw)
  To: Fam Zheng; +Cc: qemu-devel, stefanha

On Sat, Feb 04, 2017 at 10:32:45PM +0800, Fam Zheng wrote:
> We install this file to data dir but since 0ab8ed18 it's no longer
> required by any objects during "make". List it explicitly as a depended
> target of install and fix the broken "make install" command.
> 
> Signed-off-by: Fam Zheng <famz@redhat.com>
> ---
>  Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrange <berrange@redhat.com>


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://entangle-photo.org       -o-    http://search.cpan.org/~danberr/ :|

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

* Re: [Qemu-devel] [PATCH] Makefile: Make "install" depend on "trace-events-all"
  2017-02-04 22:39 ` Lluís Vilanova
@ 2017-02-06 10:36   ` Daniel P. Berrange
  0 siblings, 0 replies; 8+ messages in thread
From: Daniel P. Berrange @ 2017-02-06 10:36 UTC (permalink / raw)
  To: Fam Zheng, qemu-devel, stefanha

On Sun, Feb 05, 2017 at 12:39:45AM +0200, Lluís Vilanova wrote:
> Fam Zheng writes:
> 
> > We install this file to data dir but since 0ab8ed18 it's no longer
> > required by any objects during "make". List it explicitly as a depended
> > target of install and fix the broken "make install" command.
> 
> I'm probably wrong, but I remember someone worked on making traces
> self-descriptive, so that simpletrace would no longer need access to the
> generated trace-events-all file.
> 
> If the file is really never used, then all stray rules to generate it should be
> removed, as well as its installation.

It is used at runtime when analysing a simpletrace file. While it would
be nice if they were self-descriptive, that isn't the case today, so we
must install this file.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://entangle-photo.org       -o-    http://search.cpan.org/~danberr/ :|

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

* Re: [Qemu-devel] [PATCH] Makefile: Make "install" depend on "trace-events-all"
  2017-02-04 14:32 [Qemu-devel] [PATCH] Makefile: Make "install" depend on "trace-events-all" Fam Zheng
  2017-02-04 22:39 ` Lluís Vilanova
  2017-02-06 10:35 ` Daniel P. Berrange
@ 2017-02-07 10:17 ` Christian Borntraeger
  2017-02-07 15:14 ` Stefan Hajnoczi
  3 siblings, 0 replies; 8+ messages in thread
From: Christian Borntraeger @ 2017-02-07 10:17 UTC (permalink / raw)
  To: Fam Zheng, qemu-devel; +Cc: stefanha

On 02/04/2017 03:32 PM, Fam Zheng wrote:
> We install this file to data dir but since 0ab8ed18 it's no longer
> required by any objects during "make". List it explicitly as a depended
> target of install and fix the broken "make install" command.
> 
> Signed-off-by: Fam Zheng <famz@redhat.com>

Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>


> ---
>  Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Makefile b/Makefile
> index 4b72a4c..b993741 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -589,7 +589,7 @@ endif
>  endif
> 
> 
> -install: all $(if $(BUILD_DOCS),install-doc) \
> +install: all $(if $(BUILD_DOCS),install-doc) $(BUILD_DIR)/trace-events-all \
>  install-datadir install-localstatedir
>  ifneq ($(TOOLS),)
>  	$(call install-prog,$(subst qemu-ga,qemu-ga$(EXESUF),$(TOOLS)),$(DESTDIR)$(bindir))
> 

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

* Re: [Qemu-devel] [PATCH] Makefile: Make "install" depend on "trace-events-all"
  2017-02-04 14:32 [Qemu-devel] [PATCH] Makefile: Make "install" depend on "trace-events-all" Fam Zheng
                   ` (2 preceding siblings ...)
  2017-02-07 10:17 ` Christian Borntraeger
@ 2017-02-07 15:14 ` Stefan Hajnoczi
  2017-02-07 22:25   ` Doug Gilmore
  3 siblings, 1 reply; 8+ messages in thread
From: Stefan Hajnoczi @ 2017-02-07 15:14 UTC (permalink / raw)
  To: Fam Zheng; +Cc: qemu-devel, berrange

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

On Sat, Feb 04, 2017 at 10:32:45PM +0800, Fam Zheng wrote:
> We install this file to data dir but since 0ab8ed18 it's no longer
> required by any objects during "make". List it explicitly as a depended
> target of install and fix the broken "make install" command.
> 
> Signed-off-by: Fam Zheng <famz@redhat.com>
> ---
>  Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, applied to my tracing tree:
https://github.com/stefanha/qemu/commits/tracing

Stefan

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

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

* Re: [Qemu-devel] [PATCH] Makefile: Make "install" depend on "trace-events-all"
  2017-02-07 15:14 ` Stefan Hajnoczi
@ 2017-02-07 22:25   ` Doug Gilmore
  2017-02-13 14:04     ` Stefan Hajnoczi
  0 siblings, 1 reply; 8+ messages in thread
From: Doug Gilmore @ 2017-02-07 22:25 UTC (permalink / raw)
  To: qemu-devel

On 02/07/2017 07:14 AM, Stefan Hajnoczi wrote:
> On Sat, Feb 04, 2017 at 10:32:45PM +0800, Fam Zheng wrote:
>> We install this file to data dir but since 0ab8ed18 it's no longer
>> required by any objects during "make". List it explicitly as a depended
>> target of install and fix the broken "make install" command.
>>
>> Signed-off-by: Fam Zheng <famz@redhat.com>
>> ---
>>  Makefile | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Thanks, applied to my tracing tree:
> https://github.com/stefanha/qemu/commits/tracing
> 
> Stefan
> 
Are there plans to commit this change?

AFAICS, ToT builds are broken without this change.

Thanks,

Doug

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

* Re: [Qemu-devel] [PATCH] Makefile: Make "install" depend on "trace-events-all"
  2017-02-07 22:25   ` Doug Gilmore
@ 2017-02-13 14:04     ` Stefan Hajnoczi
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Hajnoczi @ 2017-02-13 14:04 UTC (permalink / raw)
  To: Doug Gilmore; +Cc: qemu-devel

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

On Tue, Feb 07, 2017 at 02:25:31PM -0800, Doug Gilmore wrote:
> On 02/07/2017 07:14 AM, Stefan Hajnoczi wrote:
> > On Sat, Feb 04, 2017 at 10:32:45PM +0800, Fam Zheng wrote:
> >> We install this file to data dir but since 0ab8ed18 it's no longer
> >> required by any objects during "make". List it explicitly as a depended
> >> target of install and fix the broken "make install" command.
> >>
> >> Signed-off-by: Fam Zheng <famz@redhat.com>
> >> ---
> >>  Makefile | 2 +-
> >>  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > Thanks, applied to my tracing tree:
> > https://github.com/stefanha/qemu/commits/tracing
> > 
> > Stefan
> > 
> Are there plans to commit this change?
> 
> AFAICS, ToT builds are broken without this change.

Hi Doug,
I've been mostly offline due to illness but am back now.  The pull
request will be sent today.

Stefan

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

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

end of thread, other threads:[~2017-02-13 14:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-04 14:32 [Qemu-devel] [PATCH] Makefile: Make "install" depend on "trace-events-all" Fam Zheng
2017-02-04 22:39 ` Lluís Vilanova
2017-02-06 10:36   ` Daniel P. Berrange
2017-02-06 10:35 ` Daniel P. Berrange
2017-02-07 10:17 ` Christian Borntraeger
2017-02-07 15:14 ` Stefan Hajnoczi
2017-02-07 22:25   ` Doug Gilmore
2017-02-13 14:04     ` Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.