void-packages/srcpkgs/open-vm-tools/patches/0001-recognize-Void.patch
Piraty 2375b47faa open-vm-tools: update to 11.0.5.
* build for musl as well
    * most patches are borrowed from alpine
    * resolver compat borrowed from `srcpkgs/qt5/files/resolv_compat.h`
* build from sources instead of build tarball
* drop dependencies `libdnet` and `icu`, as upstream disables them by
default now for linux builds (9f52cd, fcb7bb7)

Closes #18611
2020-01-30 18:30:14 +01:00

24 lines
1 KiB
Diff

#inspired by alpine
#upstream: no
--- open-vm-tools/lib/include/guest_os.h
+++ open-vm-tools/lib/include/guest_os.h
@@ -241,6 +241,7 @@ Bool Gos_InSetArray(uint32 gos, const uint32 *set);
#define STR_OS_AMAZON_LINUX "amazonlinux"
#define STR_OS_ANNVIX "Annvix"
#define STR_OS_ARCH "Arch"
+#define STR_OS_VOID "Void Linux"
#define STR_OS_ARKLINUX "Arklinux"
#define STR_OS_ASIANUX_3 "asianux3"
#define STR_OS_ASIANUX_4 "asianux4"
--- open-vm-tools/lib/misc/hostinfoPosix.c
+++ open-vm-tools/lib/misc/hostinfoPosix.c
@@ -902,6 +902,8 @@ HostinfoGetOSShortName(const char *distro, // IN: full distro name
Str_Sprintf(distroShort, distroShortSize, "%s%d", STR_OS_AMAZON_LINUX,
version);
+ } else if (strstr(distroLower, "void")) {
+ Str_Strcpy(distroShort, STR_OS_VOID, distroShortSize);
} else if (strstr(distroLower, "annvix")) {
Str_Strcpy(distroShort, STR_OS_ANNVIX, distroShortSize);
} else if (strstr(distroLower, "arch")) {