commit: 31c929441087eb65c4cdcfc61b29acb3a50cb954 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Jun 18 15:19:42 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Jun 18 15:19:47 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31c92944
media-libs/alsa-lib: filter LTO It's unsafe to use with alsa-lib (fails to build, can work with a hack, but that hack implies other issues). Closes: https://bugs.gentoo.org/616108 Closes: https://bugs.gentoo.org/669086 Signed-off-by: Sam James <sam <AT> gentoo.org> media-libs/alsa-lib/alsa-lib-1.2.7.1.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/media-libs/alsa-lib/alsa-lib-1.2.7.1.ebuild b/media-libs/alsa-lib/alsa-lib-1.2.7.1.ebuild index 94d96f7b806b..2fb3f286446d 100644 --- a/media-libs/alsa-lib/alsa-lib-1.2.7.1.ebuild +++ b/media-libs/alsa-lib/alsa-lib-1.2.7.1.ebuild @@ -4,7 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{8..11} ) -inherit autotools multilib-minimal python-single-r1 +inherit autotools multilib-minimal flag-o-matic python-single-r1 DESCRIPTION="Advanced Linux Sound Architecture Library" HOMEPAGE="https://alsa-project.org/wiki/Main_Page" @@ -51,6 +51,11 @@ src_prepare() { } multilib_src_configure() { + # Broken upstream. Could in theory work with -flto-partitions=none + # but it's a hack to workaround the real problem and not strictly safe. + # bug #616108, bug #669086, and https://github.com/alsa-project/alsa-lib/issues/6. + filter-flags -flto=* -flto + local myeconfargs=( --disable-maintainer-mode --disable-resmgr