From 014d362f5e22daab3fb3629df74bc35f947326bc Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Sat, 17 May 2025 08:46:05 +0300 Subject: [PATCH] python-build: Support patch paths with spaces/special characters This is now possible because all non-EOL MacOS versions now support `find -print0`/`sort -z`/`xargs -0` --- plugins/python-build/bin/python-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index b8b1b922..32a7040c 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1160,8 +1160,8 @@ setup_builtin_patches() { cat >"${package_name}.patch" HAS_PATCH=true elif [[ -d "${package_patch_path}" ]]; then - { find "${package_patch_path}" -maxdepth 1 -type f - } 2>/dev/null | sort | xargs cat 1>"${package_name}.patch" + { find "${package_patch_path}" -maxdepth 1 -type f -print0 + } 2>/dev/null | sort -z | xargs -0 cat 1>"${package_name}.patch" HAS_PATCH=true fi }