From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1616247-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 F2C98158041
	for <garchives@archives.gentoo.org>; Mon,  1 Apr 2024 05:30:55 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 33398E2A11;
	Mon,  1 Apr 2024 05:30:55 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(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 19306E2A0E
	for <gentoo-commits@lists.gentoo.org>; Mon,  1 Apr 2024 05:30:55 +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 552E83431BF
	for <gentoo-commits@lists.gentoo.org>; Mon,  1 Apr 2024 05:30:54 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id B88ED1621
	for <gentoo-commits@lists.gentoo.org>; Mon,  1 Apr 2024 05:30:52 +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: <1711949367.f8d2cf57af0836438d8d2d10cadc38c6283cdd95.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/ctl/
X-VCS-Repository: repo/gentoo
X-VCS-Files: media-libs/ctl/ctl-1.5.2_p20221224.ebuild
X-VCS-Directories: media-libs/ctl/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: f8d2cf57af0836438d8d2d10cadc38c6283cdd95
X-VCS-Branch: master
Date: Mon,  1 Apr 2024 05:30:52 +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: a79940d7-572e-4705-bc4f-6e0ccd0a2402
X-Archives-Hash: 422c2da40c92eae465c5e696e650f0ed

commit:     f8d2cf57af0836438d8d2d10cadc38c6283cdd95
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Mon Apr  1 03:25:48 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Apr  1 05:29:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8d2cf57

media-libs/ctl: mark as LTO-unsafe, strict-aliasing unsafe

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

 media-libs/ctl/ctl-1.5.2_p20221224.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/media-libs/ctl/ctl-1.5.2_p20221224.ebuild b/media-libs/ctl/ctl-1.5.2_p20221224.ebuild
index 900fd7d7d2a3..bf3bc0cec141 100644
--- a/media-libs/ctl/ctl-1.5.2_p20221224.ebuild
+++ b/media-libs/ctl/ctl-1.5.2_p20221224.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake
+inherit cmake flag-o-matic
 
 MY_COMMIT=3fc4ae7a8af35d380654e573d895216fd5ba407e
 
@@ -30,6 +30,12 @@ BDEPEND="virtual/pkgconfig"
 PATCHES=( "${FILESDIR}"/${PN}-1.5.2-fix-installation-directories.patch )
 
 src_configure() {
+	# -Werror=strict-aliasing
+	# https://bugs.gentoo.org/926823
+	# https://github.com/ampas/CTL/issues/146
+	append-flags -fno-strict-aliasing
+	filter-lto
+
 	local mycmakeargs=(
 		-DCMAKE_INSTALL_DOCDIR="share/doc/${PF}"
 		-DCTL_BUILD_TESTS=$(usex test)