mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
Merge pull request #1199 from lrusak/open-vm-tools-libreelec-8.0
backport of #1185 (open-vm-tools: update to 10.1.0)
This commit is contained in:
commit
61776baee6
@ -18,12 +18,12 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
PKG_NAME="open-vm-tools"
|
PKG_NAME="open-vm-tools"
|
||||||
PKG_VERSION="stable-10.0.7"
|
PKG_VERSION="stable-10.1.0"
|
||||||
PKG_ARCH="x86_64"
|
PKG_ARCH="x86_64"
|
||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="http://open-vm-tools.sourceforge.net"
|
PKG_SITE="http://open-vm-tools.sourceforge.net"
|
||||||
PKG_URL="https://github.com/vmware/open-vm-tools/archive/${PKG_VERSION}.tar.gz"
|
PKG_URL="https://github.com/vmware/open-vm-tools/archive/${PKG_VERSION}.tar.gz"
|
||||||
PKG_DEPENDS_TARGET="toolchain glib:host glib libdnet"
|
PKG_DEPENDS_TARGET="toolchain glib:host glib libdnet fuse"
|
||||||
PKG_SECTION="virtualization"
|
PKG_SECTION="virtualization"
|
||||||
PKG_SHORTDESC="open-vm-tools: open source implementation of VMware Tools"
|
PKG_SHORTDESC="open-vm-tools: open source implementation of VMware Tools"
|
||||||
PKG_LONGDESC="open-vm-tools: open source implementation of VMware Tools"
|
PKG_LONGDESC="open-vm-tools: open source implementation of VMware Tools"
|
||||||
@ -43,10 +43,14 @@ PKG_CONFIGURE_OPTS_TARGET="--disable-docs \
|
|||||||
--without-icu \
|
--without-icu \
|
||||||
--without-procps \
|
--without-procps \
|
||||||
--without-kernel-modules \
|
--without-kernel-modules \
|
||||||
|
--with-udev-rules-dir=/usr/lib/udev/rules.d/ \
|
||||||
--with-sysroot=$SYSROOT_PREFIX"
|
--with-sysroot=$SYSROOT_PREFIX"
|
||||||
|
|
||||||
post_unpack() {
|
post_unpack() {
|
||||||
mv $PKG_BUILD/$PKG_NAME/* $PKG_BUILD/
|
mv $PKG_BUILD/$PKG_NAME/* $PKG_BUILD/
|
||||||
|
|
||||||
|
sed -i -e 's|.*common-agent/etc/config/Makefile.*||' $ROOT/$PKG_BUILD/configure.ac
|
||||||
|
mkdir -p $ROOT/$PKG_BUILD/common-agent/etc/config
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_configure_target() {
|
pre_configure_target() {
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,60 +0,0 @@
|
|||||||
From 08726e150faca5b67ff981680e556b908aa806d0 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Bernd Zeimetz <bernd@bzed.de>
|
|
||||||
Date: Sat, 17 Sep 2016 11:15:12 +0200
|
|
||||||
Subject: [PATCH] Make open-vm-tools build with gcc 6.
|
|
||||||
|
|
||||||
diff --git a/lib/include/x86cpuid.h b/lib/include/x86cpuid.h
|
|
||||||
--- a/lib/include/x86cpuid.h
|
|
||||||
+++ b/lib/include/x86cpuid.h
|
|
||||||
@@ -909,7 +909,7 @@ FIELD(81E, 0, ECX, 8, 3, NODES_PER_PKG, NA, FALSE)
|
|
||||||
* Note: The MASK definitions must use some gymnastics to get
|
|
||||||
* around a warning when shifting left by 32.
|
|
||||||
*/
|
|
||||||
-#define VMW_BIT_MASK(shift) (((1 << (shift - 1)) << 1) - 1)
|
|
||||||
+#define VMW_BIT_MASK(shift) (((1u << (shift - 1)) << 1) - 1)
|
|
||||||
|
|
||||||
#define FIELD(lvl, ecxIn, reg, bitpos, size, name, s, c3) \
|
|
||||||
CPUID_##name##_SHIFT = bitpos, \
|
|
||||||
diff --git a/libDeployPkg/linuxDeployment.c b/libDeployPkg/linuxDeployment.c
|
|
||||||
--- a/libDeployPkg/linuxDeployment.c
|
|
||||||
+++ b/libDeployPkg/linuxDeployment.c
|
|
||||||
@@ -67,7 +67,6 @@
|
|
||||||
* Constant definitions
|
|
||||||
*/
|
|
||||||
|
|
||||||
-static const char ENDOFLINEMARKER = '\n';
|
|
||||||
static const char SPACECHAR = ' ';
|
|
||||||
static const char TABCHAR = '\t';
|
|
||||||
static const char QUOTECHAR = '"';
|
|
||||||
@@ -913,22 +912,28 @@ Deploy(const char* packageName)
|
|
||||||
deploymentResult = ForkExecAndWaitCommand(command);
|
|
||||||
free (command);
|
|
||||||
|
|
||||||
- if (deploymentResult != 0) {
|
|
||||||
+ if (deploymentResult != CUST_SUCCESS) {
|
|
||||||
sLog(log_error, "Customization process returned with error. \n");
|
|
||||||
sLog(log_debug, "Deployment result = %d \n", deploymentResult);
|
|
||||||
|
|
||||||
- if (deploymentResult == CUST_NETWORK_ERROR || deploymentResult == CUST_NIC_ERROR) {
|
|
||||||
+ if (deploymentResult == CUST_NETWORK_ERROR || deploymentResult == CUST_NIC_ERROR || deploymentResult == CUST_DNS_ERROR) {
|
|
||||||
// Network specific error in the guest
|
|
||||||
sLog(log_info, "Setting network error status in vmx. \n");
|
|
||||||
SetCustomizationStatusInVmx(TOOLSDEPLOYPKG_RUNNING,
|
|
||||||
GUESTCUST_EVENT_NETWORK_SETUP_FAILED,
|
|
||||||
NULL);
|
|
||||||
- } else {
|
|
||||||
+ } else if (deploymentResult == CUST_GENERIC_ERROR) {
|
|
||||||
// Generic error in the guest
|
|
||||||
sLog(log_info, "Setting generic error status in vmx. \n");
|
|
||||||
SetCustomizationStatusInVmx(TOOLSDEPLOYPKG_RUNNING,
|
|
||||||
GUESTCUST_EVENT_CUSTOMIZE_FAILED,
|
|
||||||
NULL);
|
|
||||||
+ } else {
|
|
||||||
+ // Unknown error in the guest
|
|
||||||
+ sLog(log_info, "Setting unknown error status in vmx. \n");
|
|
||||||
+ SetCustomizationStatusInVmx(TOOLSDEPLOYPKG_RUNNING,
|
|
||||||
+ GUESTCUST_EVENT_CUSTOMIZE_FAILED,
|
|
||||||
+ NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Move to ERROR state
|
|
Loading…
x
Reference in New Issue
Block a user