@@ -1185,6 +1185,7 @@ dist_patch_DATA = \
%D%/packages/patches/flann-cmake-3.11.patch \
%D%/packages/patches/flatpak-fix-path.patch \
%D%/packages/patches/flatpak-unset-gdk-pixbuf-for-sandbox.patch \
+ %D%/packages/patches/flite-build-with-make-4.4.patch \
%D%/packages/patches/fluxbox-1.3.7-no-dynamic-cursor.patch \
%D%/packages/patches/fluxbox-1.3.7-gcc.patch \
%D%/packages/patches/fontconfig-cache-ignore-mtime.patch \
new file mode 100644
@@ -0,0 +1,24 @@
+Building flite with GNU Make 4.4 or newer fails with log messages like
+
+ making in main ...
+ gcc -g -O2 -Wall -I../include -c -o flitevox_info_main.o flitevox_info_main.c
+ making ../build/aarch64-linux-gnu/lib/libflite.so
+ make[1]: *** No rule to make target 'flite_voice_list.c', needed by 'all'. Stop.
+
+This is due to a change in how the .NOTPARALLEL special make target is
+interpreted. This patch causes the package to build as it did with earlier
+versions of Make.
+
+diff --git a/main/Makefile b/main/Makefile
+index 8166182..e5ba866 100644
+--- a/main/Makefile
++++ b/main/Makefile
+@@ -104,7 +104,7 @@ else
+ shared_libs: nothing
+ endif
+
+-.NOTPARALLEL: $(ALL)
++.NOTPARALLEL:
+
+ flite_lang_list:
+ rm -f flite_lang_list.c
@@ -67,7 +67,8 @@ (define-public flite
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1n0p81jzndzc1rzgm66kw9ls189ricy5v1ps11y0p2fk1p56kbjf"))))
+ (base32 "1n0p81jzndzc1rzgm66kw9ls189ricy5v1ps11y0p2fk1p56kbjf"))
+ (patches (search-patches "flite-build-with-make-4.4.patch"))))
(build-system gnu-build-system)
(arguments
;; XXX: