commit: 9cd8174dab7fe9cbf78ac16d50a81eed5c7a2295 Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Tue Jan 21 17:14:24 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Feb 10 09:04:48 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cd8174d
sys-apps/audio-entropyd: Fix incompatible pointers Part of Modern C porting Closes: https://bugs.gentoo.org/920156 Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com> Signed-off-by: Sam James <sam <AT> gentoo.org> ...opyd-2.0.3-r1.ebuild => audio-entropyd-2.0.3-r2.ebuild} | 6 +++--- .../files/audio-entropyd-2.0.3-incompatible-pointers.patch | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/sys-apps/audio-entropyd/audio-entropyd-2.0.3-r1.ebuild b/sys-apps/audio-entropyd/audio-entropyd-2.0.3-r2.ebuild similarity index 86% rename from sys-apps/audio-entropyd/audio-entropyd-2.0.3-r1.ebuild rename to sys-apps/audio-entropyd/audio-entropyd-2.0.3-r2.ebuild index 9d7326263e83..db438b5deb8f 100644 --- a/sys-apps/audio-entropyd/audio-entropyd-2.0.3-r1.ebuild +++ b/sys-apps/audio-entropyd/audio-entropyd-2.0.3-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -20,8 +20,8 @@ RDEPEND="${DEPEND} selinux? ( sec-policy/selinux-entropyd )" PATCHES=( - "${FILESDIR}"/${PN}-2.0.1-uclibc.patch - "${FILESDIR}"/${PN}-2.0.1-ldflags.patch + "${FILESDIR}"/"${PN}"-2.0.1-ldflags.patch + "${FILESDIR}"/"${P}"-incompatible-pointers.patch ) src_prepare() { diff --git a/sys-apps/audio-entropyd/files/audio-entropyd-2.0.3-incompatible-pointers.patch b/sys-apps/audio-entropyd/files/audio-entropyd-2.0.3-incompatible-pointers.patch new file mode 100644 index 000000000000..c2e038c6c43a --- /dev/null +++ b/sys-apps/audio-entropyd/files/audio-entropyd-2.0.3-incompatible-pointers.patch @@ -0,0 +1,14 @@ +Fix incompatible pointer types by passing right buffer to +get_random_data() +https://bugs.gentoo.org/920156 +--- a/audio-entropyd.c ++++ b/audio-entropyd.c +@@ -211,7 +211,7 @@ + + void main_loop(const char *cdevice, int sample_rate) + { +- unsigned char *output_buffer = NULL; ++ char *output_buffer = NULL; + int n_output_bytes = -1; + int random_fd = -1, max_bits; + FILE *poolsize_fh;
