commit:     c84a2321552b74b52543edd7c18f84571b748839
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 18 20:13:35 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue Aug 19 19:06:01 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c84a2321

media-sound/audacity: reapply strict-aliasing fixes dropped via no-rebase PR

In commit 2dd375c26a958c83bee4119b499fa65adb4b3f29 an update was merged,
authored before commit 54238035c9abd9b278e2fd14312e893922c3be5f but
never rebased before merging -- hence changes from the latter
disappeared.

Bug: https://github.com/gentoo/gentoo/pull/35414
Bug: https://bugs.gentoo.org/915226
Closes: https://bugs.gentoo.org/942664
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 media-sound/audacity/audacity-3.4.2-r2.ebuild | 9 ++++++++-
 media-sound/audacity/audacity-3.7.2-r1.ebuild | 7 +++++++
 media-sound/audacity/audacity-3.7.3-r1.ebuild | 7 +++++++
 media-sound/audacity/audacity-3.7.4.ebuild    | 7 +++++++
 media-sound/audacity/audacity-3.7.5.ebuild    | 7 +++++++
 5 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/media-sound/audacity/audacity-3.4.2-r2.ebuild 
b/media-sound/audacity/audacity-3.4.2-r2.ebuild
index 05a8900a12ef..d66e9b1f23f9 100644
--- a/media-sound/audacity/audacity-3.4.2-r2.ebuild
+++ b/media-sound/audacity/audacity-3.4.2-r2.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 WX_GTK_VER="3.2-gtk3"
 
-inherit cmake wxwidgets xdg virtualx
+inherit cmake flag-o-matic wxwidgets xdg virtualx
 
 DESCRIPTION="Free crossplatform audio editor"
 HOMEPAGE="https://www.audacityteam.org/";
@@ -160,6 +160,13 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # Reportedly also -Werror=odr but I could not get that far.
+       # https://bugs.gentoo.org/915226
+       # https://github.com/audacity/audacity/issues/6096
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        setup-wxwidgets
 
        # * always use system libraries if possible

diff --git a/media-sound/audacity/audacity-3.7.2-r1.ebuild 
b/media-sound/audacity/audacity-3.7.2-r1.ebuild
index a94bba0f9da7..cfaf03c49a73 100644
--- a/media-sound/audacity/audacity-3.7.2-r1.ebuild
+++ b/media-sound/audacity/audacity-3.7.2-r1.ebuild
@@ -160,6 +160,13 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # Reportedly also -Werror=odr but I could not get that far.
+       # https://bugs.gentoo.org/915226
+       # https://github.com/audacity/audacity/issues/6096
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        setup-wxwidgets
 
        # bug #944212

diff --git a/media-sound/audacity/audacity-3.7.3-r1.ebuild 
b/media-sound/audacity/audacity-3.7.3-r1.ebuild
index 2a4bad86f972..d248e60cff4a 100644
--- a/media-sound/audacity/audacity-3.7.3-r1.ebuild
+++ b/media-sound/audacity/audacity-3.7.3-r1.ebuild
@@ -160,6 +160,13 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # Reportedly also -Werror=odr but I could not get that far.
+       # https://bugs.gentoo.org/915226
+       # https://github.com/audacity/audacity/issues/6096
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        setup-wxwidgets
 
        # bug #944212

diff --git a/media-sound/audacity/audacity-3.7.4.ebuild 
b/media-sound/audacity/audacity-3.7.4.ebuild
index 271a0e4913e0..e8a179894aaf 100644
--- a/media-sound/audacity/audacity-3.7.4.ebuild
+++ b/media-sound/audacity/audacity-3.7.4.ebuild
@@ -160,6 +160,13 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # Reportedly also -Werror=odr but I could not get that far.
+       # https://bugs.gentoo.org/915226
+       # https://github.com/audacity/audacity/issues/6096
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        setup-wxwidgets
 
        # bug #944212

diff --git a/media-sound/audacity/audacity-3.7.5.ebuild 
b/media-sound/audacity/audacity-3.7.5.ebuild
index 271a0e4913e0..e8a179894aaf 100644
--- a/media-sound/audacity/audacity-3.7.5.ebuild
+++ b/media-sound/audacity/audacity-3.7.5.ebuild
@@ -160,6 +160,13 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # Reportedly also -Werror=odr but I could not get that far.
+       # https://bugs.gentoo.org/915226
+       # https://github.com/audacity/audacity/issues/6096
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        setup-wxwidgets
 
        # bug #944212

Reply via email to