commit:     c834681a7dc439277955ea7d03677ed3b28caa47
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 13 05:09:53 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Oct 13 05:13:32 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c834681a

media-sound/mp3asm: fix build with clang

Closes: https://bugs.gentoo.org/731028
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 media-sound/mp3asm/files/mp3asm-0.1.3-log.patch | 8 ++++++++
 media-sound/mp3asm/mp3asm-0.1.3-r2.ebuild       | 1 +
 2 files changed, 9 insertions(+)

diff --git a/media-sound/mp3asm/files/mp3asm-0.1.3-log.patch 
b/media-sound/mp3asm/files/mp3asm-0.1.3-log.patch
new file mode 100644
index 000000000000..2fe3c032ce79
--- /dev/null
+++ b/media-sound/mp3asm/files/mp3asm-0.1.3-log.patch
@@ -0,0 +1,8 @@
+Lazy fix to prevent log() overlap that leads to failure with clang.
+https://bugs.gentoo.org/731028
+--- a/src/mp3asm.h
++++ b/src/mp3asm.h
+@@ -48,2 +48,3 @@
+ extern char *me; /* name of the executable */
++#define log logfile
+ extern logfile_t log; /* file to log to */

diff --git a/media-sound/mp3asm/mp3asm-0.1.3-r2.ebuild 
b/media-sound/mp3asm/mp3asm-0.1.3-r2.ebuild
index ec2af61680e5..ea03c2c4e219 100644
--- a/media-sound/mp3asm/mp3asm-0.1.3-r2.ebuild
+++ b/media-sound/mp3asm/mp3asm-0.1.3-r2.ebuild
@@ -18,6 +18,7 @@ KEYWORDS="amd64 ppc sparc x86"
 
 PATCHES=(
        "${FILESDIR}"/${P}-fix-autotools.patch
+       "${FILESDIR}"/${P}-log.patch
 )
 
 src_prepare() {

Reply via email to