Skip to contentSkip to conversation

libxl: Fix build dependency for libxl.h.

PATCH In review Anthony PERARD 2 participants 3 messages Sep 24, 2014 – Sep 25, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxl: Fix build dependency for libxl.h.

libxl.h includes _libxl_list.h, but the Makefile does not reflect this dependency. This can lead to build error due to a missing _libxl_list.h file.

---
 tools/libxl/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/Makefile +1 -1
index 9d67d0b..496a269 100644
@@ -173,7 +173,7 @@ _libxl_save_msgs_helper.h _libxl_save_msgs_callout.h: \
 	$(PERL) -w $< $@ >[email protected]
 	$(call move-if-changed,[email protected],$@)
 
-libxl.h: _libxl_types.h
+libxl.h: _libxl_types.h _libxl_list.h
 libxl_json.h: _libxl_types_json.h
 libxl_internal.h: _libxl_types_internal.h _libxl_types_private.h _libxl_types_internal_private.h _paths.h
 libxl_internal_json.h: _libxl_types_internal_json.h
Signature · 1 line
Anthony PERARD
#1 lore raw
Quoted 3 lines · Anthony PERARD

libxl.h includes _libxl_list.h, but the Makefile does not reflect this dependency. This can lead to build error due to a missing _libxl_list.h file.

libxl_qmp.c includes this too, is that a problem?

It's probably unnecessary since it includes libxl.h too. So maybe the fix is to drop the #include?

Quoted 1 line

Acked + applied.

#2 lore raw
In reply to Anthony PERARD
Quoted 3 lines · Anthony PERARD

libxl.h includes _libxl_list.h, but the Makefile does not reflect this dependency. This can lead to build error due to a missing _libxl_list.h file.

libxl_qmp.c includes this too, is that a problem?

It's probably unnecessary since it includes libxl.h too. So maybe the fix is to drop the #include?

Quoted 1 line

Acked + applied.

Quoted 17 lines
---
 tools/libxl/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/Makefile +1 -1
index 9d67d0b..496a269 100644
@@ -173,7 +173,7 @@ _libxl_save_msgs_helper.h _libxl_save_msgs_callout.h: \
 	$(PERL) -w $< $@ >[email protected]
 	$(call move-if-changed,[email protected],$@)
 
-libxl.h: _libxl_types.h
+libxl.h: _libxl_types.h _libxl_list.h
 libxl_json.h: _libxl_types_json.h
 libxl_internal.h: _libxl_types_internal.h _libxl_types_private.h _libxl_types_internal_private.h _paths.h
 libxl_internal_json.h: _libxl_types_internal_json.h