Skip to contentSkip to conversation

Makefile: Make "install" depend on "trace-events-all"

PATCH Applied Fam Zheng 7 participants 8 messages Feb 4, 2017 – Feb 13, 2017 Kbuild

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 Makefile: Make "install" depend on "trace-events-all"

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.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 4b72a4c..b993741 100644
@@ -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))
Signature · 1 line
2.9.3
#1 lore raw
Quoted 3 lines · Fam Zheng

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

#2 lore raw
Quoted 6 lines · Lluís Vilanova
Quoted 3 lines · Fam Zheng

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.

Quoted 6 lines

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

Signature · 3 lines
|: 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/ :|
Reviewed-by on v1 1/1
#3 lore raw
In reply to Fam Zheng
Quoted 8 lines · Fam Zheng

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.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Regards,
Daniel

Signature · 3 lines
|: 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/ :|
Tested-by on v1 1/1
#4 lore raw
In reply to Fam Zheng
Quoted 5 lines · Fam Zheng

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.

Quoted 18 lines
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 4b72a4c..b993741 100644
@@ -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))
#5 lore raw
In reply to Fam Zheng
Quoted 8 lines · Fam Zheng

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.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

Stefan

#6 lore raw
Quoted 10 lines · Stefan Hajnoczi
Quoted 8 lines · Fam Zheng

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.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 5 lines

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

#7 lore raw
Quoted 11 lines · Doug Gilmore
Quoted 10 lines · Stefan Hajnoczi
Quoted 8 lines · Fam Zheng

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.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 8 lines
Quoted 5 lines

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