Skip to contentSkip to conversation

tools: prepend to PKG_CONFIG_PATH when configuring qemu

PATCH In review Stewart Hildebrand 3 participants 6 messages Apr 26, 2018 – May 22, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: prepend to PKG_CONFIG_PATH when configuring qemu

A user may choose to set his/her own PKG_CONFIG_PATH, which is useful in the case of cross-compiling. We don't want to completely override the PKG_CONFIG_PATH, just add to it.

---
 tools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/Makefile +1 -1
index ab7a01e..67977ad 100644
@@ -232,7 +232,7 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
 	else \
 		enable_trace_backend='' ; \
 	fi ; \
-	PKG_CONFIG_PATH=$(XEN_ROOT)/tools/pkg-config \
+	PKG_CONFIG_PATH=$(XEN_ROOT)/tools/pkg-config$${PKG_CONFIG_PATH:+:$${PKG_CONFIG_PATH}} \
 	$$source/configure --enable-xen --target-list=i386-softmmu \
 		$(QEMU_XEN_ENABLE_DEBUG) \
 		$$enable_trace_backend \
Signature · 6 lines
2.7.4

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 1/1
#1 lore raw

Stewart Hildebrand writes ("[PATCH] tools: prepend to PKG_CONFIG_PATH when configuring qemu"):

Quoted 3 lines

A user may choose to set his/her own PKG_CONFIG_PATH, which is useful in the case of cross-compiling. We don't want to completely override the PKG_CONFIG_PATH, just add to it.

This patch should be backported to all applicable trees.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
Quoted 7 lines

From: Ian Jackson
Sent: Thursday, April 26, 2018 1:44 PM
Subject: Re: [PATCH] tools: prepend to PKG_CONFIG_PATH when configuring qemu

Stewart Hildebrand writes ("[PATCH] tools: prepend to PKG_CONFIG_PATH when configuring qemu"):

Quoted 8 lines
Quoted 1 line

A user may choose to set his/her own PKG_CONFIG_PATH, which is useful

in the

Quoted 2 lines

case of cross-compiling. We don't want to completely override the PKG_CONFIG_PATH, just add to it.

This patch should be backported to all applicable trees.

The patch appears to apply cleanly to staging-4.10, and applies to staging-4.9 with line offsets. I did a quick build test with the patch as-is applied to each of these branches, it appears to be valid (staging-4.9, staging-4.10, and staging). No need to apply it to any earlier trees, I don't think, since PKG_CONFIG_PATH wasn't being set in earlier trees.

Stew

Quoted 2 lines

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw
In reply to Stewart Hildebrand
Quoted 5 lines · Stewart Hildebrand

A user may choose to set his/her own PKG_CONFIG_PATH, which is useful in the case of cross-compiling. We don't want to completely override the PKG_CONFIG_PATH, just add to it.

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#4 lore raw

Juergen Gross writes ("Re: [PATCH] tools: prepend to PKG_CONFIG_PATH when configuring qemu"):

Quoted 8 lines · Stewart Hildebrand
Quoted 5 lines

A user may choose to set his/her own PKG_CONFIG_PATH, which is useful in the case of cross-compiling. We don't want to completely override the PKG_CONFIG_PATH, just add to it.

Thanks all. Applied and queued for backport.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#5 lore raw

Ian Jackson writes ("Re: [PATCH] tools: prepend to PKG_CONFIG_PATH when configuring qemu"):

Quoted 11 lines

Juergen Gross writes ("Re: [PATCH] tools: prepend to PKG_CONFIG_PATH when configuring qemu"):

Quoted 8 lines · Stewart Hildebrand
Quoted 5 lines

A user may choose to set his/her own PKG_CONFIG_PATH, which is useful in the case of cross-compiling. We don't want to completely override the PKG_CONFIG_PATH, just add to it.

Thanks all. Applied and queued for backport.

I have applied this to staging-4.10 and staging-4.9. 4.8 and earlier do not mess about with PKG_CONFIG_PATH so that's as far as it needs to go.

Thanks,
Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel