diff mbox series

[1/1] package/openvmtools: use tirpc when no toolchain RPC

Message ID 1564043421-126710-1-git-send-email-simon.rowe@citrix.com
State Accepted
Headers show
Series [1/1] package/openvmtools: use tirpc when no toolchain RPC | expand

Commit Message

Simon Rowe July 25, 2019, 8:30 a.m. UTC
openvmtools detects an external RPC library, select package/libtirpc
when necessary.

Signed-off-by: Simon Rowe <simon.rowe@citrix.com>
---
 package/openvmtools/Config.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Thomas Petazzoni July 26, 2019, 9:13 p.m. UTC | #1
Hello Simon,

On Thu, 25 Jul 2019 09:30:21 +0100
Simon Rowe <simon.rowe@citrix.com> wrote:

> openvmtools detects an external RPC library, select package/libtirpc
> when necessary.
> 
> Signed-off-by: Simon Rowe <simon.rowe@citrix.com>

Thanks for the patch. However, adding the select in Config.in was not
sufficient: it does not guarantee that libtirpc will be built before
openvmtools. To ensure it gets built before, libtirpc needs to be added
to OPENVMTOOLS_DEPENDENCIES.

So I fixed this issue in your patch, slightly tweaked the commit
title/log and applied.

Thanks!

Thomas
Simon Rowe July 29, 2019, 7:46 a.m. UTC | #2
On 26/07/2019 22:13, Thomas Petazzoni wrote:

> Thanks for the patch. However, adding the select in Config.in was not
> sufficient: it does not guarantee that libtirpc will be built before
> openvmtools. To ensure it gets built before, libtirpc needs to be added
> to OPENVMTOOLS_DEPENDENCIES.
> 
> So I fixed this issue in your patch, slightly tweaked the commit
> title/log and applied.

Thank you for explaining this, I'll try to remember the need to update 
the makefile in future,

Simon
Peter Korsgaard Aug. 4, 2019, 8:16 p.m. UTC | #3
>>>>> "Simon" == Simon Rowe <simon.rowe@citrix.com> writes:

 > openvmtools detects an external RPC library, select package/libtirpc
 > when necessary.

 > Signed-off-by: Simon Rowe <simon.rowe@citrix.com>

Committed to 2019.02.x and 2019.05.x, thanks.
diff mbox series

Patch

diff --git a/package/openvmtools/Config.in b/package/openvmtools/Config.in
index 97860f8..2bd5c27 100644
--- a/package/openvmtools/Config.in
+++ b/package/openvmtools/Config.in
@@ -4,11 +4,11 @@  config BR2_PACKAGE_OPENVMTOOLS
 	depends on BR2_USE_MMU # libglib2
 	depends on BR2_USE_WCHAR # libglib2
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
-	depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC
 	depends on BR2_ENABLE_LOCALE
 	depends on !BR2_TOOLCHAIN_USES_UCLIBC
 	select BR2_PACKAGE_LIBGLIB2
 	select BR2_PACKAGE_LIBDNET
+	select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
 	help
 	  Open Virtual Machine Tools for VMware guest OS
 
@@ -61,9 +61,9 @@  comment "resolutionkms needs udev, a toolchain w/ threads"
 
 endif
 
-comment "openvmtools needs a glibc or musl toolchain w/ wchar, threads, RPC, locale"
+comment "openvmtools needs a glibc or musl toolchain w/ wchar, threads, locale"
 	depends on BR2_i386 || BR2_x86_64
 	depends on BR2_USE_MMU
 	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
-		!BR2_TOOLCHAIN_HAS_NATIVE_RPC || !BR2_ENABLE_LOCALE || \
+		!BR2_ENABLE_LOCALE || \
 		BR2_TOOLCHAIN_USES_UCLIBC