diff --git a/community/speech-dispatcher/APKBUILD b/community/speech-dispatcher/APKBUILD index 876a61623715e7ddd0a22ab6b17957000af76f0c..4948cb910f3770a929d8e28817ed6c6a1acf88b2 100644 --- a/community/speech-dispatcher/APKBUILD +++ b/community/speech-dispatcher/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Patrycja Rosa <alpine@ptrcnull.me> pkgname=speech-dispatcher pkgver=0.11.5 -pkgrel=1 +pkgrel=2 pkgdesc="Common high-level interface to speech synthesis" url="https://freebsoft.org/speechd" # s390x: blocked by espeak-ng @@ -17,7 +17,9 @@ makedepends=" pulseaudio-dev " subpackages="$pkgname-lang $pkgname-dev $pkgname-doc" -source="https://github.com/brailcom/speechd/releases/download/$pkgver/speech-dispatcher-$pkgver.tar.gz" +source="https://github.com/brailcom/speechd/releases/download/$pkgver/speech-dispatcher-$pkgver.tar.gz + gcc14.patch + " build() { ./configure \ @@ -45,4 +47,5 @@ package() { sha512sums=" d6d880bce0ae5bc2a5d519ef7740c689ae8b4b0bb658379762810e4beae3e465a429fbe19f7c490e89db0ea6a36aedd4b2287ac9251b90059b5c2cb3c0dd8a28 speech-dispatcher-0.11.5.tar.gz +df8429be0b7b7178b8c675bf0646f9a0e120eadec1adac16eac69fb3565116f1559afe99bd508777c517d13e0a927d0ee41ea79f17e1ad6d052d7e49a1646d00 gcc14.patch " diff --git a/community/speech-dispatcher/gcc14.patch b/community/speech-dispatcher/gcc14.patch new file mode 100644 index 0000000000000000000000000000000000000000..0278f11bbe52103f47b45970e5bb47f93dc92a4d --- /dev/null +++ b/community/speech-dispatcher/gcc14.patch @@ -0,0 +1,23 @@ +Fix -Wimplicit-function-declaration error on a test with gcc 14. + +Error: + +``` +run_test.c: In function 'wait_for': +run_test.c:93:21: error: implicit declaration of function 'strcasestr'; did you +mean 'strcasecmp'? [-Wimplicit-function-declaration] + 93 | while (0 == strcasestr(reply, event)) { + | ^~~~~~~~~~ + | strcasecmp +``` + +--- speech-dispatcher-0.11.5-origin/src/tests/run_test.c ++++ speech-dispatcher-0.11.5/src/tests/run_test.c +@@ -25,6 +25,7 @@ + #endif + + #include <stdio.h> ++#define _GNU_SOURCE + #include <string.h> + #include <sys/types.h> + #include <sys/socket.h>