open-vm-tools: update to 12.1.5
added also --disable-glibc-check to configure args to allow building on hosts that use musl. Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
This commit is contained in:
parent
e1f03d7ee4
commit
7f2306a8e0
|
@ -8,13 +8,13 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=open-vm-tools
|
PKG_NAME:=open-vm-tools
|
||||||
PKG_VERSION:=12.0.0
|
PKG_VERSION:=12.1.5
|
||||||
PKG_RELEASE:=$(AUTORELEASE)
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-19345655.tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-20735119.tar.gz
|
||||||
PKG_SOURCE_URL:=https://github.com/vmware/open-vm-tools/releases/download/stable-$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://github.com/vmware/open-vm-tools/releases/download/stable-$(PKG_VERSION)
|
||||||
PKG_HASH:=ea370217a213802f91b01231e28298bbe54134822351fb5cc70255d80ba0e775
|
PKG_HASH:=72cb68c71c59fd429bcb357926f41f07e21c737a341534b707fc1df010ed4868
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-19345655
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-20735119
|
||||||
|
|
||||||
PKG_LICENSE:=LGPL-2.1-or-later
|
PKG_LICENSE:=LGPL-2.1-or-later
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
@ -80,7 +80,8 @@ CONFIGURE_ARGS+= \
|
||||||
--without-gtk2 \
|
--without-gtk2 \
|
||||||
--without-gtk3 \
|
--without-gtk3 \
|
||||||
--without-xerces \
|
--without-xerces \
|
||||||
--enable-resolutionkms=no
|
--enable-resolutionkms=no \
|
||||||
|
--disable-glibc-check
|
||||||
|
|
||||||
TARGET_LDFLAGS+=$(if $(ICONV_FULL),-liconv)
|
TARGET_LDFLAGS+=$(if $(ICONV_FULL),-liconv)
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
|
||||||
|
|
||||||
--- a/lib/file/fileIOPosix.c
|
--- a/lib/file/fileIOPosix.c
|
||||||
+++ b/lib/file/fileIOPosix.c
|
+++ b/lib/file/fileIOPosix.c
|
||||||
@@ -198,7 +198,7 @@ static AlignedPool alignedPool;
|
@@ -203,7 +203,7 @@ static AlignedPool alignedPool;
|
||||||
* are not available in any header file.
|
* are not available in any header file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,73 +0,0 @@
|
||||||
From 3f0580f2546de8be7acf1bc78a55a257bc638ebe Mon Sep 17 00:00:00 2001
|
|
||||||
From: Bartosz Brachaczek <b.brachaczek@gmail.com>
|
|
||||||
Date: Tue, 12 Nov 2019 14:31:08 +0100
|
|
||||||
Subject: [PATCH] Make HgfsConvertFromNtTimeNsec aware of 64-bit time_t on i386
|
|
||||||
|
|
||||||
I verified that this function behaves as expected on x86_64, i386 with
|
|
||||||
32-bit time_t, and i386 with 64-bit time_t for the following values of
|
|
||||||
ntTtime:
|
|
||||||
|
|
||||||
UNIX_EPOCH-1, UNIX_EPOCH, UNIX_EPOCH+1, UNIX_S32_MAX-1, UNIX_S32_MAX,
|
|
||||||
UNIX_S32_MAX+1, UNIX_S32_MAX*2+1
|
|
||||||
|
|
||||||
I did not verify whether the use of Div643264 is optimal, performance
|
|
||||||
wise.
|
|
||||||
---
|
|
||||||
lib/hgfs/hgfsUtil.c | 34 +++++++++++++++++--------------
|
|
||||||
1 file changed, 19 insertions(+), 15 deletions(-)
|
|
||||||
|
|
||||||
--- a/lib/hgfs/hgfsUtil.c
|
|
||||||
+++ b/lib/hgfs/hgfsUtil.c
|
|
||||||
@@ -110,23 +110,21 @@ HgfsConvertFromNtTimeNsec(struct timespe
|
|
||||||
uint64 ntTime) // IN: Time in Windows NT format
|
|
||||||
{
|
|
||||||
#ifdef __i386__
|
|
||||||
- uint32 sec;
|
|
||||||
- uint32 nsec;
|
|
||||||
+ uint64 sec64;
|
|
||||||
+ uint32 sec32, nsec;
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
ASSERT(unixTime);
|
|
||||||
- /* We assume that time_t is 32bit */
|
|
||||||
- ASSERT_ON_COMPILE(sizeof (unixTime->tv_sec) == 4);
|
|
||||||
|
|
||||||
- /* Cap NT time values that are outside of Unix time's range */
|
|
||||||
+ if (sizeof (unixTime->tv_sec) == 4) {
|
|
||||||
+ /* Cap NT time values that are outside of Unix time's range */
|
|
||||||
|
|
||||||
- if (ntTime >= UNIX_S32_MAX) {
|
|
||||||
- unixTime->tv_sec = 0x7FFFFFFF;
|
|
||||||
- unixTime->tv_nsec = 0;
|
|
||||||
- return 1;
|
|
||||||
+ if (ntTime >= UNIX_S32_MAX) {
|
|
||||||
+ unixTime->tv_sec = 0x7FFFFFFF;
|
|
||||||
+ unixTime->tv_nsec = 0;
|
|
||||||
+ return 1;
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
-#else
|
|
||||||
- ASSERT(unixTime);
|
|
||||||
-#endif
|
|
||||||
|
|
||||||
if (ntTime < UNIX_EPOCH) {
|
|
||||||
unixTime->tv_sec = 0;
|
|
||||||
@@ -135,9 +133,15 @@ HgfsConvertFromNtTimeNsec(struct timespe
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef __i386__
|
|
||||||
- Div643232(ntTime - UNIX_EPOCH, 10000000, &sec, &nsec);
|
|
||||||
- unixTime->tv_sec = sec;
|
|
||||||
- unixTime->tv_nsec = nsec * 100;
|
|
||||||
+ if (sizeof (unixTime->tv_sec) == 4) {
|
|
||||||
+ Div643232(ntTime - UNIX_EPOCH, 10000000, &sec32, &nsec);
|
|
||||||
+ unixTime->tv_sec = sec32;
|
|
||||||
+ unixTime->tv_nsec = nsec * 100;
|
|
||||||
+ } else {
|
|
||||||
+ Div643264(ntTime - UNIX_EPOCH, 10000000, &sec64, &nsec);
|
|
||||||
+ unixTime->tv_sec = sec64;
|
|
||||||
+ unixTime->tv_nsec = nsec * 100;
|
|
||||||
+ }
|
|
||||||
#else
|
|
||||||
unixTime->tv_sec = (ntTime - UNIX_EPOCH) / 10000000;
|
|
||||||
unixTime->tv_nsec = ((ntTime - UNIX_EPOCH) % 10000000) * 100;
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
--- a/lib/file/fileIOPosix.c
|
--- a/lib/file/fileIOPosix.c
|
||||||
+++ b/lib/file/fileIOPosix.c
|
+++ b/lib/file/fileIOPosix.c
|
||||||
@@ -1741,7 +1741,7 @@ FileIOPreadvInternal(
|
@@ -1746,7 +1746,7 @@ FileIOPreadvInternal(
|
||||||
* the library horizon this can go away.
|
* the library horizon this can go away.
|
||||||
*/
|
*/
|
||||||
/* coverity[func_conv] */
|
/* coverity[func_conv] */
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
fret = FileIOPreadvCoalesced(fd, entries, numEntries, offset,
|
fret = FileIOPreadvCoalesced(fd, entries, numEntries, offset,
|
||||||
totalSize, &bytesRead);
|
totalSize, &bytesRead);
|
||||||
break;
|
break;
|
||||||
@@ -1882,7 +1882,7 @@ FileIOPwritevInternal(
|
@@ -1887,7 +1887,7 @@ FileIOPwritevInternal(
|
||||||
* the library horizon this can go away.
|
* the library horizon this can go away.
|
||||||
*/
|
*/
|
||||||
/* coverity[func_conv] */
|
/* coverity[func_conv] */
|
||||||
|
|
Loading…
Reference in New Issue