2fd8d4df94
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
25 lines
1.2 KiB
Diff
25 lines
1.2 KiB
Diff
#inspired by alpine
|
|
#upstream: no
|
|
|
|
--- a/open-vm-tools/lib/include/guest_os.h
|
|
+++ b/open-vm-tools/lib/include/guest_os.h
|
|
@@ -309,6 +309,7 @@ Bool Gos_InSetArray(uint32 gos, const uint32 *set);
|
|
#define STR_OS_ULTRAPENGUIN "UltraPenguin"
|
|
#define STR_OS_UNITEDLINUX "UnitedLinux"
|
|
#define STR_OS_VALINUX "VALinux"
|
|
+#define STR_OS_VOID "Void Linux"
|
|
#define STR_OS_YELLOW_DOG "Yellow Dog"
|
|
#define STR_OS_ECOMSTATION "eComStation"
|
|
|
|
diff --git a/open-vm-tools/lib/misc/hostinfoPosix.c b/open-vm-tools/lib/misc/hostinfoPosix.c
|
|
index 6ac15412..ea898e24 100644
|
|
--- a/open-vm-tools/lib/misc/hostinfoPosix.c
|
|
+++ b/open-vm-tools/lib/misc/hostinfoPosix.c
|
|
@@ -1259,6 +1259,7 @@ static const ShortNameSet shortNameArray[] = {
|
|
{"united linux", STR_OS_UNITEDLINUX, HostinfoGenericSetShortName},
|
|
{"va linux", STR_OS_VALINUX, HostinfoGenericSetShortName},
|
|
{"vmware photon", STR_OS_PHOTON, HostinfoGenericSetShortName},
|
|
+{"void", STR_OS_VOID, HostinfoGenericSetShortName},
|
|
{"yellow dog", STR_OS_YELLOW_DOG, HostinfoGenericSetShortName},
|
|
{NULL, NULL, NULL} // MUST BE LAST
|
|
};
|