From 3261eb75d5710cd9cc91f8d5b746a250fbc04bc7 Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Thu, 27 Mar 2025 15:57:03 +0100 Subject: [PATCH] Fixed applying of SDL3 patch after move to recipe repositories. --- recipes/SDL/recipe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/SDL/recipe.py b/recipes/SDL/recipe.py index f351c1a..8f2bfb1 100644 --- a/recipes/SDL/recipe.py +++ b/recipes/SDL/recipe.py @@ -10,7 +10,8 @@ def _git_cook(env: Environment, repo: dict) -> dict: if os.path.exists(os.path.join(repo['checkout_root'], 'cmake', 'GetGitRevisionDescription.cmake')): try: - repo['repo'].git.apply('--unsafe-paths', '--directory', repo['checkout_root'], os.path.join(env['SPP_DIR'], 'recipes', 'SDL', 'fix_sdl3_from_worktree.patch')) + recipe_folder = os.path.dirname(__file__) + repo['repo'].git.apply('--unsafe-paths', '--directory', repo['checkout_root'], os.path.join(recipe_folder, 'fix_sdl3_from_worktree.patch')) except: # either already applied or not applicable anymore pass