From 9efac47eec292de7df8697264a457afc7925e95c Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Sat, 29 May 2021 14:02:57 +1000 Subject: [PATCH] Added wscript-support-d-u-switches patchset --- patches/patchinstall.sh | 16 +++++++++ ...eturn-TRUE-for-d-and-u-stub-switches.patch | 33 +++++++++++++++++++ .../wscript-support-d-u-switches/definition | 1 + 3 files changed, 50 insertions(+) create mode 100644 patches/wscript-support-d-u-switches/0001-wscript-return-TRUE-for-d-and-u-stub-switches.patch create mode 100644 patches/wscript-support-d-u-switches/definition diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 0828b44e..90575780 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -283,6 +283,7 @@ patch_enable_all () enable_ws2_32_APC_Performance="$1" enable_ws2_32_Connect_Time="$1" enable_ws2_32_getsockopt="$1" + enable_wscript_support_d_u_switches="$1" enable_xactengine_initial="$1" enable_xactengine3_7_Notification="$1" enable_xactengine3_7_PrepareWave="$1" @@ -895,6 +896,9 @@ patch_enable () ws2_32-getsockopt) enable_ws2_32_getsockopt="$2" ;; + wscript-support-d-u-switches) + enable_wscript_support_d_u_switches="$2" + ;; xactengine-initial) enable_xactengine_initial="$2" ;; @@ -4243,6 +4247,18 @@ if test "$enable_ws2_32_getsockopt" -eq 1; then patch_apply ws2_32-getsockopt/0001-ws2_32-Divide-values-returned-by-SO_RCVBUF-and-SO_SN.patch fi +# Patchset wscript-support-d-u-switches +# | +# | This patchset fixes the following Wine bugs: +# | * [#49905] wscript: return TRUE for /d and /u stub switches +# | +# | Modified files: +# | * programs/wscript/main.c +# | +if test "$enable_wscript_support_d_u_switches" -eq 1; then + patch_apply wscript-support-d-u-switches/0001-wscript-return-TRUE-for-d-and-u-stub-switches.patch +fi + # Patchset xactengine-initial # | # | This patchset fixes the following Wine bugs: diff --git a/patches/wscript-support-d-u-switches/0001-wscript-return-TRUE-for-d-and-u-stub-switches.patch b/patches/wscript-support-d-u-switches/0001-wscript-return-TRUE-for-d-and-u-stub-switches.patch new file mode 100644 index 00000000..69bd9809 --- /dev/null +++ b/patches/wscript-support-d-u-switches/0001-wscript-return-TRUE-for-d-and-u-stub-switches.patch @@ -0,0 +1,33 @@ +From d68918425e249c5c218ee6f0c9418e2e2daf9931 Mon Sep 17 00:00:00 2001 +From: Dmitry Kislyuk +Date: Wed, 28 Apr 2021 09:47:41 -0500 +Subject: [PATCH] wscript: return TRUE for /d and /u stub switches + +Patch by Robert Wilhelm from bug: +https://bugs.winehq.org/show_bug.cgi?id=49905 + +VbsEdit is able to execute scripts with this patch applied. + +Signed-off-by: Dmitry Kislyuk +--- + programs/wscript/main.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/programs/wscript/main.c b/programs/wscript/main.c +index a7005a9289c..6d6e8935149 100644 +--- a/programs/wscript/main.c ++++ b/programs/wscript/main.c +@@ -393,6 +393,10 @@ static BOOL set_host_properties(const WCHAR *prop) + wshInteractive = VARIANT_FALSE; + else if(wcsicmp(prop, L"nologo") == 0) + WINE_FIXME("ignored %s switch\n", debugstr_w(L"nologo")); ++ else if(wcsicmp(prop, L"d") == 0) ++ WINE_FIXME("ignored %s switch\n", debugstr_w(L"d")); ++ else if(wcsicmp(prop, L"u") == 0) ++ WINE_FIXME("ignored %s switch\n", debugstr_w(L"u")); + else + { + WINE_FIXME("unsupported switch %s\n", debugstr_w(prop)); +-- +2.30.2 + diff --git a/patches/wscript-support-d-u-switches/definition b/patches/wscript-support-d-u-switches/definition new file mode 100644 index 00000000..8ae3cf62 --- /dev/null +++ b/patches/wscript-support-d-u-switches/definition @@ -0,0 +1 @@ +Fixes: [49905] wscript: return TRUE for /d and /u stub switches