diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2022-10-13 01:09:53 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2022-10-13 01:13:32 -0400 |
commit | c834681a7dc439277955ea7d03677ed3b28caa47 (patch) | |
tree | c3053511d90a33ad427a7aafe36c60a0f7525d03 /media-sound/mp3asm | |
parent | media-sound/mp3asm: EAPI7->8, fix license (diff) | |
download | gentoo-c834681a7dc439277955ea7d03677ed3b28caa47.tar.gz gentoo-c834681a7dc439277955ea7d03677ed3b28caa47.tar.bz2 gentoo-c834681a7dc439277955ea7d03677ed3b28caa47.zip |
media-sound/mp3asm: fix build with clang
Closes: https://bugs.gentoo.org/731028
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'media-sound/mp3asm')
-rw-r--r-- | media-sound/mp3asm/files/mp3asm-0.1.3-log.patch | 8 | ||||
-rw-r--r-- | media-sound/mp3asm/mp3asm-0.1.3-r2.ebuild | 1 |
2 files changed, 9 insertions, 0 deletions
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() { |