Skip to content
Snippets Groups Projects
Commit b3faa337 authored by Sören Tempel's avatar Sören Tempel
Browse files

community/libao: fix build with gcc-14

parent e4e389c0
No related branches found
No related tags found
No related merge requests found
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libao
pkgver=1.2.2
pkgrel=2
pkgrel=3
pkgdesc="Cross-platform audio output library and plugins"
url="https://www.xiph.org/ao"
arch="all"
......@@ -11,6 +11,7 @@ subpackages="$pkgname-doc $pkgname-dev $pkgname-pulse"
makedepends="alsa-lib-dev automake autoconf libtool pulseaudio-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/xiph/libao/archive/$pkgver.tar.gz
CVE-2017-11548.patch
gcc-14.patch
"
# secfixes:
......@@ -48,5 +49,8 @@ pulse() {
amove usr/lib/ao/plugins-4/libpulse.so
}
sha512sums="d2736d25b60862e7d7469611ce31b1df40a4366ab160e2ff1b46919ae91692d1596c8468e4f016303b306fc3ac1bddc7b727f535a362f403c3fe7c6532e9045a libao-1.2.2.tar.gz
2108047bf0b17b1a516c6acaa7d373f46f0c8efe8d355c5353abf73ead987b5a3b97a102ebd596113ca8670d303c13922e5cca764c0604971a1ccac4cba770be CVE-2017-11548.patch"
sha512sums="
d2736d25b60862e7d7469611ce31b1df40a4366ab160e2ff1b46919ae91692d1596c8468e4f016303b306fc3ac1bddc7b727f535a362f403c3fe7c6532e9045a libao-1.2.2.tar.gz
2108047bf0b17b1a516c6acaa7d373f46f0c8efe8d355c5353abf73ead987b5a3b97a102ebd596113ca8670d303c13922e5cca764c0604971a1ccac4cba770be CVE-2017-11548.patch
99e238695317240c827ba4be0bc3c9813c51836b8cd070afee6423a5e64de206342482ebe673049da93523e2dd56a4b1642f208e75f57db901cdd09a2dd1c866 gcc-14.patch
"
Include time.h for the nanosleep(3) function prototype.
diff -upr libao-1.2.2.orig/src/plugins/pulse/ao_pulse.c libao-1.2.2/src/plugins/pulse/ao_pulse.c
--- libao-1.2.2.orig/src/plugins/pulse/ao_pulse.c 2024-08-28 19:39:46.301517076 +0200
+++ libao-1.2.2/src/plugins/pulse/ao_pulse.c 2024-08-28 19:41:54.421525581 +0200
@@ -31,6 +31,7 @@
#include <string.h>
#include <signal.h>
#include <limits.h>
+#include <time.h>
#include <pulse/pulseaudio.h>
#include <pulse/simple.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