mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
media-libs/a52dec: fix musl
use getopt from glibc/musl instead of outdated bundled lib Closes: https://bugs.gentoo.org/944997 Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/44685 Closes: https://github.com/gentoo/gentoo/pull/44685 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
d1e0499718
commit
e447517c5c
@@ -23,6 +23,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${P}-tests-optional.patch
|
||||
"${FILESDIR}"/${P}-test-hidden-symbols.patch
|
||||
"${FILESDIR}"/${P}-dont-mangle-cflags.patch
|
||||
"${FILESDIR}"/${P}-rm_getopt.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
@@ -31,6 +32,9 @@ src_prepare() {
|
||||
sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.in || die # bug #466978
|
||||
mv configure.{in,ac} || die
|
||||
|
||||
# use getopt.h from glibc/musl, bug 944997
|
||||
rm src/getopt.h || die
|
||||
|
||||
eautoreconf
|
||||
|
||||
filter-flags -fprefetch-loop-arrays
|
||||
|
||||
18
media-libs/a52dec/files/a52dec-0.7.4-rm_getopt.patch
Normal file
18
media-libs/a52dec/files/a52dec-0.7.4-rm_getopt.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
see https://bugs.gentoo.org/944997
|
||||
use getopt from glibc/musl instead, getopt.h must be removed too
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
bin_PROGRAMS = a52dec extract_a52
|
||||
-a52dec_SOURCES = a52dec.c getopt.c gettimeofday.c
|
||||
+a52dec_SOURCES = a52dec.c gettimeofday.c
|
||||
a52dec_LDADD = $(top_builddir)/liba52/liba52.la \
|
||||
$(top_builddir)/libao/libao.a @LIBAO_LIBS@
|
||||
-extract_a52_SOURCES = extract_a52.c getopt.c
|
||||
+extract_a52_SOURCES = extract_a52.c
|
||||
|
||||
man_MANS = a52dec.1 extract_a52.1
|
||||
|
||||
-EXTRA_DIST = configure.incl getopt.h gettimeofday.h $(man_MANS)
|
||||
+EXTRA_DIST = configure.incl gettimeofday.h $(man_MANS)
|
||||
Reference in New Issue
Block a user