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

Francois Gouget fgouget at codeweavers.com
Mon Mar 16 17:55:21 CDT 2020


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 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 85df90099b..8a6982c5de 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 eaa9868942..44b3f97cca 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;
-- 
2.20.1




More information about the wine-devel mailing list