Francois Gouget : testbot/PatchUtils: Detect when make_fir needs to be run.

Alexandre Julliard julliard at winehq.org
Tue Mar 17 14:41:17 CDT 2020


Module: tools
Branch: master
Commit: 53ac3623936a0f48554c162c8e1a2d4e81dca608
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=53ac3623936a0f48554c162c8e1a2d4e81dca608

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Mon Mar 16 23:55:21 2020 +0100

testbot/PatchUtils: Detect when make_fir needs to be run.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/lib/Build/Utils.pm            | 10 ++++++++++
 testbot/lib/WineTestBot/PatchUtils.pm |  5 +++++
 2 files changed, 15 insertions(+)

diff --git a/testbot/lib/Build/Utils.pm b/testbot/lib/Build/Utils.pm
index 85df900..8a6982c 100644
--- a/testbot/lib/Build/Utils.pm
+++ b/testbot/lib/Build/Utils.pm
@@ -148,6 +148,16 @@ sub ApplyPatch($$)
       return undef;
     }
   }
+  if ($Impacts->{MakeFir})
+  {
+    InfoMsg "\nRunning make_fir\n";
+    system("cd '$DataDir/$Dir/dlls/dsound/' && set -x && ./make_fir");
+    if ($? != 0)
+    {
+      LogMsg "make_fir failed\n";
+      return undef;
+    }
+  }
   if ($Impacts->{MakeOpenGL})
   {
     InfoMsg "\nRunning make_opengl\n";
diff --git a/testbot/lib/WineTestBot/PatchUtils.pm b/testbot/lib/WineTestBot/PatchUtils.pm
index eaa9868..44b3f97 100644
--- a/testbot/lib/WineTestBot/PatchUtils.pm
+++ b/testbot/lib/WineTestBot/PatchUtils.pm
@@ -326,6 +326,11 @@ sub GetPatchImpacts($)
       $Impacts->{PatchedRoot} = $Impacts->{MakeRequests} = 1;
       $Impacts->{IsWinePatch} = 1;
     }
+    elsif ($Line =~ m=^--- \w+/dlls/dsound/make_fir$=)
+    {
+      $Impacts->{MakeFir} = 1;
+      $Impacts->{IsWinePatch} = 1;
+    }
     elsif ($Line =~ m=^--- \w+/(?:dlls/ntdll/make_errors|dlls/ntdll/error\.c|include/ntstatus\.h|include/winerror\.h)$=)
     {
       $Impacts->{MakeErrors} = 1;




More information about the wine-cvs mailing list