commit:     bf144807494b6c07da7396f695ad9e61b849a1d1
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Sun Mar 17 19:32:11 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 18 05:29:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf144807

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 <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 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 3f3e26502daf..13bf6f9d8ef3 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 4315a96dd755..74c128c6dd94 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
+}

Reply via email to