Skip to content
Snippets Groups Projects
Commit ba1f3183 authored by mio's avatar mio Committed by Patrycja Rosa
Browse files

community/speech-dispatcher: fix build with gcc 14

parent 14728804
No related branches found
No related tags found
1 merge request!71573community/speech-dispatcher: fix build with gcc 14
Pipeline #257289 canceled
# 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
"
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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment