From bf144807494b6c07da7396f695ad9e61b849a1d1 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 17 Mar 2024 15:32:11 -0400 Subject: [PATCH] media-sound/mac: mark as LTO-unsafe, strict-aliasing unsafe Pending an update to 10.56 which will switch to a memcpy access and will come "soon". Already committed to svn. Closes: https://bugs.gentoo.org/927060 Signed-off-by: Eli Schwartz Signed-off-by: Sam James --- media-sound/mac/mac-10.46.ebuild | 17 ++++++++++++++++- media-sound/mac/mac-10.53.ebuild | 17 ++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/media-sound/mac/mac-10.46.ebuild b/media-sound/mac/mac-10.46.ebuild index 3f3e26502dafe..13bf6f9d8ef38 100644 --- a/media-sound/mac/mac-10.46.ebuild +++ b/media-sound/mac/mac-10.46.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake +inherit cmake flag-o-matic DESCRIPTION="Monkey's Audio Codecs" HOMEPAGE="https://www.monkeysaudio.com" @@ -27,3 +27,18 @@ PATCHES=( "${FILESDIR}/${PN}-10.18-linux.patch" "${FILESDIR}/${PN}-10.43-output.patch" ) + +src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/927060 + # + # Upstream contact method is via email. I sent an email detailing the issue + # and got a fast response with a fix. "I'm hoping to do a build soon with a + # new open source certificate. I can sure include this." + # + # Do not trust with LTO either + append-flags -fno-strict-aliasing + filter-lto + + cmake_src_configure +} diff --git a/media-sound/mac/mac-10.53.ebuild b/media-sound/mac/mac-10.53.ebuild index 4315a96dd7554..74c128c6dd940 100644 --- a/media-sound/mac/mac-10.53.ebuild +++ b/media-sound/mac/mac-10.53.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake +inherit cmake flag-o-matic DESCRIPTION="Monkey's Audio Codecs" HOMEPAGE="https://www.monkeysaudio.com" @@ -27,3 +27,18 @@ PATCHES=( "${FILESDIR}/${PN}-10.18-linux.patch" "${FILESDIR}/${PN}-10.52-output.patch" ) + +src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/927060 + # + # Upstream contact method is via email. I sent an email detailing the issue + # and got a fast response with a fix. "I'm hoping to do a build soon with a + # new open source certificate. I can sure include this." + # + # Do not trust with LTO either + append-flags -fno-strict-aliasing + filter-lto + + cmake_src_configure +}