Skip to content

Commit

Permalink
media-sound/mac: mark as LTO-unsafe, strict-aliasing unsafe
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
eli-schwartz authored and thesamesam committed Mar 18, 2024
1 parent 3ae26f2 commit bf14480
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
17 changes: 16 additions & 1 deletion media-sound/mac/mac-10.46.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=8

inherit cmake
inherit cmake flag-o-matic

DESCRIPTION="Monkey's Audio Codecs"
HOMEPAGE="https://www.monkeysaudio.com"
Expand All @@ -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
}
17 changes: 16 additions & 1 deletion media-sound/mac/mac-10.53.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=8

inherit cmake
inherit cmake flag-o-matic

DESCRIPTION="Monkey's Audio Codecs"
HOMEPAGE="https://www.monkeysaudio.com"
Expand All @@ -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
}

0 comments on commit bf14480

Please sign in to comment.