From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1609868-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 872C0158043
	for <garchives@archives.gentoo.org>; Mon, 11 Mar 2024 21:33:10 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 87F4BE2A0E;
	Mon, 11 Mar 2024 21:33:09 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 5BE48E2A0E
	for <gentoo-commits@lists.gentoo.org>; Mon, 11 Mar 2024 21:33:09 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 424AF343008
	for <gentoo-commits@lists.gentoo.org>; Mon, 11 Mar 2024 21:33:08 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 8C8C51514
	for <gentoo-commits@lists.gentoo.org>; Mon, 11 Mar 2024 21:33:06 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1710192702.29ebff42ad3f27fca5015f1c2e5b1c2f7ae4e0a7.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-base/gnome-control-center/
X-VCS-Repository: repo/gentoo
X-VCS-Files: gnome-base/gnome-control-center/gnome-control-center-45.2.ebuild gnome-base/gnome-control-center/gnome-control-center-45.3.ebuild
X-VCS-Directories: gnome-base/gnome-control-center/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 29ebff42ad3f27fca5015f1c2e5b1c2f7ae4e0a7
X-VCS-Branch: master
Date: Mon, 11 Mar 2024 21:33:06 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 4a8313aa-eb54-4b08-b0e4-d5eefcca576e
X-Archives-Hash: b240e434fd370a4dedb95974baaab64f

commit:     29ebff42ad3f27fca5015f1c2e5b1c2f7ae4e0a7
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Mon Mar 11 19:55:05 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 11 21:31:42 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29ebff42

gnome-base/gnome-control-center: mark as LTO-unsafe, strict-aliasing unsafe

Closes: https://bugs.gentoo.org/889008
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../gnome-control-center/gnome-control-center-45.2.ebuild      | 10 +++++++++-
 .../gnome-control-center/gnome-control-center-45.3.ebuild      | 10 +++++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/gnome-base/gnome-control-center/gnome-control-center-45.2.ebuild b/gnome-base/gnome-control-center/gnome-control-center-45.2.ebuild
index 1011a8f36d34..4dc180b6f5ed 100644
--- a/gnome-base/gnome-control-center/gnome-control-center-45.2.ebuild
+++ b/gnome-base/gnome-control-center/gnome-control-center-45.2.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 PYTHON_COMPAT=( python3_{10..11} )
 
-inherit gnome.org gnome2-utils meson python-any-r1 virtualx xdg
+inherit flag-o-matic gnome.org gnome2-utils meson python-any-r1 virtualx xdg
 
 DESCRIPTION="GNOME's main interface to configure various aspects of the desktop"
 HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-control-center"
@@ -164,6 +164,14 @@ src_prepare() {
 }
 
 src_configure() {
+	# -Werror=strict-aliasing
+	# https://bugs.gentoo.org/889008
+	# https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2563
+	#
+	# Do not trust with LTO either
+	append-flags -fno-strict-aliasing
+	filter-lto
+
 	local emesonargs=(
 		$(meson_use bluetooth)
 		-Dcups=$(usex cups enabled disabled)

diff --git a/gnome-base/gnome-control-center/gnome-control-center-45.3.ebuild b/gnome-base/gnome-control-center/gnome-control-center-45.3.ebuild
index fd6c58d0f306..ef90ee00bdce 100644
--- a/gnome-base/gnome-control-center/gnome-control-center-45.3.ebuild
+++ b/gnome-base/gnome-control-center/gnome-control-center-45.3.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 PYTHON_COMPAT=( python3_{10..12} )
 
-inherit gnome.org gnome2-utils meson python-any-r1 virtualx xdg
+inherit flag-o-matic gnome.org gnome2-utils meson python-any-r1 virtualx xdg
 
 DESCRIPTION="GNOME's main interface to configure various aspects of the desktop"
 HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-control-center"
@@ -159,6 +159,14 @@ src_prepare() {
 }
 
 src_configure() {
+	# -Werror=strict-aliasing
+	# https://bugs.gentoo.org/889008
+	# https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2563
+	#
+	# Do not trust with LTO either
+	append-flags -fno-strict-aliasing
+	filter-lto
+
 	local emesonargs=(
 		$(meson_use bluetooth)
 		-Dcups=$(usex cups enabled disabled)