All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Kelly <mkelly@xevo.com>
To: openembedded-devel <openembedded-devel@lists.openembedded.org>
Cc: Darren Hart <dvhart@vmware.com>
Subject: [meta-oe][PATCH v2] 08/17] open-vm-tools: don't use dnet-config
Date: Fri, 23 Jun 2017 15:48:39 -0700	[thread overview]
Message-ID: <d16612b0d2175a1ef1aa675dd423d73befa688ee.1498257745.git.mkelly@xevo.com> (raw)
In-Reply-To: <cover.1498257745.git.mkelly@xevo.com>

dnet-config wasn't found in the PATH, and it doesn't work properly for
cross-compile anyway.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
---
 .../0002-configure.ac-don-t-use-dnet-config.patch  | 41 ++++++++++++++++++++++
 .../open-vm-tools/open-vm-tools_10.1.5.bb          |  3 ++
 2 files changed, 44 insertions(+)
 create mode 100644 meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-configure.ac-don-t-use-dnet-config.patch

diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-configure.ac-don-t-use-dnet-config.patch b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-configure.ac-don-t-use-dnet-config.patch
new file mode 100644
index 000000000..e9cb873f1
--- /dev/null
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0002-configure.ac-don-t-use-dnet-config.patch
@@ -0,0 +1,41 @@
+From 929150608c16644695f19cd2e0cc8a06a41cd497 Mon Sep 17 00:00:00 2001
+From: Martin Kelly <mkelly@xevo.com>
+Date: Fri, 7 Apr 2017 15:20:30 -0700
+Subject: [PATCH] configure.ac: don't use dnet-config
+
+The dnet-config tool doesn't know about cross-compilation, so it injects
+-I/usr/include into the path, causing compiler errors. So instead find dnet via
+-ldnet.
+
+Upstream-Status: Inappropriate [embedded specific]
+
+Signed-off-by: Martin Kelly <mkelly@xevo.com>
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 3400b86..7d6119e 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -942,7 +942,7 @@ if test "$with_dnet" = "yes"; then
+       AC_VMW_CHECK_LIB([dnet],
+                        [DNET],
+                        [],
+-                       [dnet-config],
++                       [],
+                        [],
+                        [dnet.h],
+                        [intf_open],
+@@ -952,7 +952,7 @@ if test "$with_dnet" = "yes"; then
+ 
+    if test $have_dnet = "no"; then
+ 		AC_MSG_ERROR(
+-		   [dnet-config was not found on your PATH. Please configure without dnet (using --without-dnet) or install dnet - http://libdnet.sourceforge.net])
++		   [dnet was not found. Please configure without dnet (using --without-dnet) or install dnet - http://libdnet.sourceforge.net])
+ 	fi
+ fi
+ 
+-- 
+2.1.4
+
diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
index 6793d450b..b3e0afca7 100644
--- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
+++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_10.1.5.bb
@@ -24,6 +24,7 @@ SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https \
            file://tools.conf \
            file://vmtoolsd.service \
            file://0001-Fix-kernel-detection.patch \
+           file://0002-configure.ac-don-t-use-dnet-config.patch \
            "
 
 SRCREV = "854c0bb374612f7e633b448ca273f970f154458b"
@@ -76,4 +77,6 @@ do_install_append() {
 do_configure_prepend() {
     export CUSTOM_PROCPS_NAME=procps
     export CUSTOM_PROCPS_LIBS=-L${STAGING_LIBDIR}/libprocps.so
+    export CUSTOM_DNET_NAME=dnet
+    export CUSTOM_DNET_LIBS=-L${STAGING_LIBDIR}/libdnet.so
 }
-- 
2.11.0



  parent reply	other threads:[~2017-06-23 23:22 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-23 22:47 [meta-oe][PATCH v2] 00/17] new recipe v2: open-vm-tools recipe Martin Kelly
2017-06-23 22:48 ` [meta-oe][PATCH v2] 01/17] add " Martin Kelly
2017-06-23 22:48 ` [meta-oe][PATCH v2] 02/17] open-vm-tools: add missing pkgconfig dependency Martin Kelly
2017-06-23 22:48 ` [meta-oe][PATCH v2] 03/17] open-vm-tools: add missing glib-2.0-native dependency Martin Kelly
2017-06-23 22:48 ` [meta-oe][PATCH v2] 04/17] open-vm-tools: clarify and expand licensing Martin Kelly
2017-06-23 22:48 ` [meta-oe][PATCH v2] 05/17] open-vm-tools: base_contains --> bb.utils.contains Martin Kelly
2017-06-23 22:48 ` [meta-oe][PATCH v2] 06/17] open-vm-tools: update version to 10.1.5 Martin Kelly
2017-06-23 22:48 ` [meta-oe][PATCH v2] 07/17] open-vm-tools: don't use mspack Martin Kelly
2017-06-23 22:48 ` Martin Kelly [this message]
2017-06-23 22:48 ` [meta-oe][PATCH v2] 09/17] open-vm-tools: add #include to fix build break Martin Kelly
2017-06-23 22:48 ` [meta-oe][PATCH v2] 10/17] open-vm-tools: add missing X11 dependencies Martin Kelly
2017-06-23 22:48 ` [meta-oe][PATCH v2] 11/17] open-vm-tools: remove kernel module logic Martin Kelly
2017-06-23 22:48 ` [meta-oe][PATCH v2] 12/17] open-vm-tools: line up configure options Martin Kelly
2017-06-23 22:48 ` [meta-oe][PATCH v2] 13/17] open-vm-tools: support FUSE Martin Kelly
2017-06-23 22:48 ` [meta-oe][PATCH v2] 14/17] open-vm-tools: scope build to only x86 Martin Kelly
2017-06-23 22:48 ` [meta-oe][PATCH v2] 15/17] open-vm-tools: style changes Martin Kelly
2017-06-23 22:48 ` [meta-oe][PATCH v2] 16/17] open-vm-tools: fix all hardcoded paths Martin Kelly
2017-06-23 22:48 ` [meta-oe][PATCH v2] 17/17] open-vm-tools: remove -Wno-error Martin Kelly
2017-06-27 22:24 ` [meta-oe][PATCH v2] 00/17] new recipe v2: open-vm-tools recipe Martin Kelly
2017-06-27 22:29   ` Martin Jansa
2017-06-27 22:35     ` Martin Kelly

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d16612b0d2175a1ef1aa675dd423d73befa688ee.1498257745.git.mkelly@xevo.com \
    --to=mkelly@xevo.com \
    --cc=dvhart@vmware.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.