From 95099cb18dcbe8d8274640db598446ae0ff2dc76 Mon Sep 17 00:00:00 2001 From: rasapala Date: Thu, 17 Sep 2026 11:15:54 +0200 Subject: [PATCH] Remove not used libsonic download --- third_party/espeak_ng/out_of_source_phsource.patch | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/third_party/espeak_ng/out_of_source_phsource.patch b/third_party/espeak_ng/out_of_source_phsource.patch index 8711e1575a..ef1e4d34ee 100644 --- a/third_party/espeak_ng/out_of_source_phsource.patch +++ b/third_party/espeak_ng/out_of_source_phsource.patch @@ -11,7 +11,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -Replace configure-time file(COPY) of phsource with a symbolic link. +Replace configure-time file(COPY) of phsource with a symbolic link and avoid +fetching disabled Sonic support. Upstream cmake/data.cmake does: @@ -25,8 +26,17 @@ symlink eliminates the entire copy step and guarantees the build always sees the exact source phsource tree. phsource is read-only during the build, so a symlink is safe. +OVMS builds with USE_LIBSONIC=OFF, so CMake must not fetch Sonic when it is not +installed on the builder. + This patch is OVMS-local; see third_party/espeak_ng/espeak_ng.bzl. +--- a/cmake/deps.cmake ++++ b/cmake/deps.cmake +@@ -18 +18 @@ +-else() ++elseif(USE_LIBSONIC) + --- a/cmake/data.cmake +++ b/cmake/data.cmake @@ -58,7 +58,8 @@